java.lang.Object
net.i2p.crypto.CryptoConstants
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DSAParameterSpecDSA 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.static final NativeBigIntegerDSA generator (g).static final NativeBigIntegerDSA prime modulus (p).static final NativeBigIntegerDSA subgroup order (q).static final AlgorithmParameterSpecThis will be org.bouncycastle.jce.spec.ElgamalParameterSpec if BC is available, otherwise it will be net.i2p.crypto.ElgamalParameterSpec.static final NativeBigIntegerElGamal generator (g).static final NativeBigInteger2048-bit MODP Group from RFC 3526.static final ElGamalParameterSpecElGamal 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 (seeEncType.ELGAMAL_2048).Constructor Summary
ConstructorsMethod Summary
Field Details
dsap
DSA prime modulus (p).dsaq
DSA subgroup order (q).dsag
DSA generator (g).elgp
2048-bit MODP Group from RFC 3526.elgg
ElGamal generator (g).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
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 (seeEncType.ELGAMAL_2048).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.