コード例 #1
0
 internal static extern Status Make(
     ulong number_of_guardians,
     ulong quorum,
     ElementModP.ElementModPHandle elgamal_public_key,
     ElementModQ.ElementModQHandle commitment_hash,
     ElementModQ.ElementModQHandle manifest_hash,
     out CiphertextElectionContextHandle handle);
コード例 #2
0
 internal static extern Status CompactBallot(
     PlaintextBallot.PlaintextBallotHandle plaintext,
     InternalManifest.InternalManifestHandle internal_manifest,
     CiphertextElectionContext.CiphertextElectionContextHandle context,
     ElementModQ.ElementModQHandle ballot_code_seed,
     bool shouldVerifyProofs,
     out CompactCiphertextBallot.CompactCiphertextBallotHandle handle);
コード例 #3
0
 internal static extern Status GetNonce(
     CiphertextBallotSelectionHandle handle,
     out ElementModQ.ElementModQHandle nonce);
コード例 #4
0
 internal static extern Status GetCryptoExtendedBaseHash(
     CiphertextElectionContextHandle handle,
     out ElementModQ.ElementModQHandle crypto_extended_base_hash);
コード例 #5
0
 internal static extern Status GetBallotCode(
     CiphertextBallotHandle handle,
     out ElementModQ.ElementModQHandle ballot_code_ref);
コード例 #6
0
 internal static extern Status GetCryptoHash(
     CiphertextBallotHandle handle,
     out ElementModQ.ElementModQHandle hash_ref);
コード例 #7
0
 internal static extern Status Encrypt(
     ulong plaintext,
     ElementModQ.ElementModQHandle nonce,
     ElementModP.ElementModPHandle public_key,
     out ElGamalCiphertext.ElGamalCiphertextHandle handle);
コード例 #8
0
 internal static extern Status GetCryptoHash(
     CiphertextBallotContestHandle handle,
     out ElementModQ.ElementModQHandle cryptoHash);
コード例 #9
0
 internal static extern Status GetCryptoHash(
     ElGamalCiphertextHandle handle,
     out ElementModQ.ElementModQHandle crypto_base_hash);
コード例 #10
0
 internal static extern Status DecryptWithSecret(
     ElGamalCiphertextHandle handle,
     ElementModQ.ElementModQHandle secret_key,
     ref ulong plaintext);
コード例 #11
0
 internal static extern Status GetSecretKey(
     ElGamalKeyPairHandle handle,
     out ElementModQ.ElementModQHandle out_secret_key);
コード例 #12
0
 internal static extern Status New(
     ElementModQ.ElementModQHandle in_secret_key,
     out ElGamalKeyPairHandle handle);
コード例 #13
0
 internal static extern Status TWO_MOD_Q(out ElementModQ.ElementModQHandle handle);
コード例 #14
0
 internal static extern bool IsValidEncryption(
     CiphertextBallotSelectionHandle handle,
     ElementModQ.ElementModQHandle encryption_seed,
     ElementModP.ElementModPHandle public_key,
     ElementModQ.ElementModQHandle crypto_extended_base_hash);
コード例 #15
0
 internal static extern Status CryptoHash(
     ManifestHandle handle,
     out ElementModQ.ElementModQHandle crypto_hash);
コード例 #16
0
 internal static extern Status GetDescriptionHash(
     CiphertextBallotContestHandle handle,
     out ElementModQ.ElementModQHandle description_hash);
コード例 #17
0
 internal static extern Status GetManifestHash(
     InternalManifestHandle handle,
     out ElementModQ.ElementModQHandle manifest_hash);
コード例 #18
0
 internal static extern Status GetManifestHash(
     CiphertextBallotHandle handle,
     out ElementModQ.ElementModQHandle manifest_hash_ref);
コード例 #19
0
 internal static extern Status GetCommitmentHash(
     CiphertextElectionContextHandle handle,
     out ElementModQ.ElementModQHandle commitment_hash);
コード例 #20
0
 internal static extern Status GetNonce(
     CiphertextBallotHandle handle,
     out ElementModQ.ElementModQHandle nonce_ref);
コード例 #21
0
 internal static extern Status GetManifestHash(
     CiphertextElectionContextHandle handle,
     out ElementModQ.ElementModQHandle manifest_hash);
コード例 #22
0
 internal static extern bool IsValidEncryption(
     CiphertextBallotHandle handle,
     ElementModQ.ElementModQHandle manifest_hash,
     ElementModP.ElementModPHandle public_key,
     ElementModQ.ElementModQHandle crypto_extended_base_hash);
コード例 #23
0
 internal static extern Status GetHash(
     EncryptionDeviceHandle handle,
     out ElementModQ.ElementModQHandle device_hash);