net.i2p.crypto
Class CryptoConstants

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

public class CryptoConstants
extends Object

Prime for ElGamal from http://tools.ietf.org/html/rfc3526 Primes for DSA: Generated by TheCrypto http://article.gmane.org/gmane.comp.security.invisiblenet.iip.devel/343 See also: ECConstants, RSAConstants


Field Summary
static DSAParameterSpec DSA_SHA1_SPEC
           
static BigInteger dsag
           
static BigInteger dsap
           
static BigInteger dsaq
           
static AlgorithmParameterSpec ELGAMAL_2048_SPEC
          This will be org.bouncycastle.jce.spec.ElgamalParameterSpec if BC is available, otherwise it will be net.i2p.crypto.ElgamalParameterSpec
static BigInteger elgg
           
static BigInteger elgp
          2048-bit MODP Group from RFC 3526
 
Constructor Summary
CryptoConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dsap

public static final BigInteger dsap

dsaq

public static final BigInteger dsaq

dsag

public static final BigInteger dsag

elgp

public static final BigInteger elgp
2048-bit MODP Group from RFC 3526


elgg

public static final BigInteger elgg

DSA_SHA1_SPEC

public static final DSAParameterSpec DSA_SHA1_SPEC
Since:
0.9.9

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

Since:
0.9.18
Constructor Detail

CryptoConstants

public CryptoConstants()