Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Election-Tech-Initiative/electionguard-verifier
/ functions
Functions
128 in github.com/Election-Tech-Initiative/electionguard-verifier
⨍
Functions
128
◇
Types & classes
41
↓ 33 callers
Method
pow
Raise one group element to the power of an element of the corresponding exponential group, modulo the group's prime modulus.
src/crypto/group.rs:183
↓ 30 callers
Method
check
(&mut self, cond: bool, msg: &str)
src/errors.rs:14
↓ 28 callers
Function
hash_umc
Hash together a BigUint, a message, and a commitment.
src/crypto/hash.rs:56
↓ 18 callers
Function
generator
()
src/crypto/group.rs:113
↓ 17 callers
Method
as_uint
(&self)
src/crypto/group.rs:52
↓ 17 callers
Function
extended_base_hash
()
src/crypto/elgamal.rs:87
↓ 16 callers
Function
public_key
()
src/crypto/elgamal.rs:83
↓ 11 callers
Function
hash_umcc
Hash together a BigUint, a message, and two commitments.
src/crypto/hash.rs:67
↓ 11 callers
Function
random_exponent
(rng: &mut impl Rng)
src/generate.rs:428
↓ 11 callers
Method
scope
(&'b mut self, desc: &str)
src/errors.rs:26
↓ 7 callers
Method
inverse
Take the multiplicative inverse of the element.
src/crypto/group.rs:136
↓ 6 callers
Function
hash_uee
Hash together a BigUint and two group Elements.
src/crypto/hash.rs:90
↓ 6 callers
Function
prime
()
src/crypto/group.rs:117
↓ 5 callers
Method
check_get
(&mut self, slice: &'b [T], index: usize)
src/errors.rs:20
↓ 5 callers
Method
check_zero
Use this `Proof` to establish that `message` is an encryption of zero under `public_key`.
src/crypto/chaum_pedersen.rs:57
↓ 5 callers
Method
check_zero_one
( &self, public_key: &Element, message: &Message, gen_challenge: impl FnOnce(&
src/crypto/chaum_pedersen/disj.rs:28
↓ 5 callers
Method
is_ok
(&self)
src/crypto/schnorr.rs:117
↓ 5 callers
Method
is_zero
Test if an exponent is zero
src/crypto/group.rs:208
↓ 4 callers
Method
check_equal
Use this `Proof` to establish that `message1` is equal to `message2`.
src/crypto/chaum_pedersen.rs:170
↓ 4 callers
Method
check_exp
Use this `Proof` to establish that `result = base^secret_key`, where `secret_key` is the secret key corresponding to `public_key`.
src/crypto/chaum_pedersen.rs:322
↓ 4 callers
Method
check_plaintext
Use this `Proof` to establish that `message` is an encryption of `plaintext`.
src/crypto/chaum_pedersen.rs:238
↓ 4 callers
Method
h_sub
Homomorphic subtraction of encrypted messages. Converts the encryptions of `a` and `b` into the encryption of `a - b`.
src/crypto/elgamal.rs:69
↓ 4 callers
Function
hash_uints
(xs: &[&BigUint])
src/crypto/hash.rs:50
↓ 4 callers
Method
transcript_zero
Check validity of this transcript for proving that `message` is an encryption of zero.
src/crypto/chaum_pedersen.rs:73
↓ 3 callers
Function
check
(r: &Record)
src/check.rs:10
↓ 3 callers
Function
generate
(rng: &mut impl Rng, e: Election)
src/generate.rs:49
↓ 3 callers
Method
h_add
Homomorphic addition of encrypted messages. Converts the encryptions of `a` and `b` into the encryption of `a + b`.
src/crypto/elgamal.rs:51
↓ 3 callers
Method
to_exponent
(&self)
src/crypto/group.rs:96
↓ 3 callers
Method
transcript_plaintext
Check validity of this transcript for proving that `message` is an encryption of `plaintext`.
src/crypto/chaum_pedersen.rs:257
↓ 2 callers
Method
check
Use this `Proof` to establish that the prover possesses the private key corresponding to `public_key`.
src/crypto/schnorr.rs:38
↓ 2 callers
Function
check_decrypted_value
(errs: &mut ErrorContext, r: &Record, dv: &DecryptedValue)
src/check.rs:176
↓ 2 callers
Function
compute_base_hash
(_parameters: &Parameters)
src/check.rs:290
↓ 2 callers
Function
compute_encrypted_tally
( cast_ballots: &[CastBallot], contest_index: usize, selection_index: usize, )
src/check.rs:269
↓ 2 callers
Function
compute_extended_base_hash
( _base_hash: &BigUint, _trustee_public_keys: &[TrusteePublicKey], )
src/check.rs:306
↓ 2 callers
Function
compute_joint_public_key
(trustee_public_keys: &[TrusteePublicKey])
src/check.rs:294
↓ 2 callers
Function
compute_lagrange_coefficient
( fragments: &[Fragment], // The index of the fragment whose Lagrange coefficient we are computing.
src/check.rs:322
↓ 2 callers
Function
compute_reassembled_share
(fragments: &[Fragment])
src/check.rs:343
↓ 2 callers
Function
compute_selection_sum
(cast_selections: &[CastSelection])
src/check.rs:255
↓ 2 callers
Function
compute_share_product
Compute the decrypted version of `message.ciphertext`, using the product of the `shares`.
src/check.rs:314
↓ 2 callers
Function
generate_cast_ballot
( rng: &mut impl Rng, joint_public_key: &Element, extended_base_hash: &BigUint, b: &Ballot, )
src/generate.rs:179
↓ 2 callers
Function
generate_decrypted_value
( rng: &mut impl Rng, trustees: &TrusteeInfo, extended_base_hash: &BigUint, message: Message,
src/generate.rs:307
↓ 2 callers
Function
prime_minus_one
()
src/crypto/group.rs:121
↓ 2 callers
Method
transcript
Check validity of this transcript for proving possession of the private key corresponding to `public_key`.
src/crypto/schnorr.rs:54
↓ 2 callers
Method
transcript_equal
Check validity of this transcript for proving that `message1` is equal to `message2`.
src/crypto/chaum_pedersen.rs:184
↓ 1 callers
Function
check_record
(errs: &mut ErrorContext, r: &Record)
src/check.rs:20
↓ 1 callers
Function
discrete_log
(element: &Element)
src/generate.rs:405
↓ 1 callers
Function
generate_contest_tallies
( rng: &mut impl Rng, trustee_info: &TrusteeInfo, extended_base_hash: &BigUint, cast_ballots:
src/generate.rs:253
↓ 1 callers
Function
generate_spoiled_ballot
( rng: &mut impl Rng, trustee_info: &TrusteeInfo, extended_base_hash: &BigUint, cast: schema::
src/generate.rs:285
↓ 1 callers
Function
generate_trustee_public_keys
( rng: &mut impl Rng, base_hash: &BigUint, trustee_secrets: &[TrusteeSecrets], )
src/generate.rs:152
↓ 1 callers
Function
generate_trustee_secrets
( rng: &mut impl Rng, num_trustees: usize, threshold: usize, )
src/generate.rs:112
↓ 1 callers
Method
h_neg
Homomorphic negation of encrypted messages. Converts the encryption of `a` into the encryption of `-a`.
src/crypto/elgamal.rs:60
↓ 1 callers
Method
is_one
Test if an exponent is one
src/crypto/group.rs:219
↓ 1 callers
Function
private_key
()
src/crypto/elgamal.rs:79
↓ 1 callers
Function
random_element
(rng: &mut impl Rng)
src/generate.rs:418
↓ 1 callers
Method
resolve
(self, resolver: R)
src/crypto/hash.rs:39
↓ 1 callers
Function
run
()
src/main.rs:47
↓ 1 callers
Method
transcript_exp
Check validity of this transcript for proving that `result = base^secret_key`, where `secret_key` is the secret key corresponding to `public_key`.
src/crypto/chaum_pedersen.rs:342
↓ 1 callers
Method
transcript_zero_one
( &self, public_key: &Element, message: &Message, )
src/crypto/chaum_pedersen/disj.rs:52
Method
add
Add group exponents, modulo the group's prime modulus *minus one*.
src/crypto/group.rs:227
Function
all_primes_parse
()
src/crypto/group.rs:573
Function
deserialize
(deserializer: D)
src/serialize/hash.rs:11
Function
deserialize
(deserializer: D)
src/serialize/big_uint.rs:22
Method
div
Divide a group element by another group element.
src/crypto/group.rs:166
Method
encrypt
Encrypt `m` using `public_key` and a `one_time_secret` key.
src/crypto/elgamal.rs:27
Method
exec
(self, resolver: R)
src/crypto/hash.rs:24
Method
from
(error: io::Error)
src/main.rs:30
Method
from
This succeeds if and only if the given value is strictly less than the prime modulus of the group.
src/crypto/group.rs:470
Method
from_element
(e: Element)
src/crypto/group.rs:100
Method
from_exponent
(e: Exponent)
src/crypto/group.rs:104
Method
gen
Return the generator element of the group `G`.
src/crypto/group.rs:36
Function
gen_pow
(exp: &Exponent)
src/crypto/group.rs:196
Function
hash_uuu
Hash together three BigUints.
src/crypto/hash.rs:85
Method
is_ok
(&self)
src/crypto/chaum_pedersen.rs:421
Method
is_ok
(&self)
src/crypto/chaum_pedersen/disj.rs:154
Function
main
()
src/main.rs:63
Function
main
()
src/bin/encrypt_election.rs:11
Method
mul
Multiply group elements, modulo the group's prime modulus.
src/crypto/group.rs:150
Method
neg
Negate an element of the exponential group.
src/crypto/group.rs:287
Method
new
(errs: &'a mut Vec<String>)
src/errors.rs:7
Method
new
Inject an integer into the group: this wraps modulo the prime modulus if the number is greater than or equal to the modulus.
src/crypto/group.rs:42
Method
one
Return the element one, which is always part of any valid group.
src/crypto/group.rs:129
Function
parse_biguint_hex_or_panic
Parse a hex string (which might contain spaces, tabs, or newlines) into a BigUint or panic if it can't be done (this is meant to be used for hard-code
src/crypto/group.rs:594
Function
prime_modulus_minus_one_correct
()
src/crypto/group.rs:583
Method
prove
( public_key: &Element, secret_key: &Exponent, one_time_exponent: &Exponent, g
src/crypto/schnorr.rs:66
Function
prove_check
()
src/crypto/schnorr.rs:133
Function
prove_check_disj_one
()
src/crypto/chaum_pedersen/disj.rs:197
Function
prove_check_disj_one_flipped
()
src/crypto/chaum_pedersen/disj.rs:257
Function
prove_check_disj_two
()
src/crypto/chaum_pedersen/disj.rs:227
Function
prove_check_disj_zero
()
src/crypto/chaum_pedersen/disj.rs:168
Function
prove_check_equal
()
src/crypto/chaum_pedersen.rs:518
Function
prove_check_equal_extreme_nonce
()
src/crypto/chaum_pedersen.rs:582
Function
prove_check_equal_fail
()
src/crypto/chaum_pedersen.rs:550
Function
prove_check_exp
()
src/crypto/chaum_pedersen.rs:695
Function
prove_check_exp_fail
()
src/crypto/chaum_pedersen.rs:725
Function
prove_check_fail
()
src/crypto/schnorr.rs:154
Function
prove_check_plaintext
()
src/crypto/chaum_pedersen.rs:612
Function
prove_check_plaintext_extreme_nonce
()
src/crypto/chaum_pedersen.rs:668
Function
prove_check_plaintext_fail
()
src/crypto/chaum_pedersen.rs:640
Function
prove_check_zero
()
src/crypto/chaum_pedersen.rs:442
Function
prove_check_zero_extreme_nonce
()
src/crypto/chaum_pedersen.rs:493
next →
1–100 of 128, ranked by callers