sVote with control components voting protocol: computational proof of complete verifiability and privacy
Abstract
sVote with Control components is a cryptographic voting protocol that provides complete verifiability and guarantees voting secrecy and the non-disclosure of early provisional results. This report demonstrates that sVote fulfills the requirements of the Swiss federal chancellery for completely verifiable E-voting systems. We extract precise requirements from the ordinance and the corresponding technical annex and model the sVote cryptographic voting protocol based on its design documents. Based on this model, we show in a detailed security analysis that an adversary cannot break the complete verifiability and voting secrecy properties of sVote without being detected by either the voter or by auditors
Full text
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Enrique Larraia Tamara Finogina Nuria Costa Scytl R&S [email protected] May 25, 2020 Abstract sVote with Control components is a cryptographic voting protocol that provides complete verifiability and guarantees voting secrecy and the non-disclosure of early provisional results. This report demonstrates that sVote fulfills the requirements of the Swiss federal chancellery for completely verifiable E-voting systems. We extract precise requirements from the ordinance and the corresponding technical annex and model the sVote cryptographic voting protocol based on its design documents. Based on this model, we show in a detailed security analysis that an adversary cannot break the complete verifiability and voting secrecy properties of sVote without being detected by either the voter or by auditors.
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Scytl © SCYTL SECURE ELECTRONIC VOTING, S.A, 2020 © Scytl Election Technology, S.L.U., 2022 This Document is proprietary to SCYTL ELECTION TECHNOLOGIES, S.L.U. (SCYTL) and is protected by the Spanish laws on copyright and by the applicable International Conventions. The property of SCYTL’s cryptographic mechanisms and protocols described in this Document are protected by patent applications. This document is licensed under Attribution-Non Commercial-No Derivatives 4.0 International (CC BYNC-ND 4.0). It means that this Document and parts of it may be copied and redistributed in any medium or format. However, you must give appropriate credit, provide a link to the license, and indicate if any changes have been made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. Notwithstanding the foregoing, no part of this Document may be: (i) used for commercial purposes; (ii) distributed if it has been remixed, transformed, or build upon; and (iii) no legal terms or technological measures can be applied that legally restrict others from doing anything the current license permits. ACKNOWLEDGMENTS This work has received funding from the European Commission under the auspices of PROMETHEUS Project, Horizon 2020 Innovation Action (Grant Agreement No. 780701). i
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Table of contents I Complete verifiability and voting secrecy 1 1 Electronic voting in Switzerland............................................................. 2 2 Threat model ........................................................................................... 3 2.1 Individual verifiability..................................................................................... 3 2.2 Complete verifiability...................................................................................... 3 2.3 Voting secrecy .............................................................................................. 4 2.4 Parties and channels....................................................................................... 5 2.4.1 Assumptions on parties .............................................................................. 5 2.4.2 Assumptions on communication channels ........................................................ 5 2.5 Trust model in sVote ...................................................................................... 6 2.5.1 Parties in sVote....................................................................................... 6 2.5.2 Trust assumptions in sVote ......................................................................... 8 2.6 Correspondence between both security models........................................................ 8 II Building blocks 11 3 ElGamal encryption scheme ................................................................... 12 3.1 Multi-recipient ElGamal .................................................................................. 12 3.2 ElGamal over multiplicative groups..................................................................... 13 4 Symmetric encryption schemes .............................................................. 13 5 Pseudorandom functions......................................................................... 14 6 Key derivation functions......................................................................... 14 7 Proof systems .......................................................................................... 16 7.1 Σ-protocols.................................................................................................. 16 7.2 The random oracle model and the Fiat-Shamir transform .......................................... 17 7.2.1 Non-interactive sigma protocols in ROM ......................................................... 17 7.3 Non-interactive pre-image proof systems............................................................... 19 7.3.1 On the security of NIZK pre-image proof systems .............................................. 20 7.3.2 Exponentiation proof system. ....................................................................... 21 ii
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 7.3.3 Schnorr proof system................................................................................. 21 7.3.4 Plaintext Equality proof system .................................................................... 22 7.3.5 Decryption proof system. ............................................................................ 22 8 Verifiable mixnet ..................................................................................... 23 8.1 Homomorphic commitment scheme ..................................................................... 23 8.2 Mixing proof system ....................................................................................... 23 8.2.1 Mix ...................................................................................................... 24 8.2.2 ShuffleArg .............................................................................................. 24 8.2.3 MultiExpArg ........................................................................................... 24 8.2.4 ProductArg............................................................................................. 25 8.2.5 HadamardProdArg..................................................................................... 25 8.2.6 ZeroArg................................................................................................. 26 8.2.7 SingleValueProdArg ................................................................................... 26 8.2.8 Fiat-Shamir heuristic in Shuffle Argument....................................................... 26 8.2.9 Special case of mixing................................................................................ 33 8.3 MixVerify..................................................................................................... 33 8.4 verifyShuffleArg ............................................................................................. 33 8.5 verifyMultiExpArg ........................................................................................... 34 8.6 verifyProductArg ............................................................................................ 34 8.7 verifyHadamardProdArg .................................................................................... 35 8.8 verifyZeroArg ................................................................................................ 35 8.9 verifySingleValueProdArg .................................................................................. 36 9 Hard problems......................................................................................... 36 9.1 The Decisional Diffie-Hellman problem (DDH) ....................................................... 36 9.2 Subgroup Generated by Small Primes (SGSP)........................................................ 36 III sVote voting system 39 10 General aspects ....................................................................................... 40 10.1 Public system parameters................................................................................. 40 10.1.1 ElGamal parameters.................................................................................. 40 10.1.2 Pedersen commitment key........................................................................... 40 iii
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 10.1.3 Voting options......................................................................................... 40 10.1.4 Voter pseudonyms .................................................................................... 41 10.1.5 Return codes spaces .................................................................................. 41 10.2 Achieving verifiability and privacy ...................................................................... 41 10.2.1 Individual verifiability................................................................................ 41 10.2.2 Universal verifiability and voter privacy .......................................................... 42 11 Phases ...................................................................................................... 42 11.1 Configuration phase........................................................................................ 43 11.2 Voting phase ................................................................................................ 46 11.3 Tally phase .................................................................................................. 47 12 Protocols and procedures........................................................................ 47 12.1 Configuration phase protocols............................................................................ 51 12.1.1 Protocol SetupVoting ................................................................................. 51 12.1.1.1 GenEncryptionKeysPO .......................................................................... 51 12.1.1.2 GenKeysCCRj..................................................................................... 51 12.1.1.3 GenVerCardSetKeys.............................................................................. 51 12.1.1.4 GenVerDat ........................................................................................ 52 12.1.1.5 GenEncLongCodeSharesj........................................................................ 53 12.1.1.6 CombineEncLongCodeShares ................................................................... 54 12.1.1.7 GenCMTable...................................................................................... 54 12.1.1.8 GenCredDat ...................................................................................... 56 12.1.2 Protocol SetupTally ................................................................................... 56 12.1.2.1 SetupTallyCCMj................................................................................. 56 12.1.2.2 SetupTallySDM .................................................................................. 57 12.1.3 VerifyConfigPhase ..................................................................................... 57 12.2 Voting phase protocols .................................................................................... 57 12.2.1 Protocol SendVote .................................................................................... 58 12.2.1.1 GetKey ............................................................................................ 58 12.2.1.2 CreateVote........................................................................................ 58 12.2.1.3 VerifyBallotServ .................................................................................. 59 12.2.1.4 VerifyBallotCCRj................................................................................. 60 iv
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 12.2.1.5 PartialDecryptPCCj.............................................................................. 60 12.2.1.6 DecryptPCC ...................................................................................... 61 12.2.1.7 CreateLCCSharej................................................................................. 62 12.2.1.8 ExtractCRC ....................................................................................... 63 12.2.1.9 VerifyCRC......................................................................................... 64 12.2.2 Protocol ConfirmVote................................................................................. 64 12.2.2.1 Protocol CreateConfirmMessage ............................................................... 64 12.2.2.2 VerifyConfirmationServ .......................................................................... 64 12.2.2.3 VerifyConfirmationCCRj......................................................................... 64 12.2.2.4 CreateLVCCSharej................................................................................ 65 12.2.2.5 ExtractVCC ....................................................................................... 66 12.2.2.6 VerifyVCC......................................................................................... 66 12.2.3 VerifyVotingPhase ..................................................................................... 66 12.3 Tally phase protocol ....................................................................................... 68 12.3.1 Protocol MixOnline.................................................................................... 68 12.3.1.1 Cleansing.......................................................................................... 68 12.3.1.2 MixDecOnlinej................................................................................... 69 12.3.2 Protocol MixOffline ................................................................................... 69 12.3.2.1 MixDecOffline .................................................................................... 69 12.3.2.2 DecodePlaintexts................................................................................. 70 12.3.3 Audit tally algorithms................................................................................ 70 12.3.3.1 VerifyOnlineTally ................................................................................. 70 12.3.3.2 VerifyOfflineTally................................................................................. 71 12.3.3.3 Auditors.VerifyElection .......................................................................... 72 IV Security analysis 73 13 Security framework ................................................................................. 74 13.1 Properties analyzed ........................................................................................ 74 14 Preliminary results.................................................................................. 74 14.1 Correct setup ............................................................................................... 74 14.2 Vote compliance ............................................................................................ 77 v
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 15 Individual verifiability............................................................................. 79 15.1 Sent as intended............................................................................................ 79 15.2 Recorded as confirmed .................................................................................... 81 15.2.1 Vote rejection ......................................................................................... 81 15.2.2 Vote injection ......................................................................................... 81 16 Universal verifiability .............................................................................. 83 16.1 On ballot boxes ready for tally .......................................................................... 83 16.1.1 Extracting votes from ballots........................................................................ 84 16.2 Modeling correct tally ..................................................................................... 85 17 Privacy ..................................................................................................... 86 18 Security reductions.................................................................................. 92 18.1 Proof of Lemma 1 (codes mapping table correctness)................................................ 92 18.2 Proof of Lemma 2 (vote compliance) ................................................................... 93 18.3 Proof of Theorem 1 (sent as intended) ................................................................. 95 18.4 Proof of Theorem 2 (recorded as confirmed - reject)................................................. 96 18.5 Proof of Theorem 3 (recorded as confirmed - inject)................................................. 98 18.6 Proof of Theorem 4 (correct tally) ...................................................................... 99 18.7 Proof of Theorem 5 (ballot privacy) .................................................................... 100 V Parameters and further remarks 104 19 Choice of parameters...............................................................................105 19.1 ElGamal encryption scheme.............................................................................. 105 19.2 Symmetric key encryption scheme....................................................................... 105 19.3 Key Derivation functions ................................................................................. 105 19.4 Hash functions.............................................................................................. 105 19.5 Pseudo-random functions ................................................................................. 105 19.6 Verifiable mixnet ........................................................................................... 105 19.7 Return codes spaces ....................................................................................... 106 20 Abstractions.............................................................................................106 20.1 PKI and authenticated channels......................................................................... 106 vi
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 20.2 Voter authentication....................................................................................... 107 20.3 Offline mixing control component ....................................................................... 108 20.4 Write-ins.....................................................................................................109 20.5 Re-login after sending or confirming the vote ......................................................... 109 20.6 Validations in untrusted components ................................................................... 109 21 Conclusion ...............................................................................................109 21.1 Final remarks and improvements........................................................................ 110 21.2 Verifiability.................................................................................................. 110 21.3 Privacy.......................................................................................................111 21.4 VEleS security objectives ................................................................................. 111 21.4.1 Individual verifiability................................................................................111 21.4.1.1 Assumptions on honest voter’s behavior.....................................................113 21.4.2 Universal verifiability ................................................................................114 21.4.2.1 Assumptions on auditors.......................................................................115 vii
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy List of figures Figure 1 IND-CPA game. ............................................................................................. 13 Figure 2 Games rPRFF Aand sPRFF A................................................................................ 14 Figure 3 Games rKDFKDF Aand sKDFKDF A............................................................................ 15 Figure 4 Games rSHVZK, and sSHVZK............................................................................. 17 Figure 5 Games rNIZK, and sNIZK ................................................................................. 18 Figure 6 Simulation soundness game of ΣH(P,V). ............................................................... 19 Figure 7 Shuffle argument ............................................................................................ 27 Figure 8 Multi-exponentiation argument........................................................................... 28 Figure 9 Product argument........................................................................................... 29 Figure 10 Hadamard argument........................................................................................ 30 Figure 11 Zero argument ............................................................................................... 31 Figure 12 Single value product argument............................................................................ 32 Figure 13 DDH game.................................................................................................... 37 Figure 14 SGSP game................................................................................................... 37 Figure 15 ESGSP game. ................................................................................................ 38 Figure 16 Protocol SetupTally ......................................................................................... 44 Figure 17 Protocol SetupVoting ....................................................................................... 45 Figure 18 Protocol SendVote........................................................................................... 48 Figure 19 Protocol ConfirmVote ....................................................................................... 49 Figure 20 Protocol FirstMixes.......................................................................................... 50 Figure 21 Protocol IdealSetupVoting .................................................................................. 75 Figure 22 Protocol IdealSetupTally .................................................................................... 76 Figure 23 Games for correct setup.................................................................................... 76 Figure 24 Game for vote compliance ................................................................................. 79 Figure 25 Game for sent as intended ................................................................................. 80 Figure 26 Game for recorded as confirmed - rejections............................................................ 82 Figure 27 Game for recorded as confirmed - injections............................................................ 83 Figure 28 Games for correct tally..................................................................................... 86 Figure 29 Experiments Expbpriv,β A,V(crs)defined for β∈ {0,1}..................................................... 89 Figure 30 Privacy: Oracles given to the adversary Aduring the voting phase................................ 90 Figure 31 Privacy: Oracles given to the adversary Aduring the tally phase. ................................. 91 viii
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy System components Trust assumption Section [16] Voters significant proportion of voters are 4.1 untrustworthy User platform untrustworthy for individual 4.1 and complete verifiability trustworthy for privacy 4.3 Trusted technical aids trustworthy 4.1 for voters System (server-side) untrustworthy 4.3 Print office trustworthy 4.1 Control Components trustworthy only as the whole 4.3 Auditors at least one is trustworthy 4.3 Auditor’s technical aid at least one honest auditor has a trustworthy aid 4.3 Table 1: Assumption on parties of the complete abstract model defined in VEleS [16] Communication channel Trust assumption Section Voters ↔user platform trustworthy 4.1 Voters ↔trustworthy technical aids trustworthy 4.1 Trustworthy technical aids ↔user platform trustworthy 4.1 User platform ↔system untrustworthy 4.1 System ↔print office untrustworthy 4.1 Print office →voter trustworthy 24.1 Control component ↔system untrustworthy 4.3 System ↔auditor’s technical aids untrustworthy 4.3 Auditors’ technical aid ↔auditors trustworthy 4.3 Bidirectional channels for communication untrustworthy 4.3 between control components Table 2: Assumption on communication channels of the complete abstract model defined in VEleS [16] 2.5 Trust model in sVote 2.5.1 Parties in sVote The protocol specification [43] uses slightly different notations (Protocol Specifications section 1.1.1) and defines the participants of the voting protocol as follows: -Voter: they participate in the election by choosing their preferred options. -Voting Client : is the device used by the voter to cast their vote given the voting options selected 6
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy by the voters. -Voting Server: it receives, processes and stores the votes cast by the voters in the ballot box bb. -Control Components are separated in two groups; one group participates in the choice return codes and vote cast code generation, one group mixes and decrypts votes: Choice Return Codes Control Components (CCR): they collaborate with the Print Office indirectly (via the Voting Server) in the setup phase, and directly with the Voting Server in the voting phase, to compute the long Choice Return Codes and the long Vote Cast Code. Mixing Control Components (CCM): they mix and partially decrypt ciphertexts in the ballot box. -Print Office: It is responsible for generating, printing and delivering the voting cards to the voters as well as for generating the required election keys 3. -Election Administrators: they are responsible for generating the election configuration, verifying it, computing the results and publishing them. In the Protocol Specification this entity is divided into Administration Board and Administration Portal based on their ability to perform cryptographic operations, however, in our model we do not distinguish between those two. -Bulletin board: is the entity used to store all the information generated during the election to verify the entire process. It stores the election configuration, the votes, the confirmations and keeps track of all the actions performed by each entity. The Bulletin Board is implemented as a distributed system, that includes: the election configuration (maintained by the Print Office), the Secure Logger (maintained by the CCR) and the Ballot Box (maintained by the Voting Server). In this document we refer to the Secure Logger as the CCR’s logs. -Electoral Board: This entity owns a key pair whose private key is shared among the Board members and is used to partially decrypt the votes in the last Control Component. -Auditors: they verify the proofs and the information provided by the untrustworthy system components. They detect misbehavior of untrustworthy parties and, therefore, ensure the security goals of the system. -Verifier: is the component used to verify the correctness of the entire election process, the integrity of the data processed through different voting system components, and that these processes are accurate and fair. 3For generating cryptographic material, Print Office runs a software called Secure Data Manger (SDM). This software is executed in a controlled, offline environment on the canton’s premises. All operations on the SDM are subject to very strict 4-eyes principles and are executed on laptops with special access rights and hardened laptops. 7
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 2.5.2 Trust assumptions in sVote Our model proves the desired security goals under the following assumptions: • The Voting Server is not trusted. Instead, there are two groups of so called control components CCM and CCR that interact directly with the Voting Server and indirectly with the Print Office (via Voting Server). Each group of control components is trusted as a whole, under the assumption that at least one of them is reliable. However, each sole control component is not trusted. • The credential delivery channel (postal channel between the Print Office and the voter) is considered to be trustworthy. • The Print Office is trusted. • The Voting Client of honest voters is trusted for privacy, and not trusted for individual and universal verifiability. • The election configuration (number and names of the candidates, lists, questions, and answers, generated number of credentials, number of allowed options, details of electoral model) generated by the Election Administrators is correct. The auditors validate the number of generated voting cards using the information from the Secure Logs and the electoral board validates the correctness of the configuration using procedural means (test and control votes). • The communication channel between the client side and the server side is not trusted. • A significant proportion of the voters may not be trustworthy. • The Electoral Board is treated as set of control component and therefore is trusted as whole, i.e. at least one Electoral Board member is assumed to be trustworthy. • At least one of the auditors and her technical aids (software or hardware tools) are trusted to behave properly. 2.6 Correspondence between both security models Table 3 and 4 relate the different parties and communication channels between the Chancellery and the sVote security models. 8
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy sVote’s Chancellery’s Trust assumption system component system component Voters Voters significant proportion of voters are non-trustworthy Voting Client User platform untrustworthy for individual and complete verifiability trustworthy for privacy Voting Card Trusted technical aids trustworthy for voters Voting Server System (server-side) untrustworthy Print office Print office trustworthy CCM Control Components trustworthy only as a whole CCR Auditors Auditors at least one is trustworthy Verifier Auditor’s technical aid at least one honest auditor has a trustworthy aid Table 3: Correspondence between sVote and the Chancellery assumptions made on the protocol’s participants 9
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy sVote Chancellery’s Trust assumption communication channels communication channel Voters ↔Voting Client Voters ↔user platform trustworthy Voters ↔Voting Cards Voters ↔Trustworthy technical aids trustworthy no channel exists Trustworthy technical aids ↔User platform trustworthy Voting Client ↔Voting Server User platform ↔system untrustworthy Voting Server ↔Print office System ↔print office untrustworthy Print office →Voter Print office →voter trustworthy a CCM ↔Voting Server Control component ↔system untrustworthy CCR ↔Voting Server Voting Server ↔Verifier System ↔auditor’s technical aids untrustworthyCCM ↔Verifier CCR ↔Verifier Verifier ↔auditor Auditors’ technical aid ↔auditors trustworthy no channel exists Bidirectional channels for untrustworthycommunication between control components Table 4: Correspondence between the sVote and the Chancellery assumptions made on the communication channels aThis channel may only be regarded as trustworthy if the information has been sent by Swiss Post (section 4.2.9 page 23) 10
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Part II Building blocks 11
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 3 ElGamal encryption scheme The ElGamal [23] encryption scheme is a public-key encryption scheme instantiated over a cyclic group Gqof order qwith generator g, where the Decision Diffie-Hellman (DDH) problem is believed to be hard. The scheme has four algorithms. The first algorithm takes as input a security parameter λand outputs group parameters. The remaining algorithms also take implicitly as input the security parameter and the group parameters. ParamsGen(1λ)This algorithm takes as input a security parameter λand outputs gparams containing a description of the group Gq, including the group order qand a group generator g∈Gq. KeyGen(gparams)This algorithm takes as input the group parameters and outputs a pair of secret/public keys (sk, pk)∈Z∗ q×Gq. The secret key is randomly sampled sk $ ←Z∗ q, and the public key is set to pk =gsk ∈Gq. Enc(m, pk)This algorithm takes as input a message m∈Gqand a public key pk ∈Gq. It samples at random r$ ←Z∗ qand outputs c= (c0, c1) = (gr, pkr·m)∈G2 q. Dec(c, sk)This algorithm takes as input a ciphertext c∈G2 q, and the private key sk ∈Z∗ qand outputs m=c1·c−sk 0∈Gq. ElGamal has perfect correctness: for any given pair of keys (sk, pk)it holds Dec(Enc(m, pk), sk) = m for all m∈Gq. 3.1 Multi-recipient ElGamal When a single encrypter sends multiple messages to different recipients (with different public keys) the encryption algorithm can be optimized by sharing the encryption randomness at no security loss. This optimization is known as multi-recipient ElGamal [4]. The encryption and decryption algorithms are defined as follows: MultiEnc(m,pk)This algorithm takes as input a vector of messages m∈Gℓ q, and a vector of public keys pk ∈Gℓ q. It samples at random r$ ←Z∗ qand outputs c= (c0, c1, . . . , cℓ) = (gr, pkr 1·m1, . . . , pkr ℓ·mℓ)∈Gℓ+1 q. MultiDec(c,sk)This algorithm takes as input a ciphertext c∈Gℓ+1 q, and a vector of private keys sk ∈ (Z∗ q)ℓand outputs a vector of messages m∈Gℓ qsuch that mi=ci·c−ski 0∈Gq. 12
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 3.2 ElGamal over multiplicative groups ElGamal is often instantiated over the group of quadratic residues Qp<Z∗ pof prime order q, for modulus p= 2q+ 1 being a safe prime large enough to preserve the hardness of DDH. The group description is gparams = (p, q, g), where ggenerates Qp. We will take gto be the smallest prime which is a quadratic residue in Z∗ p. 4 Symmetric encryption schemes Let K,IV,Mbe a key space, IV space, and message space, respectively, and let E:K × IV × M → M be a length-preserving permutation in M, with inverse function D. An IV-based probabilistic symmetric encryption scheme [42] consists in three algorithms: KeyGens(λ)This algorithm takes as input a security parameter λand outputs a random key K$ ← K. Encs(M, K)This algorithm takes as input a plaintext M∈ M and a key K∈ K. Then it samples a random IV $ ← IV, computes C′=E(K, IV, M)and outputs a ciphertext C=IV ||C′. Here C′is the core part of ciphertext produced using the IV . Decs(C, K)This algorithm takes as input a ciphertext C∈ C and a key K∈ K. Then it parses IV ||C′← Cand outputs plaintext M=D(K, IV, C′). The scheme is correct if for each M∈ M it holds Decs(K, Encs(K, M)) = M. We also require the scheme to be semantically secure. Informally this means that it is not possible to tell apart ciphertexts encrypting different plaintexts. The following formal definition of semantic security is taken from [6]. Definition 1 (IND-CPA) A symmetric encryption scheme given by the triplet SEnc = (KeyGens,Encs,Decs) is IND-CPA secure if for any PPT algorithm Ait holds: AdvSEnc,INDCPA A=Pr[1 ←INDCPASEnc A]−1 2≈0 where the game INDCPASEnc Ais defined in Figure 1. INDCPASEnc A: 1. Choose at random K$ ← K 2. b$ ← {0,1} 3. b′← ALRK,b(·,·) 4. Return 1iff b=b′ Oracle LRK,b(M0, M1): 1. C←Encs(K, Mb) 2. Return C Figure 1: IND-CPA game. The adversary is given access to a left-right encryption oracle of messages of its choosing and is asked to guess the bit b. 13
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 5 Pseudorandom functions Let F:K × X → Y be an efficiently computable function where Kis the key space, Xthe domain space, and Ythe range space. The function is parameterized with public parameters pp. Informally, the function is pseudorandom if its outputs cannot be distinguished from the outputs of a truly random function. Definition 2 (Pseudorandom) A function Fpp :K×X → Y is pseudorandom if for all PPT algorithms Awe have AdvF,PRF A(pp) = Pr[1 ←rPRFF A(pp)] −Pr[1 ←sPRFF A(pp)]≈0 where the games rPRFF Aand sPRFF Aare defined in Figure 2. rPRFF A(pp): 1. Choose at random k$ ← K 2. b← AFpp(k,·) 3. Return b sPRFF A(pp): 1. Choose a random function R:X → Y 2. b← AR(·) 3. Return b Figure 2: (Left) Real game. The adversary queries adaptively the pseudorandom function F.(Right) Simulated game. The adversary queries adaptively the random function R. If the key space Kand the range space Yare both groups, then the function is key-homorphic if the group operation of the range space respects the group operation of the key space. See for example the formalization of Boneh et. al. [14]. Definition 3 (Key-homomorphic) Let two groups (G1, ⋆), and (G2,⊗), the pseudorandom function Fpp :G1× X → G2is key-homomorphic if Fpp(k1⋆ k2, x) = Fpp(k1, x)⊗F(k2, x)∀k1, k2∈G1,∀x∈ X. Group Exponentiation as prf in rom. Naor, Pinkas, and Reingold [34] showed that the function Fpp :Zq×Gq→Gqgiven by Fpp(k, x) = xkis a weak pseudorandom function under the DDH assumption over Gq. Thus, it behaves as a pseudorandom function provided the inputs come from the random distribution. In ROM, randomness on input x(arbitrarily distributed) is enforced by feeding H(x)to F. Here H(·)denotes a cryptographic hash function with domain and range set to Gq, and pp includes a description of Gq. This function is clearly key-homomorphic. We will set Gqto be the group of quadratic residues Qp≤Z∗ p, hence pp includes gparams = (p, q, g), see Section 3.2. 6 Key derivation functions A key derivation function (KDF) KDF :K × X → Y is a function with which an input key from space K and other input data from Xare used to generate (i.e. derive) key material in Ythat can be employed 14
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy by cryptographic algorithms. The protocol uses a secure KDF function that is constructed using a secure PRF function F(k, x)→ {0,1}hto derive Lbits of keying material and defined as follows: KDF(k, s)takes as input a derivation key kthat is a cryptographic key used for derivation of a key material and sis a unique value per KDF caller. Then it iterates a secure PRF n= [L h]times and concatenates the outputs until Lbits of key material are generated. Note, that nshall not be large than 232 −1. The key derivation is done as follows: -n= [L h]. - If n > 232 −1, abort and return ⊥. -result(0) = ∅ - For i= 1, . . . , n: -K(i) = F(k, s||i). -result(i) = result(i−1)||K(i). - Return Lleftmost bits of result(n). Definition 4 (Pseudorandom) A function KDF :K × X → Y is pseudorandom if for all PPT algorithms Awe have AdvKDF A(k, s) = Pr[1 ←rKDFKDF A(k, s)] −Pr[1 ←sKDFKDF A(k, s)]≈0 where the games rKDFKDF Aand sKDFKDF Aare defined in Figure 3. rKDFKDF A(s, k): 1. Compute k′←KDF(k, s) 2. b← A(k′) 3. Return b sKDFKDF A(k, s): 1. Choose a random function k′$ ← Y 2. b← A(k′) 3. Return b Figure 3: (Left) Real game. The adversary receives a derived key k′.(Right) Simulated game. The adversary receives a randomly sampled key k′. The protocol additionally uses a password-based key derivation function specified in [26] and defined by the algorithm PBKDF as follows: PBKDF(pwd,salt)receives as input a password string pwd and a salt salt. This algorithm derives the cryptographic key Kof a length dkLen using PRF with iterN iterations. The security of this primitive relies on the one-way and collision-resistance properties of the underlying hash function. 15
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 7.3.4 Plaintext Equality proof system The plaintext equality proof system EqEnc = (ProveEqEnc,VerifyEqEnc)is based on the Chaum-Pedersen proof system [17]. It is a pre-image proof system with group homomorphism ϕ:Z2 q→Q3 pgiven by ϕ(r, ¯r)=(gr, g¯ r, hr/¯ h¯ r). The description of ϕis given by the group parameters (p, q)and the group elements g, h, ¯ h, all in Qp. Let two ElGamal ciphertexts c= (c0, c1),¯ c= (¯c0,¯c1)under two public keys h, ¯ hof the same plaintext, where ElGamal is instantiated over Qpwith generator g. This proof system proves that (c0,¯c0, c1/¯c1) = ϕ(r, ¯r), where r, and ¯rare the random exponents used to encrypt cand ¯ c, respectively. That is, it proves that c,¯ cencrypt the same plaintext. The algorithms are as follows: ProveEqEnc((p, q, g, h, ¯ h, c,¯ c),(r, ¯r),aux):Execute steps of algorithm prove from Defn. 12. • Inputs: statement st = ((p, q, g, h, ¯ h),(c0,¯c0, c1/¯c1)), witness w= (r, ¯r), where (c0,¯c0, c1/¯c1)∈ Q3 pand (r, ¯r)∈Z2 q. • Output: πEqEnc = (e, z, ¯z)∈Zs×Z2 q. VerifyEqEnc((g, h, ¯ h, c,¯ c), πEqEnc,aux):Execute steps of algorithm verify from Defn. 12. • Inputs: statement st = ((p, q, g, h, ¯ h),(c0,¯c0, c1/¯c1)), proof πEqEnc = (e, z, ¯z), where (c0,¯c0, c1/¯c1)∈ Q2 pand (e, z, ¯z)∈Zs×Z2 q. • Output: either 1(accept) or 0(reject). 7.3.5 Decryption proof system. The correct decryption proof system dec = (ProveDec,VerifyDec)is also based on the Chaum-Pedersen proof system [17]. It is a pre-image proof system with group homomorphism ϕ:Zn q→Q2n pgiven by ϕ(x) = (gx1, . . . , gxn, cx1 0, . . . , cxn 0). The description of ϕis given by the group parameters (p, q)and by g and c0, both elements in Qp. Let ElGamal instantiated over a cyclic group Qpwith generator g, and let a multi-recipient ciphertext c= (c0,¯ c) = (c0, c1, . . . , cn)under public keys h= (h1, . . . , hn), with hi=gxi, and plaintexts m= (m1, . . . , mn)resulting from decrypting cusing the secret keys x= (x1, . . . , xn). This proof system proves that (h,¯ c/m) = ϕ(x), that is, it proves correct decryption of cto munder secret keys x. The algorithms are as follows: ProveDec((p, q, g, h,c,m),x,aux):Execute steps of algorithm prove from Definition 12. • Inputs: statement st = ((p, q, g, c0),(h,¯ c/m)), witness w=x, where (h,¯ c/m)∈Q2n pand x∈Zn q. • Output: πdec = (e, z)∈Zs×Zn q. 22
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy VerifyDec((p, q, g, h,c,m), πdec,aux):Execute steps of algorithm verify from Definition 12. • Inputs: statement st = ((p, q, g, c0),(h,¯ c/m)), proof πdec = (e, z), where (h,¯ c/m)∈Q2n pand (e, z)∈Zs×Zn q. • Output: either 1(accept) or 0(reject). Observe that this proof system also proves correctness of partial decryptions: in this situation the ciphertext cis encrypted under public key Qm j=1 hj, and the partially decrypted ciphertext is d= (c0,m). Then, the party Pjholding shares (hj,xj)of the public and private keys proves that (hj,¯ c/m) = ϕ(xj). 8 Verifiable mixnet 8.1 Homomorphic commitment scheme The verifiable proof of a shuffle correctness requires a computationally binding homomorphic commitment scheme i.e. a computationally binding commitment scheme for which it holds that comckmix (a+b;r+s) = comckmix (a;r)comckmix (b;s)for messages a, b, a commitment key ckmix and randomnesses r, s. We use the generalization of the Pedersen commitment scheme [40] with a commitment key ckmix = (G, G1, . . . , Gn, H), where G1, . . . , Gn, H are the random generators of the group Ggenerated by the key generation algorithm K. To commit to a vector of nelements a= (a1, . . . , an)∈Zn q, we pick randomness r∈Zqand compute comckmix (a;r) = comckmix (a1, . . . , an;r) = HrQn i=1 Gai i. We can also commit to less than nelements; this is done by setting the remaining entries to 0. A commitment to a matrix A∈Zn×m qwith columns a1, . . . , amis computed as comckmix (A;r) = (comckmix (a1;r1), . . . , comckmix (am;rm)). Similarly a commitment to a large vector a∈ZN q, where N=m× n(that is in fact a matrix converted into to vector), is computed as comckmix (a;r) = (comckmix (a1, . . . , an;r1), . . . , comckmix (a(m−1)n+1, . . . , aN;rm)). Also we define cb= (c1, . . . , cm)(b1,...,bm)T=Qm j=1 cbj jand for matrix Bwith columns b1, . . . , bmwe define cB= (cb1, . . . , cbm). 8.2 Mixing proof system Informally, a shuffle or mixing of ciphertexts C1, . . . , CNis a set of ciphertexts C′ 1, . . . , C′ Nwith the same plaintexts in permuted order and a different encryption randomness. Therefore, to prove the correctness of a shuffle , one needs to prove knowledge of the permutation πand the randomness ρsuch that {C′ i}N i=1 ={Cπ(i)·Enc(1,pkmix;ρi)}N i=1 without revealing πand ρto the verifier. In our protocol we use an honest verifier zero-knowledge argument for correctness of a shuffle of homomorphic encryptions proposed by Stephanie Bayer and Jens Groth [2]. Following their notation, we write Gfor the group used in the commitment scheme, and Hfor the ciphertext space. 23
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 8.2.1 Mix(pkmix,ckmix,C) This algorithm takes as input a mixing pkmix and commitment ckmix public keys and a vector of initial ciphertexts C, then it permutes and re-encrypts ciphertexts to generate the resulting vector C′and proves shuffle correctness by computing a zero-knowledge proof of a shuffle πmix,: 1. Sample permutation πand randomness ρ. 2. Re-encrypt and permute ciphertexts Cto get C′. 3. Compute proof of the shuffle πmix,←ShuffleArg(pkmix,ckmix,C,C′, π, ρ). Finally it returns the shuffled and permuted ciphertexts C′and a proof of shuffle correctness πmix,. 8.2.2 ShuffleArg(pkmix,ckmix,C,C′, π, ρ) This algorithm is a public coin perfect SHVZK argument of knowledge of a permutation π∈ΣNand randomness ρ∈ZN qsuch that for given ciphertexts C∈HNand C′∈HNit holds that C′=Enc(1,pk)Cπ. An interactive proof is computed as described in Figure 7 with the following input: • CRS: pkmix,ckmix • Statement: C,C′ • Witness: π, ρ Note, that for non-interactive case, challenges are computed as follows: •x←H(pkmix,ckmix,InitMShufArg,C′,C,aux) = H(pkmix,ckmix,cA,C′,C,aux). •y←H(Answer1ShufArg,pkmix,ckmix,InitMShufArg,C′,C,aux) = H(cB,pkmix,ckmix,cA,C′,C,aux)5. •z←H(1,Answer1ShufArg,pkmix,ckmix,InitMShufArg,C′,C,aux) = H(1,cB,pkmix,ckmix,cA,C′,C,aux)6, where InitMShufArg = (cA)is an initial message of a shuffle argument and Answer1ShufArg = (cB)is a first answer of the Shuffle product argument computed as described in Figure 7. The output is (cA,cB, πProd, πMultiExp). 8.2.3 MultiExpArg(pkmix,ckmix,(C1, . . . , Cm), C, cA,{aj}m j=1,r, ρ) This algorithm is a public coin argument of knowledge of openings of commitments cAto A={aj}m j=1 such that C=Enc(1; pkmix;ρ)Qm i=1 Cai iand cA=comckmix (A;r). An interactive proof is computed as described in Figure 8 with the following input: 5We don’t need to include xexplicitly since it deterministically depends on values already included in the hash. 6We don’t need to include xand yexplicitly since they deterministically depend on values already included in the hash. 24
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy • CRS: pkmix,ckmix • Statement: (C1, . . . , Cm), C, cA • Witness: {aj}m j=1,r, ρ Note, that for non-interactive case, the challenge are computed as follows: •x←H(pkmix,ckmix,InitMMultiExp,cA, C, C1, . . . , Cm,aux) = H(pkmix,ckmix,{Ek}2m−1 k=0 ,{cBk}2m−1 k=0 , cA0,cA, C, C1, . . . , Cm,aux), where InitMMultiExp = ({Ek}2m−1 k=0 ,{cBk}2m−1 k=0 , cA0)is an initial message of a multiexponentiation argument computed as described in Figure 8. The output is πMultiExp = (cA0,{cBk}2m−1 k=0 ,{Ek}2m−1 k=0 ,a, r, b, s, τ). 8.2.4 ProductArg(pkmix,ckmix,cA, b, A, r) This algorithm is an argument that a set of committed values have a particular product i.e. given a commitment cAto A={aij }n,m i,j=1 and a value bit gives an argument of knowledge for Qn i=1 Qm j=1 aij =b. An interactive proof is computed as described in Figure 9 with the following input: • CRS: pkmix,ckmix • Statement: cA, b • Witness: A, r Note, that this proof does not require a challenge. The output is πProd = (cb, πHadPA, πSingleVPA). 8.2.5 HadamardProdArg(pkmix,ckmix,cA, cb,(a1, . . . , am),r,b, s) This algorithm is an argument of knowledge of the openings a11, . . . , anm and b1, . . . , bnto the commitments cAand cbs.t. bi=Qm j=1 aij for i= 1, . . . , n. An interactive proof is computed as described in Figure 10 with the following input: • CRS: pkmix,ckmix • Statement: cA, cb • Witness: (a1, . . . , am),r,b, s Note, that for non-interactive case, challenges are computed as follows: •x←H(pkmix,ckmix,InitMHadPA, cb,cA,aux) = H(pkmix,ckmix,cB, cb,cA,aux) •y←H(1,pkmix,ckmix,InitMHadPA, cb,cA,aux) = H(1,pkmix,ckmix,cB, cb,cA,aux)5, where InitMHadPA = (cB)is an initial message of Hadamard product argument computed as described in Figure 10. The output is πHadPA = (cB, πZeroArg). 25
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 8.2.6 ZeroArg(pkmix,ckmix,cA,cB, ⋆, A, B, r,s) This algorithm is an argument of knowledge of the committed values a1,b0, . . . , am,bm−1s.t. 0 = Pm i=1 ai⋆bi−1. An interactive proof is computed as described in Figure 11 with the following input: • CRS: pkmix,ckmix • Statement: cA,cBand a specification of a bilinear map ⋆:Zn q×Zn q→Zq • Witness: A, B, r,s Note, that for non-interactive case, challenges are computed as follows: •x←H(pkmix,ckmix,InitMZeroArg,cB,cA,aux) = H(pkmix,ckmix,cD, cBm, cA0,cB,cA,aux),where InitMZeroArg = (cD, cBm, cA0)is an initial message of a zero argument computed as described in Figure 11. The output is πZeroArg = (cA0, cBm,cD,a,b, r, s, t). 8.2.7 SingleValueProdArg(pkmix,ckmix, ca, b, a, r) This algorithm is an argument of knowledge of the opening a1, . . . , an, r s.t. ca=comckmix (a;r)and b=Qn i=1 ai. An interactive proof is computed as described in Figure 12 with the following input: • CRS: pkmix,ckmix • Statement: ca, b • Witness: a, r Note, that for non-interactive case, challenges are computed as follows: •x←H(pkmix,ckmix,InitMSingleVPA, b, ca,aux) = H(pkmix,ckmix, c∆, cσ, cd, b, ca,aux), where InitMSingleVPA = (c∆, cσ, cd)is an initial message of a single value product argument computed as described in Figure 12. The output is πSingleVPA = (cd, cσ, c∆,˜a1,˜ b1, . . . , ˜an,˜ bn,˜r, ˜s). 8.2.8 Fiat-Shamir heuristic in Shuffle Argument In the Fiat-Shamir heuristic the prover computes the public-coin challenges with a cryptographic hashfunction instead of interacting with a verifier. We apply the Fiat-Shamir heuristic of the following form: x=H(CRS,Statement,InitMessage,aux)to each internal public-coin interactive sub-argument of the Shuffle Argument independently. Note that His a hash function with domain separation, thus the list of variables is encoded uniquely into a binary string. For the Hadamard Product Argument and the Shuffle Argument, where the Verifier sends two challenges x, y, the second challenge is generated as y=H(1,CRS,InitMessage,Statement,aux)to ensure that ydiffers from x. 26
Prover Challenger CRS: pkmix,ckmix Statement: C,C′∈HNwith N=mn Witness: π∈ΣNand ρ∈ZN q Pick r←Zm q Set a={π(i)}N i=1 Compute cA=comckmix (a;r) InitMessage: cA −−−−−−−−−−−−→ x←Z∗ q Challenge: x ←−−−−−−−−−− Pick s∈Zm q Set b={xπ(i)}N i=1 Compute cB=comckmix (b;s) 1st Answer: cB −−−−−−−−−−−−→ y, z ←Z∗ q Challenges: y,z ←−−−−−−−−−−−− Define c−z=comckmix (−z,...,−z;0) and cD=cy AcB. Compute d=ya+band t=yr+s Set b=∏N i=1(yi +xi−z) πProd ←ProductArg(pkmix,ckmix,cDc−z, b, d−z,t) Engage in Product Argument of opening d1−z,...,dN−zand ts.t. cDc−z=comckmix (d−z;t)and ∏N i=1(di−z) = ∏N i=1(yi +xi−z) Compute ρ=−ρ·b Set x= (x, x2, x3,...,xN)T πMultiExp ←MultiExpArg(pkmix,ckmix,C′,Cx,cB,b,s, ρ) Engage in a multi-exponentiation argument of b,sand ρs.t. Cx=Enc(1; pkmix;ρ)C′b 2nd Answer: πProd,πMultiExp −−−−−−−−−−−−−−−−−−−−→ Figure 7: Shuffle argument: an argument of knowledge of a permutation πand randomness ρs.t. C′=Enc(1;pkmix;ρ)Cπ.
Prover Challenger CRS: pkmix,ckmix Statement: (C1,...,Cm)∈Hn,C∈Hand cA∈Gm Witness: {aj}m j=1 ∈Zn×m q,r∈Zm qand ρ∈Zq Pick a0←Zn q,r0←Zq Pick b0, s0, τ0,...,b2m−1, s2m−1, τ2m−1←Zq Set bm= 0, sm= 0, τm=ρ Compute for k= 0,...,2m−1: cA0=comckmix (a0;r0) cBk=comckmix (bk;sk) Ek=Enc(gbk;pkmix;τk)∏m,m i=i,j=0 j=(k−m)+i Ciaj InitMessage: {Ek}2m−1 k=0 ,{cBk}2m−1 k=0 ,cA0 −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−→ x←Z∗ q Challenge: x ←−−−−−−−−−− Set x= (x, x2, x3,...,xm)T Compute: a=a0+Ax r=r0+rx b=b0+∑2m−1 k=1 bkxk s=s0+∑k=1 2m−1skxk τ=τ0+∑2m−1 k=1 τkxk Answer: a,r,b,s,τ −−−−−−−−−−−−−→ Figure 8: Multi-exponentiation argument: an argument of knowledge of openings of commitment cAto A={aij}n,m i,j=1 s.t. C=Enc(1; pkmix;ρ)Qm i=1 Ciaiand cA=comckmix (A;r).
Prover Challenger CRS: pkmix,ckmix Statement: cA∈Gmand b∈Zq Witness: A∈Zn×mand r∈Zm q Pick s←Zq Set b′= (∏m j=1 a1j,...,∏m j=1 anj ) Compute cb=comckmix (b′;s): InitMessage: cb −−−−−−−−−−−−→ πHadPA ←HadamardProdArg(pkmix,ckmix,cA, cb, A, r,b′, s)) Engage in a Hadamard product argument of cb=comckmix (b′;s), where a11,...,anm are the committed values in cA πSingleVPA ←SingleValueProdArg(pkmix,ckmix, cb, b, b′, s) Engage in a Single Value Product Argument of b being the product of the committed values in cb. Answer: πHadPA,πSingleVPA −−−−−−−−−−−−−−−−−−→ Figure 9: Product argument: an argument of knowledge of openings a11, . . . , anm, r1, . . . , rmto a given commitment cAs.t. Qn i=1 Qm j=1 aij =b.
Prover Challenger CRS: pkmix,ckmix Statement: cA∈Gmand cb∈G Witness: a1,...,am,b∈Zn,r∈Zm qand s∈Zq Define: b1=a1 b2=a1a2 ... bm−1=a1···am−1 bm=b Pick s2,...,sm−1←Zq Compute: cB2=comckmix (b2;s2) ... cBm−1=comckmix (bm−1;sm−1) Define s1=r1and sm=s Set cB1=cA1and cBm=cb Set cB= (cB1,...,cBm)InitMessage: cB −−−−−−−−−−−−→ x, y ←Z∗ q Challenges: x,y ←−−−−−−−−−−−− Define the bilinear map ⋆:Zn q×Zn q→Zq by (a1,...,an)T⋆(d1,...,dn)T=∑n j=1 ajdjyj Define cDi=cxi Bi,cD=∏m−1 i=1 cxi Bi+1 and c−1=comckmix (−1; 0) Set: d1=xb1, t1=xs1 ... dm−1=xm−1bm−1, tm−1=xm−1sm−1 d=∑m−1 i=1 xibi+1, t =∑m−1 i=1 xisi+1 Define: D= (d1,...,dm−1,d) t= (t1,...,tm−1, t) F= (a2,...,am,−1) τ= (r2,...,rm,0) cf= (cA2,...,cAm, c−1) cd= (cD1,...,cDm−1,cD) πZeroArg ←ZeroArg(pkmix,ckmix,cf,cd, ⋆, F, D, τ, t) Engage in a Zero argument for the committed values in cf,cdsatisfying 0 = ∑m−1 i=1 ai+1 ⋆di−1⋆d Answer: πZeroArg −−−−−−−−−−−−→ Figure 10: Hadamard argument: an argument of knowledge of the openings a11, . . . , anm and b1, . . . , bn to the commitments cAand cbs.t. bi=Qm j=1 aij for i= 1, . . . , n.
Prover Challenger CRS: pkmix,ckmix Statement: cA,cB∈Gmand a specification of a biliner map ⋆:Zn q×Zn q→Zq Witness: A={ai}m i=1 ∈Zn×m,r∈Zm q and B={bi}m−1 i=0 ,s= (s0,...,sm−1)∈Zm q Pick a0,bm←Zn qand r0, sm←Zq Compute: cA0=comckmix (a0;r0) cBm=comckmix (bm;sm) Compute d0,...,d2mas dk=∑0≤i,j≤m j=(m−k)+i ai⋆bj Pick t= (t0,...,t2m)←Z2m+1 q Set tm+1 = 0 Compute cD=comckmix (d,t) InitMessage: cD,cBm,cA0 −−−−−−−−−−−−−−−−−−−−→ x←Z∗ q Challenge: x ←−−−−−−−−−− Compute: a=∑m i=0 xiai r=∑m i=0 xiri b=∑m j=0 xm−jbj s=∑m j=0 xm−jsj t=∑2m k=0 xktk Answer: a,b,r,s,t −−−−−−−−−−−−−→ Figure 11: Zero argument: an argument of knowledge of the committed values a1,b0, . . . , am,bm−1s.t. 0 = Pm i=1 ai⋆bi−1.
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy The group Qpis ESGSP-hard if it holds: AdvQp,ESGSP A=|Pr h1←SGSPQp A(λ)i−1 2| ≈ 0. ESGSPQp A(λ): 1. gparams ←GParamsGen(λ) 2. g1,...,gL1←Qp// Sampled at random 3. ℓ1,...,ℓL2←Qp// Find first L2smallest primes that are quadratic residues 2. b← {0,1} 3. s←Z∗ q 4. si←s∀0≤i≤L1+L2 5. if b= 1 then 5.1 si←Z∗ q∀0≤i≤L1+L2 6. b′← A(gparams, gs0, gs1 1,...gsL1 L1, ℓsL1+1 1,...ℓsL1+L2 L2) 7. Output 1if b=b′. Else output 0. Figure 15: ESGSP game. GParamsGen samples at random the group parameters gparams = (p, q, g), including the order qand a generator gof Qp. Hardness of ESGSP problem.. It is not difficult to see that if Qpis DDH-hard and SGSP-hard, then it is also ESGSP-hard. 38
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Part III sVote voting system 39
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 10 General aspects sVote is a e-voting system that allows to vote for up to ψoptions out of nvoting options. The system consists of three phases: the configuration phase, the voting phase and the tally phase. Each phase has several protocols (interactive algorithms) and procedures (local algorithms). Phases and flow diagrams are covered in Section 11. Descriptions of the algorithms are covered in Section 12. The tally phase outputs plaintexts of the confirmed votes in random order while maintaining vote privacy, individual verifiability (cast-as-intended and recorded-as-cast), and universal verifiability (countedas-recorded). Section 10.2 discusses the techniques for achieving these security objectives. 10.1 Public system parameters Some of the system parameters are generated before the configuration phase begins. These parameters, jointly denoted as crs, form the common reference string that all parties in the system know. Thus, implicitly all algorithms take crs as input. Public parameters are generated in a verifiable way. 10.1.1 ElGamal parameters To encrypt the voting options in the Voting Client , sVote uses ElGamal over the multiplicative group of quadratic residues Qp. The group parameters gparams = (p, q, g), namely the modulus p, the order q and the generator gare generated in advance. See Section 3.2 for more details. 10.1.2 Pedersen commitment key A Pedersen commitment is instantiated over Qp, the same group used for ElGamal encryptions. The pair of commitment keys is generated in advance. 10.1.3 Voting options Voting options are encoded as elements of Qp. They are chosen as the first nprimes that are quadratic residues modulo p. We denote them with vector v= (v1, . . . , vn). We use the operations of multiplication and factorization for encoding/decoding the selected voting options: a voter selects ψvoting options v′ iout of npossibilites, and the Voting Client encodes them as the group element ν=Qψ i=1 v′ i∈Qp. During tally, the votes are eventually decrypted, and the voter selections v′ irecovered by factorizing the plaintext νin basis v. Therefore, it has to be ensured that the product of any subset of ψprimes is smaller than p. 40
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 10.1.4 Voter pseudonyms A list ID of Npseudonyms (identifiers) of eligible voters is available prior to the configuration phase. This list is provided by an external authority. 10.1.5 Return codes spaces To derive human-readable return codes and keys, we use different value spaces. • Start voting keys are derived from Csvk. These keys are used to send a vote. • Ballot casting keys are derived from Cbck. These keys are used to confirm a vote . • Short choice return codes are derived from Ccc. These codes are used to verify cast-as-intended. • Short vote cast return codes are derived from Cvcc. These codes is used to verify recorded-as-cast. 10.2 Achieving verifiability and privacy 10.2.1 Individual verifiability sVote uses a two-round protocol between the voter, the Voting Client and the server to provide individual verifiability. Before the voting phase is open, an eligible voter with identifier id receives a paper-based voting card vcdid 7with a one-to-one correspondence between the voting options vand a set of Choice Return Codes ccid = (CC1,id, . . . , CCn,id). During the voting phase, the voter selects ψvoting options, then her voting client prepares the ballot and sends it to the server. The server jointly with CCRs derives a set of choice return codes ccid = (CC1,id, . . . , CCψ,id)that correspond to the ψselected voting options and sends them back to Voting Client. The Voting Client shows the received Choice Return Codes ccid to the voter so that she can cross-check them against the Choice Return Codes ccid printed on her voting card. If the Choice Return Codes ccid match, the voter confirms the vote by entering into the Voting Client a Ballot Casting Key BCKid that is also printed on her voting card. The Voting Client derives the confirmation message CMid from the Ballot Casting Key BCKid and sends the confirmation message CMid to the voting server. Subsequently, the voting server retrieves, in collaboration with the CCR, the Vote Cast Return Code VCCid and sends it back to the voting client to allow the voter to cross-check the received Vote Cast Return Code VCCid against the Vote Cast Return Code VCCid printed on the voting card. If the voter receives the correct Choice Return Codes ccid and Vote Cast Return Code VCCid, the system has correctly registered the vote. Otherwise, the voter complains to the authorities to invalidate the vote. 7We do not cover the provision of voting cards to the voters; it is assumed they are delivered by a secure channel, e.g. postal channel. 41
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Generation of choice return codes and vote cast return code. During the configuration phase, the Print Office generates the short Choice Return Code CCi,id and the short Vote Cast Return Code VCCid for each voter with identifier id and each voting option vi. Furthermore, the Print Office collaborates with the Choice Return Codes control components (CCR) to generate the long Choice Return Code lCCi,id and the long Vote Cast Return Code lVCCid. The Print Office symmetrically encrypts the short Choice Return Codes CCi,id and the Vote Cast Return Code VCCid. Then, it maps the hash of the long Choice Return Code lCCi,id to the encrypted short Choice Return Codes CCi,id and the hash of the long Vote Cast Return Code lVCCid to the encrypted short Vote Cast Return Code VCCid and stores the result in the codes mapping table CMtable8. The Print Office sends the mapping table CMtable to the voting server. Retrieval of choice return codes and vote cast return code. During the voting phase, the voting client sends (E1,E2,πballot)to the voting server, where E1 is the ciphertext used for the tally phase, E2 = (c2,0, c2,1, . . . , c2,ψ)is a multi-recipient ElGamal ciphertext containing encryptions of the Partial Choice Return Codes pCCi,id, and πballot is a set of three NIZK proofs. The voting server and the CCR collaborate to retrieve the long Choice Return Code lCCi,id and to retrieve the corresponding encrypted short Choice Return Code CCi,id from the mapping table CMtable. Then, the voting server decrypts the short Choice Return code CCi,id and sends it to the voting client. A similar mechanism is applied in the second round of the protocol to retrieve the short Vote Cast Return Code VCCid; first by collaboratively generating the long Vote Cast Return code lVCCid and then by retrieving the encrypted short Vote Cast Return Code VCCid from the mapping Table CMtable. Three NIZK proofs πballot ensure that the encoded voting options E1 correspond to the encrypted Partial Choice Return Codes E2. 10.2.2 Universal verifiability and voter privacy The protocol uses verifiable mixnets [2] to ensure voter privacy. These mixnets are enhanced with zeroknowledge proofs of correct shuffling and decryption which allow to check the correctness of the output of the tally whilst maintaining the privacy of each voter and which exclude the possibility of obtaining early provisional results. 11 Phases 8The Print Office permutes the codes mapping table CMtable before sending it to the voting server. This prevents the voting server from correlating the voting options to the position in the mapping table in order to break vote privacy 42
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 11.1 Configuration phase In the configuration phase the control components and the Print Office generate the Election key pair and the voting cards of the voters. It consists of two interactive protocols SetupTally and SetupVoting. In addition, at the end of the phase the auditors execute a verification algorithm VerifyConfigPhase to ensure everything was generated properly. The public parameters crs are known to all system parties. Refer to section 12.1 for the complete list of algorithms executed during configuration. Protocol Setup Tally. The Print Office and the Mixing control components generate the global Election key pair. - Each control component CCMjfor j≤m′−1generates a share of the Election key pair. - The Print Office generates the last share and combines all the Election public key shares. See Figure 16 for an overview of the interaction and Section 12.1.2 for the description of the algorithms. Protocol Setup Voting. The Print Office and the Choice Return Codes control components generate the Global CCR encryption key pair and credential and verification material for each voter. - Each CCRjgenerates an encryption key pair, and Print Office combines the encryption keys of each CCRj. - The Print Office generates the Verification Card key pairs for each voter, and sends encryptions (under the Secure Data Manager encryption key) of the Partial Choice Return Codes and Confirmation Key (voting options and Ballot Casting Key raised to the Verification Card Private key of each voter, respectively) to the CCRs. - The CCRs exponentiate the two sets of received ciphertexts to their Voter Choice Return Code Generation and Voter Vote Cast Return Code Generation private keys, respectively. These are the (encrypted) long Choice Return Code shares and long Vote Cast Return Code shares that each control component generates. - The Print Office generates the short Choice Return Codes and short Vote Cast Return Code. Then it combines and decrypts the ciphertexts returned by the CCRs and obtains the two sets of long return codes. These codes are used to derive the symmetric keys to encrypt the short return codes in the Codes mapping table. See Figure 17 for an overview and Section 12.1.1 for the description of the algorithms. 43
ELpk,EBpk SetupTallySDM ELpk,j ELpk,j SetupTallyCCMj EBpk,EBsk PO Server CCMs:j < m′Electoral Board Figure 16: Protocol SetupTally, executed between the Print Office and the Mixing control components. Each control component, except the last one, generates its own share of the Election key pair and send it back to the Print Office, who generates the last Election key pair (the Electoral Board key pair) share and combines all shares.
pkCCR,Csk GenVerCardSetKeys pkCCRj pkCCRj GenKeysCCRj CombineEncLongCodeShares πexpPCC,j ,πexpCK,j CexpPCC,j ,cexpCK,j Kj,Kcj πexpPCC,j ,πexpCK,j CexpPCC,j ,cexpCK,j Kj,Kcj GenEncLongCodeSharesj vcd,Cpcc,cck vcd,K,Cpcc,cck GenVerDat GenEncryptionKeysPO VCks GenCredDat CMtable GenCMTable VerifyConfigPhase LogsPO invalid execution VCardid = (SVK,BCKid,ccid,VCCid) PO Server CCRs Auditors Voter Figure 17: Protocol SetupVoting executed between the Print Office and the Choice Return Code control components CCRs. Upon termination, auditors verify execution and the voters receive the Voting Card with the Start Voting Key, the Ballot Casting Key, the voting options and the short Return Codes.
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 11.2 Voting phase In the voting phase a Voter sends and confirms her vote with the help of a Voting Client and her voting card. It consists in two interactive protocols SendVote and ConfirmVote. In addition, at the end of the phase the auditors execute a verification procedure VerifyVotingPhase to ensure the ballot box bb is consistent. Refer to section 12.2 for the complete list of algorithms executed during the voting phase. Protocol Send Vote. The Voter starts the protocol introducing the Start Voting Key in the Voting Client , who creates the ballot and send it to the Server. Then, the Server and the CCRs interact to retrieve the short Choice Return Codes from the Codes mapping table using information encrypted in the ballot. The Server sends the return codes to the Voting Client and these are displayed to the Voter. - The Voter enters the Start Voting Key SVKid, and her selected voting options vid = (vj1, . . . , vjψ) printed on her voting card. - The Voting Client creates the ballot and sends it to the Server. - The Server and the CCRs validate the ballot. - The Server and the CCRs interact to decrypt the Partial Choice Codes embedded in the ballot. - The Server and the CCRs interact to derive the long Choice Return Codes using the Partial Choice Codes. During the process the CCRs validates Server’s requests (for a given Voter’s identifier, decryption has been done and no previous request has been answered). - The Server extracts the short Choice Return Codes from the mapping table and send them back to the Voting Client . - The Voter verifies the short Choice Return Codes. For an overview of the interaction see Figure 18 and for a description of the algorithms see Section 12.2.1. Protocol Confirm Vote. The Voter starts the protocol introducing the Ballot Casting Key in the Voting Client , who creates the Confirmation Key and sends it to the Server. The Server and the CCRs interact to retrieve the short Vote Cast Return Code from the mapping table. - The Voter enters the Ballot Casting Key in the Voting Client , who sends the Confirmation Key to the Server. - The CCRs validate Server’s request and exponentiate the Confirmation Key to obtain the long Vote Cast Return Code shares. - The Server combines the shares of the CCRs and extracts the short Vote Cast Return Code from the Codes mapping table and sends them back to the Voting Client. 46
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy - The Voter verifies the Vote Cast Return Code. If the verification is successful, the voter has concluded the vote cast successfully. Otherwise, she notifies the authorities and uses another channel to cast her vote. For an overview of the interaction see Figure 19 and for a description of the algorithms see Section 12.2.2. 11.3 Tally phase In the tally phase the Server and the Mixing control components compute the result of the election. It consists in two protocols, MixOnline and MixOffline. In addition, two audits are in place to ensure no party deviate from the protocol: 1. After completion of the online mix protocol, the auditors run algorithm VerifyOnlineTally (section 12.3.3.1) to ensure the protocol has been executed correctly. 2. After completion of the offline mix, the auditors run algorithm VerifyOfflineTally (section 12.3.3.2) to ensure the output of the last Mixing control component CCMm′is correct. If this last audit is successful, the result is deemed trustworthy. Online mix protocol. First, the server first cleans the ballot box removing all information related to the voters and keeping only the ciphertexts for mixing. Then, all but the last Mixing control components shuffle and partially decrypt the list of ciphertext received from the preceding control component (or from the server in case of the first control component). They also produce NIZK proofs for correct shuffling and correct partial decryption that are described in sections 8 and 7.3.5. Offline mix protocol. The last Mixing control component CCMm′shuffles and decrypt the permuted ballot box received from CCMm′−1. It also produces NIZK proofs for correct shuffling and correct decryption. Finally, it decodes the decrypted votes and outputs the result of the election. Finally, the auditors may also run algorithm Auditors.VerifyElection to verify the entire election. Refer to Section 12.3 for the complete list of algorithms of the tally phase. Figure 20. 12 Protocols and procedures This section is devoted to list the algorithms executed at each phase of the sVote protocol. Unless specified otherwise, the public system parameters crs are understood to be implicit inputs to those algorithms that use them. Recall that crs includes a description gparams = (p, q, g)of Qp, a list of voter pseudonyms ID, the number of voting options and maximum of choices (n, ψ), and a set of voting options v={v1, . . . , vn}. See Section 10.1 for more details. 47
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy The algorithm outputs ((kj,Kj),(kcj,Kcj),(CexpPCC,j ,πexpPCC,j),(cexpCK,j,πexpCK,j )). 12.1.1.6 CombineEncLongCodeShares(Kj,Kcj,CexpPCC,j,πexpPCC,j,cexpCK,j ,πexpCK,j ,LogsPO) This algorithm is executed by the Print Office. It combines the (encrypted) long codes shares generated by the Choice Return Code control components CCRj. It receives as input the matrix of encrypted long Choice Return Code shares CexpPCC,j , the vector of encrypted long Vote Cast Return Code shares cexpCK,j, and the vectors of Generation public keys Kj,Kcj (along with NIZKs of correct exponentiations) from each Choice Return Code control component CCRj. Then it does the following: 1. Combine the encrypted long Choice Return Codes. Thus for each j∈(1, . . . , m), parse each row of CexpPCC,j as a vector of ciphertexts cexpPCC,j,id = (cexPCC,j,id,i)n i=1 and multiply: clcc,id,i = m Y j=1 cexPCC,j,id,i ∀i∈(1, . . . , n). Let Clcc be the N×n-matrix, where each row is set to (clcc,id,i)n i=1. 2. Combine the encrypted long Vote Cast Return Codes. Thus for each j∈(1, . . . , m), parse the vector of ciphertexts cexpCK,j = (cexpCK,j,id)id∈ID and multiply: clvc,id = m Y j=1 cexpCK,j,id.∀id ∈ ID. Let the vector of ciphertexts clvc = (clvc,id)id∈ID. 3. Updates logs: LogsPO ←LogsPO ∪ {Kj,Kcj,CexpPCC,j,πexpPCC,j ,cexpCK,j ,πexpCK,j}. The algorithm outputs (Clcc,clvc). 12.1.1.7 GenCMTablevcd,Clcc,clvc,Csk,skSDM,crs This algorithm is run by the Print Office to generate the Choice Return Codes and the short Vote Cast Return Code, to encrypt them with the Choice Return Code encryption symmetric key (derived from the long Choice Return Code) and the Vote Cast Return Code encryption symmetric key (derived from the long Vote Cast Return Code), and to store the encryptions in the Codes Mapping table. The algorithm takes as input the Voting Cards IDs vcd, the encrypted long codes (Clcc,clvc), the Codes Secret key Csk, the Secure Data Manager decryption key skSDM, and logs LogsPO. Then, it does the following: 1. Parse the N-long vector vcd = (vcdid)id∈ID. 54
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 2. Generate the long Choice Return Codes : - Parse each of the Nrows of Clcc as (clcc,id,i)n i=1 and decrypt each ciphertext: pCi,id ←Dec(skSDM,clcc,id,i)∀i∈(1, . . . , n). - Set the nlong Choice Return Codes for voter id to: lCCi,id =H(pCi,id||vcdid)∀i∈(1, . . . , n). 3. Generate the long Vote Cast Return Codes: - Parse the N-long vector clvc = (clvc,id)id∈ID and decrypt each ciphertext: pVCCid =Dec(skSDM,clvc,id). - Set the long Vote Cast Return code to: lVCCid =H(pVCCid||vcdid). 4. Generate random short Choice Return Codes CCi,id ← Ccc for each voting option vi∈vand voter id ∈ ID. Let vector ccid = (CCi,id)id∈ID, and CC the N×n-matrix with each row set to ccid. 5. Generate random short Vote Cast Return Code VCCid ← Cvcc for voter id ∈ ID. Let vector vcc = (VCCid)id∈ID. 6. Generate the codes mapping table: - Compute hashes hlCCi,id =H(lCCi,id||Csk)and hlVCCid =H(lVCCid||Csk). Then derive the symmetric encryption keys skcci,id,skvccid using a key derivation function11 skcci,id =KDF(hlCCi,id)∀i∈(1, . . . , n),∀id ∈ ID, skvccid =KDF(hlVCCid)∀id ∈ ID. - Encrypt the short Choice Return Code CCi,id and the short Vote Cast Return Code: ctCCid,i ←Encs(CCi,id;skcci,id)∀i∈(1, . . . , n),∀id ∈ ID, ctVCCid ←Encs(VCCid;skvccid) The mapping between long and short codes for voter with Voting Card ID vcdid is defined as CMtableid =n{[H(lCCi,id),ctCCid,i]}n i=1 ,[H(lVCCid),ctVCCid]o. 11KDF stands for the mask generation function defined in ISO-18033-2 and in PKCS#1v2.2. 55
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy - Set the code mapping table to CMtable := {CMtableid}id ∈ ID. The entries of the table are shuffled to avoid trivial correlation. • Updates logs: LogsPO ←LogsPO ∪ {CMtable}. The algorithm outputs (CC,vcc,CMtable). 12.1.1.8 GenCredDat(k,crs) This algorithm is executed by the Print Office. It creates credential material for the voters. The algorithm takes as input the Verification Card private keys k= (kid)id∈ID. Then for each voter id ∈ ID it does the following: 1. Generate a random Start Voting Key SVKid $ ← Csvk. Set vector svk = (SVKid)id∈ID. 2. Generate a keystore symmetric encryption key as: KSkeyid ←PBKDF(SVKid,KEYseed). 12 Set vector KSkeys = (KSkeyid)id∈ID. 3. Symmetrically encrypt the Verification Card private key with the keystore symmetric encryption key: VCksid ←Encs(kid;KSkeyid). Set vector VCks = (VCksid)id∈ID The algorithm outputs (svk,KSkeys,VCks). 12.1.2 Protocol SetupTally It is an interactive protocol run between the mixing control components CCMs and the Print Office. It consists of the following algorithms. 12.1.2.1 SetupTallyCCMj(crs,LogsCCMj) This algorithm is executed by the Mixing control component CCMjto generate its share of the Election key pair. The algorithm takes as input the ElGamal parameters gparams and logs LogsCCMj. Then it does the following: 1. Compute the Election key pair share (ELpk,j,ELsk,j)←KeyGen(gparams) 2. Update logs LogsCCMj←LogsCCMj∪ {ELpk,j } The algorithm outputs the key pair (ELpk,j ,ELsk,j ). 12Where string KEYseed is a salt. 56
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 12.1.2.2 SetupTallySDM(crs,{ELpk,j }m′−1 j=1 ,LogsPO) The algorithm takes as input the mixing public key {ELpk,j}m′−1 j=1 of the online Mixing control components CCM1, . . . , CCMm′−1and logs LogsPO. The it does the following: 1. Compute the Election key pair share of the offline Mixing control component (EBpk,EBsk)← KeyGen(gparams). 2. Compute the Election public key ELpk =EBpk ·Qm′−1 j=1 ELpk,j. 3. Update logs LogsPO ←LogsPO ∪ {ELpk,{ELpk,j}m′−1 j=1 ,EBpk}. The algorithm outputs ELpk and (EBpk,EBsk). 12.1.3 VerifyConfigPhase(LogsPO,crs) This algorithm is run by an auditor. It verifies the proper execution of the configuration phase. The algorithm takes as input the logs LogsPO of the Print Office. Then it does the following: 1. Extract from the LogsPO the following: - The output ciphertext matrix Cpcc of Partial Choice Return Codes, and the output ciphertext vector cck of Confirmation Keys of Algorithm 12.1.1.4. - The input public keys, ciphertexts and NIZK proofs (Kj,Kcj,CexpPCC,j,πexpPCC,j ,cexpCK,j ,πexpCK,j), of Algorithm 12.1.1.6. 2. Verify the NIZK proofs of correct Partial Choice Return Codes exponentiation ∀id ∈ ID,∀j∈ (1, m): bid,i ←VerifyExp(((p, q, g, cpcc,id),(Kj,id,cexpPCC,j,id)),πexpPCC,j ) If some bid,i = 0, abort and output ⊥. 3. Verifiy the NIZK proofs of correct Confirmation Keys exponentiations ∀id ∈ ID,∀j∈(1, m): bid ←VerifyExp(((p, q, g, cck,id),(Kcj,id,cexpCK,j,id)), πexpCK,j,id). If bid = 0 abort and output ⊥. If, and only if, all verifications were successful, the algorithm outputs ⊤. 12.2 Voting phase protocols The execution flow of the algorithms in the voting phase is depicted in Figure 18 (send vote) and Figure 19 (confirm vote). 57
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 12.2.1 Protocol SendVote It is an interactive protocol run between the voter, the Voting Client , the server and the Choice Return Code control components CCRs. It consists of the following algorithms. 12.2.1.1 GetKey(SVKid,VCksid) This algorithm is executed by the Voting Client . It takes as input a Start Voting Key SVKid and a Verification Card keystore VCksid and it obtains a Verification Card private key kid as follows: - Generate the keystore encryption symmetric key: KSkeyid ←PBKDF(SVKid,KEYseed). - Run the Decsalgorithm with inputs VCksid and KSkeyid, and recover the Verification Card private key kid. It outputs the Verification Card private key kid. 12.2.1.2 CreateVote vcdid,vid,ELpk,pkCCR,(Kid,kid),crs This algorithm is executed by the Voting Client to create the ballot with the voting options selected by the Voter. It takes as input the Voting Card ID vcdid, the voting options vid, the Election public key ELpk, the global Choice Return Code public keys pkCCR = (pkCCR,1, . . . , pkCCR,ψ), and the Verification Card key pair (Kid,kid). Then it does the following: 1. Parse vid = (vj1, . . . , vjψ)and compute: ν=Qψ i=1 vjimod p. 2. Encrypt the aggregation: E1 = (c1,0, c1,1)←Enc(ν, ELpk;r). 3. Generate a Schnorr proof πsch ←ProveSch((p, q, g, E1), r, aux). The auxiliary information aux contains the Voting card ID vcdid. 4. Computes the Partial Choice Return Codes as pCCid = (pCC1,id, . . . , pCCψ,id) = (vkid j1, . . . , vkid jψ). 5. Compute a multi-recipient ElGamal encryption of these codes as E2 = (c2,0, c2,1, . . . , c2,ψ)←MultiEnc (pkCCR,pCCid;r′). 6. Exponentiate E1 and aggregate E2: f E1 = (ec1,0,ec1,1) = (ckid 1,0, ckid 1,1), f E2 = (ec2,0,ec2,1) = c2,0, ψ Y i=1 c2,i. 58
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Note that f E1 encrypts νkid under public key ELpk with randomness r·kid, and f E2 encrypts Qψ i=1 pCCi,id = νkid under public key Qψ i=1 pkCCR,i with randomness r′. 7. Generate two NIZK proofs to to link E1 and E2: -πExp ←ProveExp((p, q, g, E1),(Kid,f E1)),kidproves that f E1 is computed by raising the elements of E1 to the Verification Card private key kid. -πEqEnc ←ProveEqEnc p, q, g, ELpk,Qψ i=1 pkCCR,i,f E1,f E2,(r·kid, r′)proves that f E1 and f E2 encrypt plaintext νkid under public keys ELpk and Qψ i=1 pkCCR,i. It outputs bid = (vcdid,E1,E2,f E1,Kid,πballot), where πballot = (πsch, πExp, πEqEnc). 12.2.1.3 VerifyBallotServ bid,ELpk,pkCCR,Kid,Logsserv,crs This algorithm is executed by the Server to verify the NIZKs of the ballot. It receives as input a ballot bid, the Election public key ELpk, the global Choice Return Code control component public keys pkCCR =pkCCR,1, . . . , pkCCR,ψ, Verification Card public key Kid and the logs Logsserv. Then it does the following: 1. Parse bid as (vcdid,E1,E2,f E1,Kid,πballot). 2. Extract from Logsserv the list of valid votes LvalidVotes 13. If vcdid is present in LvalidVotes abort and output ⊥. 3. Otherwise parse E2 as (c2,0, c2,1, . . . , c2,ψ)and compute f E2 =c2,0,Qψ i=1 c2,i. 4. Validate NIZK proofs πballot = (πsch, πExp, πEqEnc)by running: -b1←VerifySch((p, q, g, E1), πsch,aux), where aux includes the Voting Card ID vcdid. -b2←VerifyExp(((p, q, g, E1),(Kid,f E1)), πExp). -b3←VerifyEqEnc((p, q, g, ELpk,Qψ i=1 pkCCR,i,f E1,f E2), πEqEnc). If some bi= 0 abort and output (0,Logsserv). 5. Extract the list LvalidVotes of valid ballots from Logsserv, and find entry (bid). If there is no entry, create entry (bid). Also, update the logs with the list. It outputs (1,Logsserv). (If reached this point the ballot verifies successfully.) 13Voters cannot cast a vote twice. 59
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 12.2.1.4 VerifyBallotCCRjbid,ELpk,pkCCR,Kid,LogsCCRj,crs This algorithm is executed by the Choice Return Code control components to verify the NIZKs of the ballot. It receives as input a ballot bid, the Election public key ELpk, the global Choice Return Code control component public keys pkCCR =pkCCR,1, . . . , pkCCR,ψ,Verification Card public key Kid and the logs LogsCCRj. Then it does the following: 1. Parse bid as (vcdid,E1,E2,f E1,Kid,πballot). 2. Extract the list LqueriedVotes,j of requested ballots from the logs. If vcdid is present in some ballot b∈LqueriedVotes,j abort and output (0,LogsCCRj). Otherwise update the list LqueriedVotes,j ← LqueriedVotes,j ∪(bid). 3. Parse E2 as (c2,0, c2,1, . . . , c2,ψ)and compute f E2 =c2,0,Qψ i=1 c2,i. 4. Validate NIZK proofs πballot = (πsch, πExp, πEqEnc)by running πballot: -b1←VerifySch((p, q, g, E1), πsch,aux). -b2←VerifyExp(((p, q, g, E1),(Kid,f E1)), πExp). -b3←VerifyEqEnc((p, q, g, ELpk,Qψ i=1 pkCCR,i,f E1,f E2), πEqEnc). If some bi= 0 abort and output (0,Logsserv). 5. Otherwise, extract the list LvalidVotes,j of valid votes from the logs and update it: LvalidVotes,j ← LvalidVotes,j ∪(bid). Also, update the logs with the list. It outputs (1,LogsCCRj). (If reached this point the ballot verifies successfully.) 12.2.1.5 PartialDecryptPCCj(bid,pkCCRj,skCCRj,LogsCCRj,crs) This algorithm is executed in the Choice Return Codes control component CCRjto partially decrypt the second ciphertext E2 of the ballot. It receives as input a ballot bid, the Choice Return Code control component key pairs (pkCCRj,skCCRj) and the logs LogsCCRj. Then it does the following: 1. Parse ballot as bid = (vcdid,E1,E2,f E1,Kid,πballot). 2. Extract lists LvalidVotes,j and LdecPCC,j from logs. The latter list contains ballots already processed in this algorithm. If bid /∈LvalidVotes,j or if vcdid is present in some ballot b∈LdecPCC,j abort and output (0,LogsCCRj).14 14Only ballots with valid NIZKs are processed: list LvalidVotes,j is updated in Algorithm 12.2.1.4. 60
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 3. Parse E2 as (c2,0, c2,1, . . . , c2,ψ)and compute the DDH masks to decrypt E2. Thus, compute: dj,id = (dj,1, . . . , dj,ψ) = cskCCRj,1 2,0, . . . , cskCCRj,ψ 2,0. 4. Computes the following NIZK proof: πdecPCC,j ←ProveExp((p, q, g, c2,0),( ψ Y i=1 pkCCRj,i, ψ Y i=1 dj,i)), ψ X i=1 skCCRj,i 5. Update the list LdecPCC,j ←LdecPCC,j ∪(bid,dj,id, πdecPCC,j). Also update the logs with the list. It outputs (dj,id,LogsCCRj). 12.2.1.6 DecryptPCC bid,{dj,id}m j=1 ,Logsserv,crs This algorithm is executed by the Server to decrypt the second ciphertext E2 of the ballot. It receives as input the ballot bid, the DDH masks contributions dj,id = (dj,1, . . . , dj,ψ)from each CCRj(see algorithm PartialDecryptPCCj), and the logs Logsserv. Then it does the following: 1. Parse ballot as bid = (vcdid,E1,E2,f E1,Kid,πballot). 2. Parse E2 as (c2,0, c2,1, . . . , c2,ψ). 3. Merge the DDH mask contributions. Thus, compute: di= m Y j=1 dj,i ∀i∈(1, . . . , ψ), and let did = (d1, . . . , dψ). 4. Decrypt the multi-recipient ciphertext E2 to obtain the Partial Choice Return codes as follows: pCCi,id =c2,i di .∀i∈(1, . . . , ψ). Denote pCCid = (pCC1,id, . . . , pCCψ,id). 5. Extract the list LdecPCC of votes for which decryption has been already done from LogsCCRjand do the following: - If there is an entry (bid, ⋆, ⋆, ⋆)abort an output (⊥,Logsserv). - Otherwise, update the list LdecPCC ←LdecPCC ∪(bid,pCCid,did,{dj,id}m j=1). Also, update the logs with the list. It outputs (pCCid,Logsserv). 61
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 12.2.1.7 CreateLCCSharej(bid,pCCid,kj,id,Kj,id,LogsCCRj) This algorithm is executed by the Choice Return Code control component CCRjto generate shares of the long Choice Return Codes. It takes as input a ballot bid, Partial Choice Return codes pCCid, the Voter Choice Return Code Generator key pair (kj,id,Kj,id)and logs LogsCCRj. Then it does the following: 1. Parse ballot as bid = (vcdid,E1,E2,f E1,Kid,πballot). 2. Extract the list LsentVotes,j , list of ballots already requested for this algorithm, and list LdecPCC,j 15 from LogsCCRj. 3. If bid /∈LdecPCC,j or vcdid is present in some ballot b∈LsentVotes,j abort and output (⊥,LogsCCRj). 4. Parse the partial Choice Return Codes as pCCid = (pCC1,id, . . . , pCCψ,id). 5. Compute the long Choice Return Code shares as follows: - Hash and convert to group element: hpCCi,id = (H(pCCi,id))2∀i∈(1, . . . , ψ). - Exponentiate to kj,id: lCCj,i,id = (hpCCi,id)kj,id ∀i∈(1, . . . , ψ), where kj,id is the Voter Choice Return Code Generation private key of the CCRj. Then, set lCCj,id = (lCCj,1,id, . . . , lCCj,ψ,id). 6. Computes the following NIZK. πexp,j ←ProveExp ((p, q, g, hpCC1,id, . . . , hpCCψ,id),(Kj,id,lCCj,id)),kj,id∀i∈(1, . . . , ψ) to prove that lCCj,id are computed by raising hpCC1,id, . . . , hpCCψ,id to the Voter Choice Return Code Generation private key kj,id corresponding to the Voter Choice Return Code Generation public key Kj,id. 7. Update LsentVotes,j ←LsentVotes,j ∪(bid,pCCid,lCCj,id, πexp,j )and the logs with the list. It outputs (lCCj,id,LogsCCRj). 15LdecPCC,j is the list of ballots for which partial decryption have been already performed. It is updated in Algorithm 12.2.1.5 62
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 12.2.1.8 ExtractCRC(bid,{lCCj,id}m j=1 ,CMtable,Csk,bb) This algorithm is executed by the server to extract the Choice Return Codes from the codes mapping table. It takes as input the ballot bid, the shares lCCj,id of the long Choice Return Codes computed by the CCRj, the codes mapping table CMtable, the Codes secret key Csk, and the ballot box bb. Then it does the following: 1. Parse ballot as bid = (vcdid,E1,E2,f E1,Kid,πballot). 2. For each j∈(1, . . . , m), parse lCCj,id = (lCCj,1,id, . . . lCCj,n,id) 3. Compute the long Choice Return Codes as: - Compute the pre-long Choice Return Codes pCid ias: pCi,id = m Y j=1 lCCj,i,id ∀i∈(1, . . . , ψ). - The long Choice Return Codes are: lCCi,id =H(pCi,id||vcdid)∀i∈(1, . . . , ψ). 4. Derive the symmetric keys as follows: - Hash hlCCi,id =H(lCCi,id||Csk)∀i∈(1, . . . , ψ). - The symmetric keys are skcci,id ←KDF(hlCCi,id)∀i∈(1, . . . , ψ). 5. Extract the Choice Return Codes from the codes mapping table: - If there exists an entry [H(lCCi,id),ctCCid,i)] in CMtable, decrypt the Choice Return Code: CCi,id ←Decs(ctCCid,i;skcci,id). Then, set boolean flag extCC ← ⊤, and let ccid = (CC1,id, . . . , CCψ,id). - If entry [H(lCCi,id),ctCCid,i)] does not exist in CMtable for some i∈(1, . . . , ψ)unset boolean flag extCC ← ⊥. 6. Extract the list LsentVotes of ballots with extracted short Choice Return Codes from the ballot box bb and update it: LsentVotes ←LsentVotes ∪(bid,extCC). In addition, update the ballot box with the list. If extCC =⊥abort and output (⊥,bb). Otherwise, output (ccid,bb). 63
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 1. Shuffle the input ciphertexts: (cmix,m′, πmix,m′) = Mix(EBpk,ckmix,cDec,m′−1). 2. Decrypt the shuffled ciphertexts: mi←Dec(ˆ ci,EBsk) = ˆci,2·(ˆci,1−EBsk ∀i∈(1, . . . , N), - Compute a list of plaintexts m= (m1, . . . , mNas mi=Dec(ˆ ci,EBsk) = ˆci,2·(ˆci,1−EBsk for ∀(ˆci,1,ˆci,2)∈cmix,j , where i∈(1, . . . , N), and a list of NIZK proofs πdec,m′=πdec,m′,1, . . . , πdec,m′,N for correct decryption as πdec,m′,i =ProveDec p, q, g, EBpk,ˆ ci, mi,EBsk∀i∈(1, . . . , N), where gis the ElGamal group generator contained in crsconf. 3. Update logs: LogsCCMm′=LogsCCMm′∪ {(cmix,j−1,cDec,m′−1),(cmix,m′,m),(ELpk,m′−1,EBpk),(πmix,m′,πdec,m′)}. It outputs (cmix,m′,m,LogsCCMm′). 12.3.2.2 DecodePlaintextsm,v This algorithm is executed by the last Mixing control component CCMm′to decode the plaintext as votes. It takes as input the decrypted plaintexts m= (m1, . . . , mN)and the list of voting options options v= (v1, . . . , vn). The it does the following: 1. For each mifactorize it as mi=Qψ s=1 vis. Let vi= (vi1, . . . , viψ). 2. Set Lvotes ={vi}N i=1. It outputs the list of votes Lvotes. 12.3.3 Audit tally algorithms 12.3.3.1 VerifyOnlineTally(bb,LogsPO,Logsserv,{LogsCCMj}m′−1 j=1 ,cmix,m′−1,cDec,m′−1,) It takes as input the ballot box bb and logs LogsPO ,Logsserv,{LogsCCMj}m′−1 j=1 and output cmix,m′−1,cDec,m′−1. Then it does the following: Audit flow consistency: Ensure inputs bb,LogsPO,Logsserv correspond to the inputs of Algorithm 12.2.3 (voting phase audit). Parses logs: 70
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy - Extract (cmix,j−1,cDec,j−1),(cmix,j,cDec,j ),(ELpk,j−1,ELpk,j ),(πmix,j ,πdec,j)from {LogsCCMj}m′−1 j=1 . - Extracts {EL∗ pk,j}m′−1 j=1 ,EB∗ pk and EL∗ pk from LogsPO. Checks information consistency: - Checks that ELpk,1=EL∗ pk. - Checks that ELpk,m′−1=EB∗ pk. - For each j= (1, . . . , m′−1): - Checks that EL∗ pk,j =ELpk,j. - Checks that all logged outputs of CCMj−1are logged as inputs by CCMj. - Checks that the logged outputs of the last online mixing component CCMm′−1are identical to cmix,m′−1,cDec,m′−1. - Check that the mixing key used by CCMjis computed as ELpk,j =ELpk,j−1/ELpk,j, where ELpk,j−1is the mixing key used by CCMj−1. Note, that the first component is using public election key that is identical to the one logged by the Print Office EL∗ pk. Checks Cleansing: Execute Cleansing(bb,Logsserv)(see Algorithm 12.3.1.1 ) and check the output bbclean is identical to cDec,0. Verifies NIZKs: - For each j= (1, . . . , m′−1): - Verifies mixing proof by running MixVerify(ELpk,j−1,ckmix,cDec,j−1,cmix,j , πmix,j).Note, that for CCM1ELpk,0=ELpk. - For each i= (1, . . . , N)runs the decryption proof verification: VerifyDec (p, q, g, ELpk,j ,ˆ ci, ci,2), πdec,m′,i,aux, where ˆ ci,ci= (ci,1, ci,2)are i-th elements of the lists cmix,j,cDec,j respectively. If and only if all the validations are successful, the process outputs ⊤. Otherwise, it outputs ⊥. 12.3.3.2 VerifyOfflineTally(cmix,m′−1,cDec,m′−1,LogsCCMm′,cmix,m′,m, Lvotes,LogsPO) It takes as input an output of the the last online mixing component CCMm′−1i.e mixed ciphertexts cmix,m′−1and partially decrypted ciphertexts cDec,m′−1, logs LogsCCMm′and output cmix,m′,m, Lvotes of the offline CCMm′mixing component and logs of the Print Office LogsPO and verifies the first tally phase as follows: Audit flow consistency: Checks that cmix,m′−1,cDec,m′−1are identical to the output of the last online mixing component that was verified in VerifyOnlineTally. 71
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Parses logs: - Parses LogsCCMm′as {cmix,j−1,cDec,m′−1,cmix,m′,m,ELpk,m′−1,EBpk, πmix,m′,πdec,m′}. - Extracts EB∗ pk and EL∗ pk from LogsPO. Checks information consistency: - Checks that EBpk =EB∗ pk and ELpk,m′−1=EBpk. - Verifies that logged by CCMm′inputs cmix,m′−1,cDec,m′−1are identical to the verified outputs of the last online mixing nodes. - Verifies that logged by CCMm′outputs cmix,m′,m, Lvotes are identical to the output of CCMm′. Verifies NIZKs: - Verifies mixing proof by running MixVerify(ELpk,m′,ckmix,cDec,m′−1,cmix,m′, πmix,m′). - For each i= (1, . . . , N)runs the decryption proof verification: VerifyDec (p, q, g, EBpk,ˆ ci, mi), πdec,m′,i,aux, where ˆ ci, miare i-th elements of the lists cmix,m′,mrespectively. Verifies decoding: Runs DecodePlaintexts(m,v)and checks that it matches Lvotes. If and only if all the validations are successful, the process outputs ⊤. Otherwise, it outputs ⊥. 12.3.3.3 Auditors.VerifyElection(bb,Logsserv,LogsPO,{LogsCCRj}m j=1,{LogsCCMj}m′ j=1) It takes as input the Server’s ballot box bb, server’s logs Logsserv,Print Office ’s logs LogsPO, logs of all control components denoted as {LogsCCRj}m j=1,{LogsCCMj}m′ j=1, and does the following checks: - Runs VerifyConfigPhase(LogsPO,{LogsCCRj}m j=1). - Runs VerifyVotingPhase(bb,Logsserv,{LogsCCRj}m j=1,LogsPO). - Runs VerifyOnlineTally(bb,Logsserv,{LogsCCMj}m′−1 j=1 ,LogsPO). - Retrieves cmix,m′−1,cDec,m′−1from the logs of the last online mixing node LogsCCMm′−1. - Retrieves cmix,m′,m, Lvotes from the logs of the offline mixing component LogsCCMm′. - Runs VerifyOfflineTally(cmix,m′−1,cDec,m′−1,LogsCCMm′,cmix,m′,m, Lvotes,LogsPO). If and only if all the validations are successful, the process outputs ⊤. Otherwise, it outputs ⊥. 72
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Part IV Security analysis 73
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 13 Security framework We conduct a thorough analysis in the provable secure framework [9]. The desired properties that sVote must fulfill are defined with games. A game is a set of well-defined instructions between two entities, a challenger (i.e. the game itself) and an adversary. The game finalizes with a decision signaling whether the adversary wins or not. The game-playing framework provides an environment to analyze, in a meaningful way, cryptographic schemes: the scheme under scrutiny (in our case, sVote) exhibits certain property if the corresponding game decides affirmatively with probability close to 0. Bounding the success probability of the adversary is precisely what the security reduction does: one starts with the original game and gradually change it to reach an (ideal) game where it is easy to argue that the adversary cannot win. Every change (or hop) is reduced down to a different property that has been already established; in our case, reduced either to the properties of the building blocks that sVote is built on, or to an already established property of sVote. Ultimately, everything is reduced down to the building blocks. Random oracle model. In the analysis, hash functions are modeled as a (programmable) random oracle. Although not explicitly stated in the game definitions, all the games control this oracle. 13.1 Properties analyzed The analysis of sVote presented here assesses the three requirements established by the Swiss Chancellery [16] to use an electronic voting system by a vast majority of the electorate. In a nutshell, these requirements are individual verifiability (cast-as-intended and recorded-as-cast), universal verifiability (counted-as-recorded) and voting secrecy (confidentiality of voters’ intent and non-disclosure of early provisional results). In Section 14 we prove two preliminary lemmas that will be useful for individual verifiability. Section 15 addresses individual verifiability and Section 16 universal verifiability. We finalize with privacy in Section 17. The proofs of all the claims are presented in Section 18. 14 Preliminary results 14.1 Correct setup We show that the configuration phase of sVote is correct and leaks no sensitive information. More concretely, protocol SetupVoting generates a correct Codes mapping table, independently of the actions of corrupted Choice Return Code control components. Also, the transcript of the protocol reveals nothing about the private keys kh,kchof a non-compromised (honest) Choice Return Code control component CCRh. 74
pkCCR,Csk GenVerCardSetKeys {pkCCRj}m j=1,j=h pkCCRh GenKeysCCRh {Kj,Kcj,CexpPCC,j ,cexpCK,j ,πexpPCC,j ,πexpCK,j }m j=1,j=h K$ h,Kc$ h,C$ expPCC,h,c$ expCK,h,π$ expPCC,h,π$ expCK,h GenEncLongCodeSharesh$ vcd,K,C$ pcc,c$ ck GenVerDat$ GenEncryptionKeysPO GenCredDat CMtable GenCMTable$ CombineEncLongCodeShares$ Challenger Adversary Figure 21: Protocol IdealSetupVoting used in the simulated game sMTC of Figure 23. It is executed between the Challenger (the game), controlling the Print Office and the honest CCRh, and the adversary A. Algorithm GenEncLongCodeSharesh$outputs random ciphertexts C$ expPCC,h,c$ expCK,h and random public keys K$ h,Kc$ h. Algorithm CombineEncLongCodeShares$extracts CCRj’s private keys kjand kcjfor all j=husing the extractor of the exponentiation proof system Exp. Finally, the algorithm GenCMTable$uses the extracted keys and the honest CCRh’s private keys kh,kchto construct the (correct) Codes mapping table CMtable.
LogsPO ←LogsPO ∪ {ELpk,{ELpk,j }m′−1 j=1 ,EBpk} EBpk =ELpk ∏m′−1 j=1 ELpk,j (ELsk,ELpk)←KeyGen(gparams) {ELpk,j }m′−1 i=1,i=h ELpk,h SetupTallyCCMh Challenger Adversary Figure 22: Protocol IdealSetupTally used in the simulated games. It is executed between the Challenger (the game), controlling the Print Office and the honest CCMh, and the adversary A. In this protocol, the Challenger gets control over the election private key ELsk by manipulating an honest CCMhprivate key share. Note that during the tally phase, the Challenger will have to run an extractor EAto extract witnesses from πdec NIZKs in order to adjust EBsk. Modeling an ideal setup. Adversaries against the mapping table correctness property attempt to force the Print Office to generate the Codes mapping table for which Choice Return Codes or Vote Cast Return Codes are not extractable for a correct protocol execution, even though the auditors execute their verification algorithm VerifyConfigPhase successfully. In Figure 23 we define two games, rMTC and sMTC. The former corresponds to the real setup and the latter to an idealized setup, outlined in Figure 21. The real setup is correct and private if no adversary Acan distinguish it from the ideal setup. The advantage of Ais defined as: AdvsVote,mtc A=|Pr [1 ←rMTCA(crs)] −Pr [1 ←sMTCA(crs)]| ≈ 0, rMTCsVote(crs): 1. Execute SetupVotingA 2. b← A // Aoutputs a decision 3. If 0←VerifyConfigPhase output ⊥(abort) 4. Else output b sMTCAsVote(crs): 1. Execute IdealSetupVoting 2. b← A // Adversary outputs a decision 3. If 0←VerifyConfigPhase output ⊥(abort) 4. Else output b Figure 23: (left) real rMTC game (right) simulated sMTC game. Protocol IdealSetupVoting is outlined in Figure 21.
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Lemma 1 In the random oracle model AdvsVote,mtc A≤AdvExp,NIZK B1+Advkdf B2+ 2 ·AdvF,PRF B3+AdvElGamal,INDCPA B4+ 2 ·AdvQp,SGSP B5+ϵext, where B1is an adversary against the zero-knowledge property of the exponentiation proof system Exp, B2an adversary against the key-derivation function, B3an adversary against the weak pseudorandom property of the exponentiation function in the group of quadratic residues Qp,B4an adversary against the semantic security of ElGamal encryption scheme, B5and adversary against the SGSP problem [25], and ϵext is the extraction error of the exponentiation proof system. Its proof is in Section 18.1. 14.2 Vote compliance We show that sVote enjoys a special notion of vote correctness19 that we call vote compliance. In a nutshell, if a ballot submitted by a Voting Client is marked as sent and extractable in the ballot box, and the auditors check that there exists an entry in the Codes mapping table using the ballot and the transcript of the Choice Return Code control components, then the ballot must contain ψvoting options with high probability. We start defining what is understood by a valid ballot, a compliant ballot and a compliant registered ballot. The latter notion is used in the security reductions; although the definitions may seem artificial their purpose is to work with them. Definition 16 (Valid ballot) Let Gqan (ElGamal) cyclic group with generator g,ELpk ∈Gqthe Election public key, pkCCR = (pkCCR,1, . . . , pkCCR,ψ)the global public keys of the control components, and let (kid,Kid)∈Z∗ q×Gqa Verification Card key pair. A submitted ballot bid = (vcdid,E1,E2,f E1,Kid,πballot) E2 = (c2,0, c2,1, . . . , c2,ψ) πballot = (πsch, πExp, πEqEnc) is valid if the NIZKs πballot verify successfully. That is, if: 1←VerifySch((p, q, g, E1), πsch,aux), where aux includes vcdid. 1←VerifyExp(((p, q, g, E1),(Kid,f E1)), πExp). 1←VerifyEqEnc((p, q, g, ELpk,Qψ i=1 pkCCR,i,f E1,f E2), πEqEnc), where f E2 =c2,0,Qψ i=1 c2,i. 19Vote correctness asks for ballots containing valid combinations of the voting options as defined by the election rules. Vote correctness is out of the scope of this analysis. 77
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Definition 17 (Compliant ballot) Let Gq,ELpk,pkCCR,kid as in Definition 16. A submitted ballot bid = (vcdid,E1,E2,f E1,Kid,πballot)with E1 =Enc(ν, ELpk),E2 =MultiEnc((w1, . . . , wψ),pkCCR), and f E1 =Enc(w, ELpk)is compliant if it holds: (i) w=νkid in Gq. (ii) w=Qψ i=1 wiin Gq. Definition 18 (Compliant registered ballot) Let Gq,ELpk,pkCCR,kid, a submitted ballot bid, and group elements ν,w,w1, . . . , wψas in Definition 17. The ballot is compliant and registered if it holds: (i) There exists an entry (bid,pCCid,lCCj,id, πexp,j ), where pCCid = (pCC1,id, . . . , pCCψ,id)in the list of sent votes LsentVotes,j of the Choice Return Code control component CCRjfor all j≤m. (ii) ν=Qψ i=1 wi, and pCCi,id =wkid iwhere wiis a voting option. Modeling vote compliance. Adversaries against vote compliance attempt to force registration of non-compliant ballots in an honest Choice Return Code control component, even though the auditors and the honest control component execute their verification algorithms successfully. We analyze sVote up to termination of protocol SendVote. This is enough since it is at this point when a ballot is marked as sent by the Server and the honest control component. In Figure 24 we derive a game capturing adversaries against vote compliance in sVote. The game is stated with an ideal setup, recall that in Section 14.1 we have shown that the real setup SetupVoting from Section 12.1.1, and the ideal one IdealSetupVoting from Figure 23, are computationally indistinguishable. The advantage of Ais defined as: AdvsVote,vc A=Pr [1 ←vcA(crs)] . In the game, event badvc is defined as: badvc = Ballot bid is not a compliant registered ballot (see Definition 18) bid ∈LsentVotes ⊂bb is marked as extractable for Choice Return Codes 1←VerifyVotingPhase(bb,CMtable,Csk,LogsPO,Logsserv,{LogsCCRj}m j=1) Lemma 2 In the random oracle model AdvsVote,vc A≤2·AdvExp,sSOUND B1+AdvEqEnc,sSOUND B2, where B1,B2are adversaries against the simulation soundness property of the exponentiation and plaintext equality proof systems Exp,EqEnc, respectively. Its proof is in Section 18.2. 78
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy vcA(crs) 1. id, h ← A // Aspecifies honest CCRhand a target voter id 2. dat ←IdealSetupVoting 3. Extract (CMtable,Csk,vcd,CC,k,K,svk,pkCCR,(kj,Kj)j≤m)←dat 4. (ELpk,ELsk)←IdealSetupTally 5. Extract LogsPO from Print Office. 6. b←VerifyConfigPhase(LogsPO,crs). If b=⊥output 0. // Perform configuration phase audit 7. bb ← ∅ // Initialize an empty ballot box 8. Give the following data to A: advDat = (vid,vcd,svk,(k,K),ELpk,pkCCR,bb,CMtable, Csk,((kj,Kj))j=h,Kh) 9. ((bid,bb),(pCCid,(dj,id, πdecPCC,j ),(lCCj,id, πexp,j )j=h)) ←SendVoteA// Asubmits ballot, updated ballot box, partial Choice Return Codes together with decryption shares, and long Choice Return Code shares for each CCRjwith j=h 10. If badvc output 1 Figure 24: Game modeling attacks against compliance of registered ballots. Protocols IdealSetupVoting,SetupTally, and SendVote are executed in interaction with the adversary A, who keeps state across calls. Algorithms corresponding to honest CCRhare controlled by the game. Public parameters crs are implicit. 15 Individual verifiability In this section we analyze the individual verifiability property of sVote. The security against the attack vectors modeled here is “up to guessing the return codes”. Thus, our analysis shows that adversaries can not do better than guessing either the (short) Choice Return codes, the Vote Cast code, or the Ballot Casting key - all adversarial bounds account for the spaces of these short codes. 15.1 Sent as intended Adversaries against sent as intended attempt to force registration, in an honest control component CCRh, of a ballot with at least one voting option (out of ψ) different to the voting option selected by an honest voter. The voter, honest control components, and auditors do not detect the modification although they execute their verification algorithms successfully. As for the case of vote compliance, we analyze sVote up to termination of protocol SendVote, since it is at this point when a ballot is marked as sent by the Server and the honest control component, and the voter executes her verification algorithm. In Figure 25 we present a game capturing adversaries against 79
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy correctTallyAsVote(bb,LogsPO,Logsserv,k,crs): 1. (L∗ votes,(LogsCCMj)m′ j=1)← A(bb)// Aexecutes protocols MixOnline and MixOffline 2. Audit tally phase: 2.1 b1←VerifyOnlineTally(bb,{LogsCCMj}m′−1 j=1 ,Logsserv,LogsPO) 2.2. b2←VerifyOfflineTally(L∗ votes,m,LogsCCMm′,LogsPO) 3. If b1= 0 or b2= 0 set Lvotes ← ⊥ 4. Else, execute the ideal tally: 4.1. bbclean ←Cleansing(bb) 4.2. Get list LdecPCC from Logsserv 4.3. For each E1 ∈bbclean do: 4.3.1 Find entry (bid,pCCid, ⋆, ⋆)∈LdecPCC with E1 ⊂bid // Get partial Choice Codes 4.3.2 Get kid from k// Get Verification Card private key for voter id 4.3.3 vid = (vid,1,...,vid,ψ)←extractVoteWithAuxInfo(pCCid,kid)// Extract votes 4.4. Check if vid,i is in v, if not set Lvotes ← ⊥ // Check extracted vote is a valid voting option 4.5. Else, set Lvotes ← {vid}id∈ID 5. If badcorrectTally output 1 Figure 28: Game modeling attacks against correct tally. The adversary Ais in full control of the Mixing control components CCMs. In step 2.1, algorithm VerifyOnlineTally checks that the inputs bb,LogsPO,Logsserv are the same of algorithm VerifyVotingPhase (see Section 12.2.3). This ensures that the ballot box passed as input has been audited, thus it is ready for tally. The game executes an ideal tally in step 4 via vote extraction from the partial Choice Codes using the Verification Card private keys of the voters. Public parameters crs are implicit. 17 Privacy We define the property ballot privacy of sVote as the inability to learn information about the cast votes, beyond what is unavoidably leaked by the election results. For the privacy case, Voting Client is considered to be honest. Note that this assumption is fair for any client-side encryption based e-voting system since the voting options are introduced in clear. Thus, the honest parts of the system would be Voting Client , Print Office , one of Electoral Board members, one of CCRs and one of CCMs. For simplicity we consider only two CCMs, whereas in [43] four mixing control components are specified. We claim that our reduction does not affect proof structure due to the mandatory audit performed before the last CCM is executed and the fact that the last key is distributed among members of Electoral Board. Consider a case of NCCMs where only one of them is honest. In such scenario, the mandatory verification of online mixing tally (VerifyOnlineTally) would be performed after CCMN−1execution. If and only the verification holds, Electoral Board members 21 would submit their private key shares and 21Electoral Board members can be viewed as a set of ‘human control components’, thus at least one of the members 86
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy CCMNwill be able to reconstruct its private key. All possible corruption scenarios can be mapped to 4 cases as presented in Table 5. Honest CCM is among first N-1 VerifyOnlineTally outputs ⊤ Honest EB members submit their keyshares CCMN knows its key Case description Case 1 Yes No No No CCMNis corrupted, but can’t reconstruct its key. Case 2 Yes Yes Yes CCMNis corrupted and can reconstruct its key. Case 3 No No No No CCMNis honest, but can’t reconstruct its key. Case 4 Yes Yes Yes CCMNis honest and knows its key. Table 5: Possible corruption scenarios in case of NCCMs and Electoral Board It is easy to see, that all corruption cases can be efficiently modeled with just two CCMs due to the fact that last CCM doesn’t know its key until VerifyOnlineTally verification is successful. Therefore, in privacy definition and proofs are modeled are only two CCMs and the Challenger holds the last CCM’s private key ELsk,EB. The Challenger reveals this key to Aif and only if Achooses to corrupt the last mixing node and VerifyOnlineTally outputs ⊤. We base our definition of the ballot privacy on the definition defined in [10] for the Helios scheme and adopt it to sVote as shown in 19. On the high level, the idea of the game-based ballot privacy definition is to capture the situation, where an adversary that provides voter with two possible voting options sets v0 id,v1 id cannot distinguish which one was chosen by an honest voter. To avoid trivial wins, the adversary is restricted to select only sets that would produce the same result i.e. {v0 id}id∈Ωshould be a permutation of {v1 id}id∈Ω, where Ω are all honest voters ids that confirmed their votes successfully (both Choice Return Codes and Vote Cast Code). The game has 3 phases: Setup During the setup phase, the challenger and adversary jointly participate in the election configuration and set up process. At the end of this phase, the adversary additionally receives private information of all corrupt voters. Voting During the voting phase, the Adversary can schedule vote casting, vote confirmation (honest voter checks Choice Return Codes and, if codes are valid, introduces BCKid) and vote verification (honest voter checks Vote Cast Code) of all honest voters as well as request an honest CCR to perform is honest and refuses to submit the decryption key share if validation fails. The use of humans as control components is permitted by section 4.4.10 of [16], “it is also permitted to implement a group of control components so that they take the form of people”. 87
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy necessary actions for Choice Return Codes or Vote Cast Code retrieval. The challenger, that is playing on behalf of honest parties, flips a coin βand uses {vβ id}for all honest voters, also it keeps track of all cast, verified, confirmed ballots and failed verifications. Tally The Adversary can select which CCM it wishes to corrupt22. The challenge’s behavior depends on the coin β. In case, when β= 0, the challenger honestly executes an honest CCM and outputs the result. However, if β= 1, the challenger would change honest voters’ ballots cast for voting options {v1 id}to those generated for {v0 id}and use simulators to fake shuffle and decryption proofs. Definition 19 (Privacy) Consider sVote scheme described in section 12 for a set ID of voter identities. We say that the scheme has ballot privacy if there exist algorithms Sdec and SMix such that: AdvsVote,bpriv A=Pr h1←[Expbpriv,0 A,V(crs)i−Pr h1←[Expbpriv,1 A,V(crs)i−1 |Csvk|≈0, where Csvk is a code space of Start Voting Keys SVKid. Theorem 5 In the random oracle model AdvsVote,bpriv A≤Advdec,NIZK B.1+Advmix,NIZK B.2+AdvExp,NIZK B.3+AdvsVote,mtc B.4 +Advsch,NIZK B.5+ +AdvEqEnc,NIZK B.6+Nh·AdvSEnc,INDCPA B.7 +AdvF,PRF B.8+Nh·AdvQp,ESGSP B.9+AdvElGamal,INDCPA B.10 , where B.1is an adversary against the zero-knowledge property of the Decryption proof system dec,B.2 is an adversary against the zero-knowledge property of the shuffle argument mix,B.3is an adversary against the zero-knowledge property of the Exp proof system, B.4is an adversary against mapping table correctness property of sVote,B.5is an adversary against the zero-knowledge property of the sch proof system, B.6is an adversary against the zero-knowledge property of the EqEnc proof system, B.7is an adversary against IND-CPA property of symmetric encryption scheme, B.8is an adversary against the weak pseudorandom property of the exponentiation function F(k, x) = xk,B.9is an adversary against the ESGSP problem [25], B.10 is an adversary against the IND-CPA property of the ElGamal. Its proof is in Section 18.7. 22Note that, if CCM2is corrupt, it will receive its private share of election key if and only if CCM1doesn’t abort. 88
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Expbpriv,β A,V(crs): //setup phase 1. ID,IDh, h, c ← A(crs)// Aspecifies voter identities, honest voters, an honest CCRhand whether it corrupts online (c= 1) or offline (c= 0) CCM 2. dat ←SetupVotingA(crs) 3. (ELpk,ELpk,1,EBpk,EBsk)←SetupTallyA(crs)// EBsk is not known to Aregardless of which CCM is corrupted. If and only if c= 1,ELsk,1is generated by A. 4. b←VerifyConfigPhase(LogsPO,crs). If b=⊥, abort the game. 5. bb,bb0,bb1← ∅ // Initialize 3 empty ballot boxes 6. At the end of this phase Aobtains: server’s data: bb,Csk,CMtable public data: vcd,K,VCks,ELpk,pkCCR,EBpk,ELpk,1 corrupt voters’ data: (ccid,SVKid,VCCid,BCKid)id∈ID\IDh //voting phase Ais allowed to query oracles OCastBallot,OHonestCCRdec,OConfirmBallot, OHonestCCRconfirm,OVerifyVCC defined in Figure 30. //tally phase Ais allowed to query oracle OHonestMix defined in Figure 31 only once. Figure 29: Experiments Expbpriv,β A,V(crs)defined for β∈ {0,1}. The adversary Ahas access to set of oracles OCastBallot, OHonestCCRdec,OConfirmBallot ,OHonestCCRconfirm,OVerifyVCC,OHonestMix.Acan query oracle OHonestMix only once. For β= 1 the experiment also depends on Sdec and SMix, To simplify notation, oracle’s explicit dependence on β,SMix and Sdec is not shown. 89
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy OCastBallot(id,v0 id,v1 id): //cast ballot on behalf of honest voter 1. If id /∈ IDhor v0 id,v1 id have more than ψvoting options, abort. 2. kid ←GetKey(SVKid,VCksid)// obtain verification card private key 3. b0 id ←CreateVote(VCid,v0 id,ELpk,pkCCR,(Kid,kid),crs)// ballot for option v0 id b1 id ←CreateVote(VCid,v1 id,ELpk,pkCCR,(Kid,kid),crs)// ballot for option v1 id 4. νi id =∏ψ k=1 vi k, where vi id = (v1,...,vψ)for i∈ {0,1} 5. bb0←bb0∪(id, ν0 id,b0 id)and bb1←bb1∪(id, ν1 id,b1 id) 6.Output bβ id OHonestCCRdec(bid): //honest CCR partially decrypt encrypted pCCid 1. (b, LogsCCRh)←VerifyBallotCCRh(bid,ELpk,pkCCR,Kid,LogsCCRh,crs) 2. If b= 0 abort, otherwise proceed. 3. (dj,id,LogsCCRj)←PartialDecryptPCCh(bid,pkCCR,h,sk(h) CCR,LogsCCRh,crs) 4. Output dj,id OHonestCCRexp(bid,pCCid): //honest CCR exponentiate pCCid 1. (lCCh,id,LogsCCRh)←CreateLCCShare(bid,pCCid,kh,id,Kh,id,LogsCCRh)) 2. Output lCCh,id // the result is either ⊥or lCCh,id OConfirmBallot(id,cc∗ id): //confirm ballot on behalf of an honest voter 1. If bbβhas an entry (id,confirmed)or (id,wrongCRCs), abort. 2. b←VerifyCRC(vβ,cc∗ id,ccβ id) 3. If b= 0: bb0←bb0∪(id,wrongCRCs) bb1←bb1∪(id,wrongCRCs) abort. 4. CMid ←CreateConfirmMessage(BCKid,kid) 5. bb0←bb0∪(id,confirmed)and bb1←bb1∪(id,confirmed) 6. Output CMid. OHonestCCRconfirm(bid,CMid): //honest CCR confirms ballot 1. b←VerifyConfirmationCCRh(bid,LogsCCRh) 2. If b= 0, abort. 3. (lVCCid,h,LogsCCRh)←CreateLVCCShareh(bid,CMid,(Kch,id,kch,id),LogsCCRh). 4. Output lVCCid,h. OVerifyVCC(id,VCC∗ id): //verify VCC on behalf of an honest voter 1. If bbβhas an entry (id,verified)or (id,wrongVCC), abort. 2. b←VerifyVCC(VCC∗ id,VCCid). 3. if b= 0 bb0←bb0∪(id,wrongVCC) bb1←bb1∪(id,wrongVCC) abort. 4. bb0←bb0∪(id,verified)and bb1←bb1∪(id,verified) 5. Output 1. Figure 30: Privacy: Oracles given to the adversary Ain experiments Expbpriv,β A,V(crs)(see Figure 29) modeling the voting phase. They are implicitly parameterized with bit β∈ {0,1}. 90
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy OHonestMix(bb,Logsserv,{LogsCCRarg1}m j=1,j=h,bbclean,cmix,A,cDec,A,LogsCCMA): // tally 1. If for id ∈ IDhbbβhas (id,confirmed)entry, but not (id,verified), raise a complaint. 2. b←VerifyVotingPhase(bb,LogsPO,bb,Logsserv,{LogsCCRarg1}m j=1) 3. If b=⊥, abort 4. //Check that adversary cannot trivially break privacy based on tally results V1 h← {ν1 id : (id,verified)∈bb1}// extract verified options of honest voters from bb1 V0 h← {ν0 id : (id,verified)∈bb0}// extract verified options of honest voters from bb0 5. If V0 his not a permutation of V1 h, abort. 6. if c= 0: //online mixing (ELpk,h,ELsk,h) = (ELpk,1,ELsk,1) if β= 0: (cmix,h,cDec,h,ELpk,h,LogsCCMh)←MixDecOnlineh(bbclean,ELpk,ELpk,h,ELsk,h,LogsCCRh,crs) else if β= 1: // simulate mixing and decryption proofs b1 h← {bid : (id,verified)∈bb1}// extract verified ballots of honest voters from bb1 b0 h← {bid : (id,verified)∈bb0}// extract verified ballots of honest voters from bb0 bbh=bbclean/b1 h∪b0 h//change honest voter’s ballots Permute entries in bbhto get bbshuffled h (cmix,h, π∗ mix,h) = SMix(ELpk,ckmix,bbclean,bbshuffled h).//simulate shuffle proof Compute cDec,h = (c1,...,cℓ)as ci=(ci,1, ci,2·(ci,1)−ELsk,h ), for each ci= (ci,1, ci,2)∈cmix,h and a list of NIZKs π∗ dec,h =(π∗ dec,h,1,...,π∗ dec,h,ℓ), where π∗ dec,h,i =Sdec (g, ELpk,h,ci,ci). LogsCCMh←LogsCCMh∪((bbclean),(cmix,h,cDec,h),(ELpk/ELpk,h,ELpk),(π∗ mix,h,π∗ dec,h)). Output: (ELsk,EB,cmix,h,cDec,h,LogsCCMh). //offline CCM private key and mixing results 6. else if c= 1 // offline mixing b←VerifyOnlineTally(bb,LogsPO,Logsserv,LogsCCMh,LogsCCMAcmix,A,cDec,A) If b=⊥, abort if β= 0: (cmix,h,m,LogsCCMh)←MixDecOffline(cmix,A,cDec,A,EBpk,EBsk,LogsCCRh,crs) Output: (cmix,h,m,LogsCCRh) else if β= 1: // simulate mixing and decryption proofs mh=m/V1 h∪V0 h// substitute V1 hwith V0 hin m Permute entries in cDec,Ato get cshuffled Dec,A (cmix,h, π∗ mix,h) = SMix(ELpk,ckmix,cDec,A,cshuffled Dec,A).//simulate shuffle proof Compute π∗ dec,h =(π∗ dec,h,1,...,π∗ dec,h,ℓ)as π∗ dec,h,i =Sdec (g, EBpk,ci, mh i), for each mh i∈mh,ci∈cmix,h. LogsCCMh=LogsCCMh∪ {(cmix,A,cDec,A),(cmix,h,mh),(ELpk,A,EBpk),(π∗ mix,h,π∗ dec,h)}. Output: (cmix,h,mh,LogsCCMh). Figure 31: Privacy: Oracle given to Ain experiments Expbpriv,β A,V(crs)(see Figure 29) during the tally phase. It can be queried only once. The oracle is implicitly parameterized with bit β∈ {0,1}and simulators Sdec and SMix. 91
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 18 Security reductions 18.1 Proof of Lemma 1 (codes mapping table correctness) We use six hops to transform the real game rMTC (executing the real protocol SetupVoting of Figure 17) into the simulated game sMTC (executing the simulated protocol IdealSetupVoting of Figure 21). Both games are defined in Figure 23. After the transformation is completed, clearly AdvsVote,mtc.6 A= 0 since the real and simulated games are identical. Game rMTC.1. In this game, algorithm CombineEncLongCodeShares (see Section 12.1.1.6) ignores input from CCRj,∀j=hand instead uses the extractor EAof the Exponentiation proof system to obtain witnesses {kj,id,kcj,id}m j=1,j=hfrom the NIZKs {πexpPCC,j ,πexpCK,j}m j=1,j=h. Additionally, to answer consistently between phases, the honest CCRhkeeps an internal Codes mapping table for Voter id CMtableCCRh id =nid,pCCi,id, xin i=1 ,[CKid, y]o, where xi=(H(vkid i)2·kh,id ), and y=H(CKid)2·kch,id . Then, algorithm GenCMTable (see Section 12.1.1.7) constructs CMtable based on the extracted keys of the dishonest CCRj,∀j=h, and the group elements xi, y of the internal table of CCRh. Let bad1be the event that some of the NIZKs {πexpPCC,j,πexpCK,j}m j=1,j=hverify successfully but EA could not extract a witness. The game aborts if bad1is true. We have that: |AdvsVote,mtc.1 A−AdvsVote,mtc A| ≤ Pr[bad1]. Now, Pr[bad1]≤ϵext, where ϵext is given by the weak simulation extractability property of the Exponentiation proof system Exp. Game rMTC.2. In this game, algorithm GenEncLongCodeSharesh(see section 12.1.1.5), controlled by the honest CCRh, uses the canonical simulator SExp to generate proofs for statements containing CCRh’s public keys Kh,id and Kch,id. We have that |AdvsVote,mtc.2 A−AdvsVote,mtc.1 A| ≤ AdvExp,NIZK B, where Bis an adversary against the zero-knowledge property of the Exponentiation proof system Exp. In the reduction, Buses its own oracle to answer the queries of CCRhand outputs what the (emulated) game rMTC outputs (see Figure 5). Observe that from this game onwards, CCRh’s private keys kh,id,kch,id are used for exponentiation (but not as witnesses in the setup phase). Game rMTC.3. Algorithm GenEncLongCodeShareshsamples at random the Voter Choice Return Code Generation private key kh,id and the Voter Vote Cast Return Code Generation private key kch,id instead 92
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy of deriving them from the CCRjChoice Return Codes Generation private key k′h. We have that |AdvsVote,mtc.3 A−AdvsVote,mtc.2 A| ≤ Advkdf B, where Bis an adversary against the pseudorandom property of KDF. The reduction is straightforward. Game rMTC.4. In this game, algorithm GenEncLongCodeShareshfrom the previous game samples at random Voter Vote Cast Return Code Generation public key Kh,id and the Voter Vote Cast Return Code Generation public key Kch,id independent from the corresponding private keys kh,id and kch,id. We have that |AdvsVote,mtc.2 A−AdvsVote,mtc.3 B| ≤ 2·AdvQp,SGSP A Where Bis an adversary against the SGSP problem (see Definition 9.2). In the reductions, Bfrom the challenge instance (˜g, ˜gs0, ℓ, ℓs1), sets the generator g=ℓ, and Kh,id =ℓs1(or Kch,id =ℓs1). Game rMTC.5. In this game GenVerDat samples Cpcc,cck at random and independently from values hpccid,1, . . . , hpccid,n,hckid. We have that |AdvsVote,mtc.5 A−AdvsVote,mtc.4 A| ≤ AdvElGamal,INDCPA B, where Bis an adversary against the IND-CPA property of the ElGamal. Game rMTC.6. In this game GenEncLongCodeShareshfrom the previous game samples CexpPCC,h and cexpCK,h at random and independent from the received input Cpcc,cck, and the keys kid and kh,id. The honest CCRhalso sets the values xiand yof its internal mapping table CMtableCCRh id to random group elements. We have that |AdvsVote,mtc.6 A−AdvsVote,mtc.5 A| ≤ 2·AdvF,PRF B, where Bis an adversary against the weak pseudorandom property of the exponentiation functions F(kh,id, r) = rkh,id and F(kch,id, r) = rkch,id . Technically this game is unfolded in two: one for key kh,id, and another for key kch,id; hence the 2factor in the bound. For the reductions to go through we shall see that all queries Basks are uniform; indeed ciphertexts Cpcc,cck are honestly generated (by the Print Office) at random, and the queries to obtain xiand yare hashed before, so in ROM they are random too. Now, game rMTC.6broadcasts meaningless ciphertexts Cpcc,cck and computes the Codes mapping table via extracting private keys of CCRj,∀j=h, and using the internal table for CCRh. In other words, it does exactly what IdealSetupVoting does, hence games rMTC.6and sMTC are identical, so AdvsVote,mtc.6 A= 0. Collecting the bounds gives the result. 18.2 Proof of Lemma 2 (vote compliance) We use a series of game hops to bound the probability of event badvc in Game vc of Figure 24. 93
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Game vc.1. This games adds an extra check to the original game. Let bid = (vcdid,E1,E2,f E1,Kid,πballot) be the adversarial submitted ballot. Abort if event bad1is true, where bad1= ν=Dec(E1,ELsk)∧w=Dec(f E1,ELsk) νkid =w 1←VerifyBallotCCRh Note, that since the Cruns IdealSetupTally, it controls ELsk and can perform required for bad1check decryptions. Also note, that vc doesn’t take into account tally phase, thus Cdoesn’t need to know EBsk. We have that |AdvsVote,vc A−AdvsVote,vc.1 A| ≤ Pr[bad1]. Now, Pr[bad1]≤AdvExp,sSOUND B1, where B1is an adversary against the simulation soundness property of the exponentiation proof system Exp. In the reduction, B1uses πExp from πballot and submits (g, E1),(Kid,f E1)), πExpas the challenge statement/proof pair (see Figure 6). Game vc.2. This games adds an extra check to the previous game. Let bid be the adversarial submitted ballot and pCCid be the vector of partial Choice Return Codes. This game aborts if event bad2is true, where bad2= w=Dec(f E1,ELsk) w=Qψ i=1 pCCi,id 1←VerifyBallotCCRh In other words, the adversary is restricted to submit compliant ballots (see Definition 17). We have that |AdvsVote,vc.1 A−AdvsVote,vc.2 A| ≤ Pr[bad2]. Now, Pr[bad2]≤AdvEqEnc,sSOUND B2, where B2is an adversary against the simulation soundness property of the plaintext equality proof system EqEnc. In the reduction, B2uses πEqEnc from πballot and submits (g, ELpk,Qψ i=1 pkCCR,i,f E1,f E2), πEqEnc) as the challenge statement/proof pair, where E2 = (c2,0, c2,1, . . . , c2,ψ), and f E2 =c2,0,Qψ i=1 c2,iand pkCCR,i is the i-th global public key of the control components. Game vc.3. This game adds an extra check to the previous game. Let (pCCid,(lCCj,id, πexp,j )j=h)) the partial Choice Codes and long Choice Code shares submitted by the adversary. This game aborts if event bad3is true, where bad3= ∃pCCi,id,lCCj,i,id s.t. lCCj,i,id = (H(pCCi,id))2)kj,id 1←VerifyVotingPhase We have that |AdvsVote,vc.2 A−AdvsVote,vc.3 A| ≤ Pr[bad3]. Now, Pr[bad3]≤AdvExp,sSOUND B3, 94
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy where B3is an adversary against the simulation soundness property of the exponentiation proof system Exp. In the reduction, B3submits ((g, H(pCCi,id))2),(Kj,id,lCCj,i,id), π(j) exp,i. It remains to see that AdvsVote,vc.3 A= 0. We show that Ahas no other chance but submit a compliant registered ballot. Case 1. Asubmits vector pCCid with some pCCi,id =vkid i′for all voting options vi′. Then since the Codes mapping table contains only correct entries (it is generated with the ideal setup protocol), at least one short Choice Return Code is not extractable (using that Aexponentiates correctly to generate lCCj,id), but the ballot is marked as sent and extractable in the ballot box, therefore VerifyVotingPhase outputs 0. Case 2. Asubmits valid pCCid = (vkid j1, . . . , vkid jψ). In this case, Qψ i=1 pCCi,id =Qψ i=1 vkid jiSince the ballot is compliant it follows that Dec(f E1) = Qψ i=1 pCCi,id =Qψ i=1 vkid ji=νkid =Dec(E1,ELsk)kid . Last, using Qphas prime order q,kid has a (multiplicative) inverse k−1in Z∗ q, so ν=Qψ i=1 pCCk−1 i,id = Qψ i=1 vji. 18.3 Proof of Theorem 1 (sent as intended) We use five hops to bound the probability of event badsai in Game sai of Figure 25. Game sai.1.In this game, algorithm CreateLCCShareh(see section 12.2.1.7) use the canonical simulator SExp to generate a proof for statements containing Kh,id. We have that |AdvsVote,sai A−AdvsVote,sai.1 A| ≤ AdvExp,NIZK B, where Bis an adversary against the zero-knowledge property of the Exponentiation proof system Exp. In the reduction, Buses its own oracle to answer the queries of CCRhand outputs what the (emulated) game sai outputs (see Figure 5). Observe that from this game onwards, the Voter Choice Return Code Generation private key kh,id is used for exponentiation (but not as a witness in the voting phase). Game sai.2. We now switch to the ideal setup protocol IdealSetupVoting (see Figure 21), which generates a correct Codes mapping table CMtable with a randomized transcript. Also, in algorithm CreateLCCShareh, the honest CCRhuses its internal table, populated during the ideal setup protocol, to answer queries. (If the adversarial pCCi,id is not in the internal table, hash and exponentiate to kh,id.) We have that: |AdvsVote,sai.1 A−AdvsVote,sai.2 A| ≤ AdvsVote,mtc B. We use the bound given in Lemma 1 to bound AdvsVote,mtc B. Observe that in the ideal setup protocol, choosing independent and random long Choice Code shares lCCh,id implies that the symmetric keys skcci,id, encrypting the short Choice Return Codes in CMtable, are also independent from each other, randomly distributed, and not known to A. 95
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy (during voting phase) CCRhreceives pCCK,id such that H(pCCK,id))2=hpCCk,id, then lCCh,K,id should be set to Rk. •Functions CreateLCCSharehand CreateLVCCSharehfrom the game bpriv.2take randomly sampled lCCh,id and lVCCid,h from an internal C’s table. We have that |AdvsVote,bpriv.6 A−AdvsVote,bpriv.5 A| ≤ AdvF,PRF B. where Bis an adversary against the weak pseudorandom property of the exponentiation functions F(kh,id,hpCCi,id) = (hpCCi,id)kh,id and F(kch,id,hcmid) = (hcmid)kch,id . Game bpriv.7.In this game, we substitute all exponentiations to kid by randomly sampled elements. In other words we change (f E1,Kid,CKid,pCCid) that were computed as E1k id, gk id,(BCKid)2·kid ,(vkid j1, . . . , vkid jψ) to values randomly samples from G. To support this change, the following adjustments to the functions are made: •The algorithm GenVerDat$(from IdealSetupVoting) samples Kid at random for all honest voters. •For all honest voters algorithm GenCMTable$(from IdealSetupVoting) randomly samples elements for the Confirmation Key CKid and the partial Choice Codes pCCid, instead of the elements (BCKid)2·kid and (vkid 1, . . . , vkid n), respectively, to construct CMtable. The Ckeeps an internal table with entries (id,CKid,pCCid)to be consistent between the setup and voting phase. •During vote casting (OCastBallot), GetKey is not executed, instead Cuses its knowledge of kid to generate a ballot. Additionally, algorithm CreateVote is as in the Game bpriv.4, but samples f E1 at random and takes pCCid from the internal table kept by the C(in order to be consistent with generated CMtable). •During vote confirmation (OConfirmBallot), CreateConfirmMessage is not executed, instead the C outputs CKid from its internal table. Observe that the only value that depends on the coin βis vβ id that is encrypted with ELpk. We have that |AdvsVote,bpriv.7 A−AdvsVote,bpriv.6 A| ≤ Nh·AdvQp,ESGSP B, where Bis an adversary against the ESGSP problem (see Definition 9.2). Game bpriv.8.In this game, in OCastBallot, the Cchanges vβ id to v1−β id for all honest voters id ∈Nh. We have that, |AdvsVote,bpriv.8 A−AdvsVote,bpriv.7 A| ≤ AdvElGamal,INDCPA B, where Bis an adversary against the IND-CPA property of the distributed ElGamal [19]. 102
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Note, that Adoesn’t know nor controls ELsk since the offline (last) CCM’s private share EBsk is generated by the honest Print Officeafter all online CCMs key shares are submitted and given to the offline CCM if and only if VerifyOnlineTally is successful. Therefore in bpriv game, where only two CCMs are modeled, Aeither doesn’t participate in election key pair generation at all (if it chooses to corrupt an offline CCM whose key is generated by Cregardless) or has to pass VerifyOnlineTally in order to get the result of the offline mixing. Observe that after this change the adversarial view that was corresponding to the case β= 0 is changed to β= 1, and the view that was corresponding to the case β= 1 is changed to β= 0. Thus, adversarial views for β= 0 and β= 1 are identical, and the adversary can win the Game bpriv.8only by guessing the coin βat random. Therefore, AdvsVote,bpriv A≤Advdec,NIZK B+Advmix,NIZK B+ 2 ·AdvExp,NIZK B+AdvsVote,mtc B+Advsch,NIZK B+AdvEqEnc,NIZK B +Nh·AdvSEnc,INDCPA B+AdvF,PRF B+Nh·Advsgsp B+AdvElGamal,INDCPA B 103
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Part V Parameters and further remarks 104
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 19 Choice of parameters 19.1 ElGamal encryption scheme Parameters p, q for ElGamal are generated verifiably similarly to FIPS 186-4 [37] and gis chosen as the smallest prime number that is member of the group Q. The bitlength of pand qare set to 2048 and 2047 bits respectively. For the client-side operations, we use short exponents of 256 bits for performance optimization. The security of this optimization is shown in [46], [29]. 19.2 Symmetric key encryption scheme Our protocol uses AES encryption scheme in GCM mode that is defined in NIST SP 800-38D [18]. As analyzed in [32] and [5], the confidentiality (IND-CPA security) of this cryptosystem relies on the (well-accepted) assumption of modeling the AES block cipher as a keyed random function. 19.3 Key Derivation functions As KDF algorithm we use the construction defined in ISO-18033-2 [27] and in PKCS#1v2.2 [33] with the name MGF1. Specifically we use MGF1-SHA2-256. As PBKDF algorithm we use the PBKDF2 algorithm defined in PKCS#5v2.0 [28]. Specifically, we use the function with HMAC-SHA2-256 and 32000 iterations. The salt KEYseed is provided as a parameter. 19.4 Hash functions We use SHA2-256 defined in FIPS 180-4 [39] and SHAKE-128 (for verifible parameters generation only) defined in FIPS 202 [38]. 19.5 Pseudo-random functions We use the HMAC function defined in FIPS 198-1 [36], that is composed of a SHA-256 hash function, parameterized by the symmetric key k. As detailed in [3], HMAC is a PRF whose resistance against collision is the one of the underlying hash scheme. Up to date, the collision probability of the SHA-256 hash function is considered to be negligible. 19.6 Verifiable mixnet The verifiable re-encryption mixnet proposed by Stephanie Bayer and Jens Groth [2] requires the underlying generalized Pedersen commitment scheme to be computationally binding and to have the same prime order qas the ElGamal encryption scheme. 105
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy In order to ensure those properties, the protocol uses a verifiable group element generation scheme for generating the public key of the Pederson commitment scheme ckmix = (G, G1, ..., Gn, H). This algorithm was inspired by FIPS 186-4 (algorithm in Appendix A.2.3) [37] but includes the following modifications: • To generate Gifor i= (1, . . . , n)it executes the steps proposed in FIPS, but uses the extendable-output function SHAKE128 instead of a hash function, and sets index =i−1and domain_parameter_seed =commitment_seed. • To generate Hit executes the steps proposed in FIPS, but uses the extendable-output function SHAKE128 instead of a hash function, and sets index =nand domain_parameter_seed = commitment_seed. SHAKE128 has been standarized in FIPS-202. 19.7 Return codes spaces The return codes should be large enough for security, and small enough for usability. Start voting keys. These codes are 20-character strings encoded in base 32. The space Csvk consists of 3220 values. Ballot casting keys. These codes are 8-digit non-zero numbers. The space Cbck consists of 108−1 values. The 8-digit number is concatenated with an extra checksum digit in EAN13 format. Long choice and vote cast return codes. These codes are sometimes seen as ElGamal plaintexts. The space Clc is the group G, so there are Ord(G) = qdifferent possible values. Short choice return codes. These codes are 4-digit numbers. The space Ccc consists of 104values. Short vote cast return codes. These codes are 8-digit numbers. The space Cvcc consists of 108 values. 20 Abstractions To focus our model and analyis, we discuss the abstractions made in the description of the voting system presented in Section 12. 20.1 PKI and authenticated channels Constitution of a platform root CA, and generation of credentials for the different system contexts and tenants that wish to run an election is omitted. For more details, see [43] 106
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Furthermore, we have abstracted away authenticated channels, i.e. we are not modeling signatures and related cryptographic keys. In the actual implementation, authenticated channels are implemented with signatures and established public key infrastructure. 20.2 Voter authentication We have not covered details on how eligible voters authenticate in the system. This might happen via a dedicated protocol, or via a third party. In any case, the focus in this document is to show that privacy is maintained regardless of authentication procedure, so how the user authenticates is considered out of the scope. This is consistent with the current state-of-the-art in computational security proofs for e-voting systems, where eligibility verifiability [30] is very rarely analyzed. In the actual implementation, users authenticate in the system using a challenge-response mechanism. The goal of the authentication procedure is to ensure that only a voter who proved that he opened an encrypted key store gets a valid authentication token. Namely, a voter sends a request that includes his Credentials ID to the server. The server sends back the corresponding encrypted Verification Card keystore and a challenge. The voter replies by sending a client message, which includes the server’s challenge signed with the key retrieved from the encrypted keystore. If the reply to the challenge is valid, the server generates an Authentication Token containing the Voter Information, a timestamp etc. and sends it to the voter. During the voting phase, the voter includes this token with every request they send to the server. See [43, Sections 5.1, 5.2] for more details. Since authentication tokens are generated by the untrustworthy voting server, the adversary can learn all authentication tokens and can generate new ones for arbitrary voters at will. Authentication tokens do not strengthen the security of the system under the given trust assumptions, therefore they were omitted in the model Details about the authentication layer have been deliberately omitted in the proofs for the sake of clarity, and given the fact that they are not relevant for proving cast-as-intended verifiability, universal verifiability or privacy. We emphasize that our model is independent of the way encrypted Credential Data Keystore is delivered to the voters. We actually make the adversary stronger by omitting authentication because the goal of the authentication mechanism in our protocol is to restrict access to the verification card keystores. By omitting authentication, we are granting the adversary free access to the keystores. Our only requirements are: Verification Card Keystore is generated and encrypted as described in our model and Voting Cards are delivered to the voters via a trusted channel (i.e. postal mail). Please note that a Verification Card Keystore can only be opened by the person in possession of the voting card: the keystore is encrypted with the key that is derived from the Start Voting Key (SVKid) printed in the voting card. 107
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy In the protocol model we assume, that all encrypted Verification Card Keystore are public. Moreover, the Attacker can open a keystore if he controls the Voting Client or corrupts a voter and access his voting card. In the event that a voter is honest and Voting Client is not leaking any information to the Attacker, it is assumed that a voter’s Start Voting Key (SVKid) that is printed in the voting card is private. Therefore, three different cases can arise: Case 1: Non-Voter & Verifiability model (untrustworthy Voting Client ). The non-voter does not reveal his Start Voting Key SVKid to the adversary, therefore the polynomially-bounded adversary cannot open the keystore. Case 2: Voter & Verifiability (untrustworthy Voting Client ). In that scenario, the adversary has access to the verification card private key kid . This corruption is accounted for in the proofs of verifiability. Case 3: Voter & Privacy (Trustworthy Voting Client ). Under the assumption that the Voting Client is trustworthy, the start voting key SVKid is not known to the adversary, therefore it is computationally unfeasible for him to open the keystore. No information about the start voting key SVKid is leaked to the adversary during the authentication mechanism. Prior to the GetKey algorithm (see Section 12), the start voting key SVKid is used in two occasions as an input (together with a cryptographic salt) to a password-based key derivation function executed on a trustworthy (in case of privacy) Voting Client for deriving the credential ID and a keystore key. Only the credential ID is known to the untrustworthy voting server. Due to the security of the key derivation function (PBKDF2), it is not possible to infer anything about the start voting key SVKid. Without knowledge of the Start Voting Key SVKid , the adversary is only left with the possibility of breaking the keystore. Breaking a 128-bits symmetric encryption (to open the keystore) is computationally equivalent (or requires at least the same amount of computations) to solve the 2048-bit discrete logarithm problem. Therefore, an adversary able to get access to the contents of a keystore can also compromise the (ElGamal) key of a trusted control component. This type of adversary is not compliant with the security model of the ordinance (where at least one control component is trustworthy) 20.3 Offline mixing control component We have abstracted away the generation and recovery of the Election key private key share EBsk corresponding to the last Mixing control component CCMm′. In the actual implementation, during configuration this private key is secret-shared using a Shamir secret sharing scheme among the electoral board members, and during tally, it is reconstructed accordingly. 108
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy This detail is irrelevant in the security analysis: it only matters that the adversary learns the key EBsk in case the last CCM is compromised. See [43, Sections 4.5, 6.1.2, Annex 9.1.9, 9.1.10] for more details. 20.4 Write-ins Certain elections in Switzerland give voters the possibility to write the name of a candidate in a form instead of selecting a predefined candidate (so called write-in candidates). Usually, only a small fraction of voters select write-in candidates. The protocol supports write-in candidates: using multi-recipient ElGamal encryption, the system encodes and encrypts write-in candidates as separate messages along with the pre-defined candidates (which are still encoded as the product of primes and linked to a specific choice return code using NIZK proofs). Therefore, the existence of write-in candidates does not impact the security of the protocol. However, the protocol cannot provide cast-as-intended for the write-in candidates, since it is impossible to map all possible write-in values to a choice return code. For all these reasons, the voting system description and the security analysis do not cover write-in candidates and the security guarantees regarding individual verifiability apply only to predefined voting options. 20.5 Re-login after sending or confirming the vote Normally, the voter performs the voting process - from logging in, selecting options, sending the vote, checking the choice return codes, confirming the vote, and checking the vote cast return code - in one go. However, it might be possible that the voter aborts the session after sending the vote but before confirming it (either voluntarily or if for instance the browser crashed) and wishes to re-login to continue the process and to confirm the vote. Alternatively, the voter might re-login after a successful confirmation to check the vote cast return code a second time. The system covers both scenarios since the voting server stores the necessary information to repeat the ExtractCRC or ExtractVCC algorithm. No interaction with the Choice Return Code control components is necessary in this process. For the sake of clarity, we have omitted these alternative protocol flows in the voting system description, since they do not impact our security goals. 20.6 Validations in untrusted components For the sake of simplicity and readability of the voting system description, we have abstracted away some validations in the voting server and the voting client. While these validations increase the robustness and usability of the system, they are irrelevant for the security analysis, since the adversary controls untrusted components and can omit those validations. 21 Conclusion 109
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 21.1 Final remarks and improvements Observe that given the format of the choice return codes, it is important to take into account some considerations: a vote cannot contain repeated voting options, and the number of voting options inside the vote has to be fixed. In case the voter can perform a variable number of selections, the maximum will be included in the vote, filling those not selected by the voter with blank options (which are all different). This means that the voter will receive choice return codes for both the options she selected and the voting options she left blank. Finally, only one vote is allowed per voter, and this has an effect on the security of the cast-as-intended verification mechanism, as shown in the analysis. These considerations are all enforced by the protocol implementation. 21.2 Verifiability Our analysis shows that the four attack types described in Section 13 are unlikely to occur. Security against the first three type of attacks model cast-as-intended and recorded-as-cast properties. The last type of attack models the counted-as-recorded property. Regarding the first and third types of attacks, leveraging on the entropy of the output of the return codes control component allowed us to argue that the (encrypted and sorted) codes mapping table does not leak meaningful information on the Choice Return Codes corresponding to the selected voting options, nor on the Vote Cast Return Code of the voter. Security against the second type of attack tells us that an adversary - even with the knowledge of the ballot casting key - cannot discard the vote of an honest user. Without this guarantee it is not possible to tell apart the case where the voter types incorrectly the ballot casting key from the case where the adversary tampers with it. We have not considered the case in which the adversary tampers with the start voting key because this would be detected (either the content of the encrypted ballot will not be well-formed or we are in a similar situation as for type 1 attacks). The fourth type of attack leverages the difficulty of carrying out the first three attacks so that it can be assumed the ballot box after the voting phase is in a good state. From this, an argument for the correctness of the result is given due to the presence of verifiable mixnets. We point out that the assurance stemming from our security definitions does not rule out other attacks. However, it rules out those considered in the ordinance, as shown in our analysis. There are several possibilites to strengthen sVote, including distributing the mapping table across control components (avoiding a centralized setup), and augmenting the entropy of the return control components for the computation of the long choice return codes. These improvements may allow moving checks from auditors to honest voters, among other advantages. 110
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy 21.3 Privacy The protocol has been proven to provide ballot privacy under the assumptions for complete verifiability given in Federal Council: voting client of an honest voter, one of the control components and the print office are trustworthy. Furthermore, it is assumed that all voters receive their credentials via an untappable channel. It needs to be pointed out that our adversarial model does not account for trivial cases of privacy breaches such as when all honest voters vote for the same options, election authorities run the decryption procedure before results from other voting channels are obtained or if the adversary controls the user platform. We emphasize that no voting channel electronic or not can preserve the privacy of honest voters if they all chose identical options. Similarly, we are not considering as ‘provisional’ results known by authorities before results from other channels are acquired as it is solely a procedural issue. Also, we highlight that no system that relies on client-side encryption can satisfy ballot privacy property in cases when an attacker controls the user platform that is used for encryption the ballot as he instantly learns the voter’s preferences. Another thing worth mentioning is the importance of auditing cleansing and mixing procedures before performing the last decryption (or executing the last control component). This verification ensures the result would be checked before decryption and if any manipulation attempt detected privacy of individual votes would not be affected. It is important to stress that auditing intermediate results before executing the last CCM is the requirement only due to privacy concerns, as an attacker may attempt to send reencryptions of a particular ballot instead of cleansing output to break the privacy of a specific voter. Even though it is arguable that ballot privacy is broken in scenarios when re-election is required, we prevent any interpretation ambiguity by demanding verification. 21.4 VEleS security objectives We believe that our interpretation of the security objectives [16] fits with what we have proven. We review the ordinance, and in Table 6 provide a many-to-one relationship between the security objectives of the ordinance and our cryptographic properties defined in Part IV. 21.4.1 Individual verifiability The ordinance states the following requirements for authorizations for more than 30 percent, but less than 50 percent, of the cantonal electorate. VEleS Art. 4.2: For the purpose of individual verification, voters must receive proof that the server system has registered the vote as it was entered by the voter on the user platform as being in conformity with the system. [...] 111
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy Computer Security - ESORICS 2014 Proceedings, Part II, volume 8713 of Lecture Notes in Computer Science, pages 327–344. Springer, 2014. [21] Sebastian Faust, Markulf Kohlweiss, Giorgia Azzurra Marson, and Daniele Venturi. On the nonmalleability of the fiat-shamir transform. In Progress in Cryptology - INDOCRYPT 2012, 13th International Conference on Cryptology in India, Kolkata, India, December 9-12, 2012. Proceedings, pages 60–79, 2012. [22] Amos Fiat and Adi Shamir. How to prove yourself: Practical solutions to identification and signature problems. In Andrew M. Odlyzko, editor, CRYPTO, volume 263 of Lecture Notes in Computer Science, pages 186–194. Springer, 1986. [23] Taher El Gamal. A public key cryptosystem and a signature scheme based on discrete logarithms. In G. R. Blakley and David Chaum, editors, CRYPTO, volume 196 of Lecture Notes in Computer Science, pages 10–18. Springer, 1984. [24] Jan Gerlach and Urs Gasser. Three case studies from Switzerland: E-voting, 2009. [25] Kristian Gjosteen. The Norwegian internet voting protocol. Cryptology ePrint Archive, Report 2013/473, 2013. [26] IETF. RFC 8018. PKCS#5: Password-Based Cryptography Specification Version 2.1, 2017. [27] Information technology – Security techniques – Encryption algorithms – Part 2: Asymmetric ciphers. Standard, International Organization for Standardization, Geneva, CH, 2006. [28] Burt Kaliski. PKCS #5: Password-Based Cryptography Specification Version 2.0. RFC 2898, September 2000. [29] Takeshi Koshiba and Kaoru Kurosawa. Short exponent diffie-hellman problems. In Feng Bao, Robert Deng, and Jianying Zhou, editors, Public Key Cryptography – PKC 2004, pages 173–186, Berlin, Heidelberg, 2004. Springer Berlin Heidelberg. [30] Steve Kremer, Mark Ryan, and Ben Smyth. Election verifiability in electronic voting protocols. In Computer Security - ESORICS 2010, 15th European Symposium on Research in Computer Security, Athens, Greece, September 20-22, 2010. Proceedings, volume 6345, pages 389–404. Springer, 2010. [31] Ueli Maurer. Unifying zero-knowledge proofs of knowledge. In B. Preneel, editor, Advances in Cryptology - AfricaCrypt 2009, Lecture Notes in Computer Science. Springer-Verlag, June 2009. [32] David A. McGrew and John Viega. Flexible and efficient message authentication in hardware and software, 2003. 118
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy [33] K. Moriarty, B. Kaliski, J. Jonsson, and A. Rusch. PKCS #1: RSA Cryptography Specifications Version 2.2. RFC 8017, RFC Editor, November 2016. [34] Moni Naor, Benny Pinkas, and Omer Reingold. Distributed pseudo-random functions and kdcs. In Advances in Cryptology - EUROCRYPT ’99, International Conference on the Theory and Application of Cryptographic Techniques, Prague, Czech Republic, May 2-6, 1999, Proceeding, pages 327–346, 1999. [35] Jesper Buus Nielsen. Separating random oracle proofs from complexity theoretic proofs: The noncommitting encryption case. In Advances in Cryptology - CRYPTO 2002, 22nd Annual International Cryptology Conference, Santa Barbara, California, USA, August 18-22, 2002, Proceedings, pages 111–126, 2002. [36] NIST Computer Security Division. The Keyed-Hash Message Authentication Code (HMAC). FIPS Publication 198-1, National Institute of Standards and Technology, U.S. Department of Commerce, July 2008. [37] NIST Computer Security Division. Digital Signature Standard (DSS). FIPS Publication 186-4, National Institute of Standards and Technology, U.S. Department of Commerce, July 2013. [38] NIST Computer Security Division. SHA-3 Standard: Permutation-Based Hash and Extendable- Output Functions. FIPS Publication 202, National Institute of Standards and Technology, U.S. Department of Commerce, May 2014. [39] NIST Computer Security Division. Secure Hash Standard (SHS). FIPS Publication 180-4, National Institute of Standards and Technology, U.S. Department of Commerce, August 2015. [40] Torben P. Pedersen. Non-interactive and information-theoretic secure verifiable secret sharing. In CRYPTO, pages 129–140, 1991. [41] David Pointcheval and Jacques Stern. Security proofs for signature schemes. In Advances in Cryptology - EUROCRYPT ’96, International Conference on the Theory and Application of Cryptographic Techniques, Saragossa, Spain, May 12-16, 1996, Proceeding, pages 387–398, 1996. [42] Phillip Rogaway. Evaluation of some blockcipher modes of operation. In Technical report - CRYPREC, 2011. [43] Scytl R&S. Scytl sVote. Protocol Specifications. 2018. v13.0. [44] Claus-Peter Schnorr. Efficient identification and signatures for smart cards. In Gilles Brassard, editor, Advances in Cryptology - CRYPTO ’89, 9th Annual International Cryptology Conference, Santa Barbara, California, USA, August 20-24, 1989, Proceedings, volume 435 of Lecture Notes in Computer Science, pages 239–252. Springer, 1989. 119
sVote with Control Components Voting Protocol Computational Proof of Complete Verifiability and Privacy [45] Dominique Unruh. Post-quantum security of fiat-shamir. In Advances in Cryptology - ASIACRYPT 2017 - 23rd International Conference on the Theory and Applications of Cryptology and Information Security, Hong Kong, China, December 3-7, 2017, Proceedings, Part I, pages 65–95, 2017. [46] Paul C. van Oorschot and Michael J. Wiener. On diffie-hellman key agreement with short exponents. In Ueli Maurer, editor, Advances in Cryptology — EUROCRYPT ’96, pages 332–343, Berlin, Heidelberg, 1996. Springer Berlin Heidelberg. [47] Hoeteck Wee. Zero knowledge in the random oracle model, revisited. In Advances in Cryptology - ASIACRYPT 2009, 15th International Conference on the Theory and Application of Cryptology and Information Security, Tokyo, Japan, December 6-10, 2009. Proceedings, pages 417–434, 2009. 120