Bouncy Castle Cryptography Library 1.37 | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.bouncycastle.asn1.ASN1Encodable
org.bouncycastle.asn1.pkcs.RSAPrivateKeyStructure
public class RSAPrivateKeyStructure
extends ASN1Encodable
Field Summary |
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable | |
BER , DER |
Constructor Summary | |
| |
Method Summary | |
BigInteger | |
BigInteger | |
BigInteger | |
static RSAPrivateKeyStructure |
|
static RSAPrivateKeyStructure |
|
BigInteger | |
BigInteger | |
BigInteger | |
BigInteger | |
BigInteger | |
int | |
DERObject |
|
Methods inherited from class org.bouncycastle.asn1.ASN1Encodable | |
equals , getDEREncoded , getDERObject , getEncoded , getEncoded , hashCode , toASN1Object |
public RSAPrivateKeyStructure(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger prime1, BigInteger prime2, BigInteger exponent1, BigInteger exponent2, BigInteger coefficient)
public BigInteger getCoefficient()
public BigInteger getExponent1()
public BigInteger getExponent2()
public BigInteger getModulus()
public BigInteger getPrime1()
public BigInteger getPrime2()
public BigInteger getPrivateExponent()
public BigInteger getPublicExponent()
public int getVersion()
public DERObject toASN1Object()
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.
- Overrides:
- toASN1Object in interface ASN1Encodable