java.lang.Object
net.i2p.crypto.CryptoConstants

public final class CryptoConstantsextends Object
Prime for ElGamal from RFC 3526 Primes for DSA: Generated by TheCrypto.

See also: ECConstants, RSAConstants.

  • Field Details

    • dsap

      public static final NativeBigInteger dsap
      DSA prime modulus (p).
    • dsaq

      public static final NativeBigInteger dsaq
      DSA subgroup order (q).
    • dsag

      public static final NativeBigInteger dsag
      DSA generator (g).
    • elgp

      public static final NativeBigInteger elgp
      2048-bit MODP Group from RFC 3526.
    • elgg

      public static final NativeBigInteger elgg
      ElGamal generator (g).
    • DSA_SHA1_SPEC

      public static final DSAParameterSpec DSA_SHA1_SPEC
      DSA parameter spec binding the primes and generator above, supplied to the JCA/JCE engines that sign and verify with the SHA-1 variant of DSA.
    • I2P_ELGAMAL_2048_SPEC

      public static final ElGamalParameterSpec I2P_ELGAMAL_2048_SPEC
      ElGamal parameter spec binding the RFC 3526 2048-bit MODP prime and the generator 2, used as the domain parameters for I2P ElGamal key generation and encryption (see EncType.ELGAMAL_2048).
    • ELGAMAL_2048_SPEC

      public static final AlgorithmParameterSpec ELGAMAL_2048_SPEC
      This will be org.bouncycastle.jce.spec.ElgamalParameterSpec if BC is available, otherwise it will be net.i2p.crypto.ElgamalParameterSpec.
  • Constructor Details

    • CryptoConstants

      public CryptoConstants()
      Constructor. The primes and parameter specs below are compile-time constants, so an instance holds nothing and they are read statically.