Interface CipherConstants
- All Known Implementing Classes:
alice,alice_elgamal,alice_joye,alice_veugen,bob,bob_elgamal,bob_joye,bob_veugen,DGKKeyPairGenerator,DGKOperations,DGKPublicKey,ElGamalKeyPairGenerator,ElGamalPrivateKey,ElGamalSignature,GMCipher,GMKeyPairGenerator,NTL,PaillierCipher,PaillierKeyPairGenerator,socialist_millionaires
public interface CipherConstants
This interface defines constants used across various cryptographic operations,
particularly in the context of homomorphic encryption schemes.
It includes key sizes, mathematical constants, and utility values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe number of nanoseconds in one second, used for time tracking.static final intThe certainty parameter for primality testing algorithms.static final BigIntegerThe constant value 8, represented as aBigInteger.static final BigIntegerA prime number with 16 bits, used in ElGamal and DGK encryption schemes.static final BigIntegerThe constant value 5, represented as aBigInteger.static final BigIntegerThe constant value 4, represented as aBigInteger.static final intThe default key size (in bits) for cryptographic operations.static final BigIntegerThe constant value -1, represented as aBigInteger.static final SecureRandomA secure random number generator used for cryptographic purposes.static final BigIntegerThe constant value 3, represented as aBigInteger.static final BigIntegerThe constant value 2, represented as aBigInteger.
-
Field Details
-
KEY_SIZE
static final int KEY_SIZEThe default key size (in bits) for cryptographic operations.- See Also:
-
rnd
A secure random number generator used for cryptographic purposes. -
CERTAINTY
static final int CERTAINTYThe certainty parameter for primality testing algorithms. It controls the error probability of the primality test.- See Also:
-
TWO
The constant value 2, represented as aBigInteger. Used in various mathematical operations. -
FIELD_SIZE
A prime number with 16 bits, used in ElGamal and DGK encryption schemes. -
THREE
The constant value 3, represented as aBigInteger. Used in Jacobi symbol calculations. -
FOUR
The constant value 4, represented as aBigInteger. Used in Jacobi symbol calculations. -
FIVE
The constant value 5, represented as aBigInteger. Used in Jacobi symbol calculations. -
EIGHT
The constant value 8, represented as aBigInteger. Used in Jacobi symbol calculations. -
NEG_ONE
The constant value -1, represented as aBigInteger. Used in mathematical operations and Jacobi symbol calculations. -
BILLION
static final int BILLIONThe number of nanoseconds in one second, used for time tracking.
-