| Modifier and Type | Field and Description |
|---|---|
| private BigInteger | |
| private BigInteger | |
| private BigInteger | |
| private BigInteger | |
| private ASN1Sequence | |
| private BigInteger | |
| private BigInteger | |
| private BigInteger | |
| private BigInteger | |
| private BigInteger |
| Access | Constructor and Description |
|---|---|
| public | RSAPrivateKey(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger prime1, BigInteger prime2, BigInteger exponent1, BigInteger exponent2, BigInteger coefficient)
|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public BigInteger | |
| public BigInteger | |
| public BigInteger | |
| public static RSAPrivateKey | |
| public static RSAPrivateKey | |
| public BigInteger | |
| public BigInteger | |
| public BigInteger | |
| public BigInteger | |
| public BigInteger | |
| public BigInteger | |
| public ASN1Primitive | toASN1Primitive()
Implements abstract org. Implements org. This outputs the key in PKCS1v2 format. |
| coefficient | back to summary |
|---|---|
| private BigInteger coefficient | |
| exponent1 | back to summary |
|---|---|
| private BigInteger exponent1 | |
| exponent2 | back to summary |
|---|---|
| private BigInteger exponent2 | |
| modulus | back to summary |
|---|---|
| private BigInteger modulus | |
| otherPrimeInfos | back to summary |
|---|---|
| private ASN1Sequence otherPrimeInfos | |
| prime1 | back to summary |
|---|---|
| private BigInteger prime1 | |
| prime2 | back to summary |
|---|---|
| private BigInteger prime2 | |
| privateExponent | back to summary |
|---|---|
| private BigInteger privateExponent | |
| publicExponent | back to summary |
|---|---|
| private BigInteger publicExponent | |
| version | back to summary |
|---|---|
| private BigInteger version | |
| RSAPrivateKey | back to summary |
|---|---|
| public RSAPrivateKey(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger prime1, BigInteger prime2, BigInteger exponent1, BigInteger exponent2, BigInteger coefficient) | |
| RSAPrivateKey | back to summary |
|---|---|
| private RSAPrivateKey(ASN1Sequence seq) | |
| getCoefficient | back to summary |
|---|---|
| public BigInteger getCoefficient() | |
| getExponent1 | back to summary |
|---|---|
| public BigInteger getExponent1() | |
| getExponent2 | back to summary |
|---|---|
| public BigInteger getExponent2() | |
| getInstance | back to summary |
|---|---|
| public static RSAPrivateKey getInstance(ASN1TaggedObject obj, boolean explicit) | |
| getInstance | back to summary |
|---|---|
| public static RSAPrivateKey getInstance(Object obj) | |
| getModulus | back to summary |
|---|---|
| public BigInteger getModulus() | |
| getPrime1 | back to summary |
|---|---|
| public BigInteger getPrime1() | |
| getPrime2 | back to summary |
|---|---|
| public BigInteger getPrime2() | |
| getPrivateExponent | back to summary |
|---|---|
| public BigInteger getPrivateExponent() | |
| getPublicExponent | back to summary |
|---|---|
| public BigInteger getPublicExponent() | |
| getVersion | back to summary |
|---|---|
| public BigInteger getVersion() | |
| toASN1Primitive | back to summary |
|---|---|
| public ASN1Primitive toASN1Primitive() Implements abstract org. Implements org. This outputs the key in PKCS1v2 format.
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
otherPrimeInfos OtherPrimeInfos OPTIONAL
}
Version ::= INTEGER { two-prime(0), multi(1) }
(CONSTRAINED BY {-- version must be multi if otherPrimeInfos present --})
This routine is written to output PKCS1 version 2.1, private keys.
| |