gnu.crypto.pki.provider
class GnuRSAPrivateKey extends Object implements RSAPrivateCrtKey
Constructor Summary | |
---|---|
GnuRSAPrivateKey(RSAPrivateCrtKeySpec spec) |
Method Summary | |
---|---|
String | getAlgorithm() |
BigInteger | getCrtCoefficient() |
byte[] | getEncoded()
The encoded form is:
RSAPrivateKey ::= SEQUENCE { version Version, modulus INTEGER, -- n publicExponent INTEGER, -- e privateExponent INTEGER, -- d prime1 INTEGER, -- p prime2 INTEGER, -- q exponent1 INTEGER, -- d mod (p-1) exponent2 INTEGER, -- d mod (q-1) coefficient INTEGER -- (inverse of q) mod p } Which is in turn encoded in a PrivateKeyInfo structure from PKCS#8. |
String | getFormat() |
BigInteger | getModulus() |
BigInteger | getPrimeExponentP() |
BigInteger | getPrimeExponentQ() |
BigInteger | getPrimeP() |
BigInteger | getPrimeQ() |
BigInteger | getPrivateExponent() |
BigInteger | getPublicExponent() |
RSAPrivateKey ::= SEQUENCE { version Version, modulus INTEGER, -- n publicExponent INTEGER, -- e privateExponent INTEGER, -- d prime1 INTEGER, -- p prime2 INTEGER, -- q exponent1 INTEGER, -- d mod (p-1) exponent2 INTEGER, -- d mod (q-1) coefficient INTEGER -- (inverse of q) mod p }
Which is in turn encoded in a PrivateKeyInfo structure from PKCS#8.