java.lang.Object
net.i2p.crypto.RSAConstants
Constants for RSA.
Field Summary
Modifier and TypeFieldDescriptionprivate static final BigIntegerThe Fermat prime 65537, the usual RSA public exponent.static final RSAKeyGenParameterSpecRSA 1024-bit with F4 exponent.static final RSAKeyGenParameterSpecRSA 2048-bit with F4 exponent.static final RSAKeyGenParameterSpecRSA 3072-bit with F4 exponent.static final RSAKeyGenParameterSpecRSA 4096-bit with F4 exponent.Constructor Summary
ConstructorsConstructorDescriptionEvery key spec and constant below is static, so an instance carries nothing.Method Summary
All MethodsModifier and TypeMethodDescriptionprivate static RSAKeyGenParameterSpecgenSpec(int size, BigInteger exp) Build a key generation parameter spec.
Field Details
F4
The Fermat prime 65537, the usual RSA public exponent.F4_1024_SPEC
RSA 1024-bit with F4 exponent.F4_2048_SPEC
RSA 2048-bit with F4 exponent.F4_3072_SPEC
RSA 3072-bit with F4 exponent.F4_4096_SPEC
RSA 4096-bit with F4 exponent.
Constructor Details
RSAConstants
RSAConstants()Every key spec and constant below is static, so an instance carries nothing.
Method Details
genSpec
Build a key generation parameter spec.- Parameters:
size- the key size in bitsexp- the public exponent- Returns:
- the spec for a key of that size and exponent