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 Details

    • KEY_SIZE

      static final int KEY_SIZE
      The default key size (in bits) for cryptographic operations.
      See Also:
    • rnd

      static final SecureRandom rnd
      A secure random number generator used for cryptographic purposes.
    • CERTAINTY

      static final int CERTAINTY
      The certainty parameter for primality testing algorithms. It controls the error probability of the primality test.
      See Also:
    • TWO

      static final BigInteger TWO
      The constant value 2, represented as a BigInteger. Used in various mathematical operations.
    • FIELD_SIZE

      static final BigInteger FIELD_SIZE
      A prime number with 16 bits, used in ElGamal and DGK encryption schemes.
    • THREE

      static final BigInteger THREE
      The constant value 3, represented as a BigInteger. Used in Jacobi symbol calculations.
    • FOUR

      static final BigInteger FOUR
      The constant value 4, represented as a BigInteger. Used in Jacobi symbol calculations.
    • FIVE

      static final BigInteger FIVE
      The constant value 5, represented as a BigInteger. Used in Jacobi symbol calculations.
    • EIGHT

      static final BigInteger EIGHT
      The constant value 8, represented as a BigInteger. Used in Jacobi symbol calculations.
    • NEG_ONE

      static final BigInteger NEG_ONE
      The constant value -1, represented as a BigInteger. Used in mathematical operations and Jacobi symbol calculations.
    • BILLION

      static final int BILLION
      The number of nanoseconds in one second, used for time tracking.