RsaPrivateKey

@Serializable
class RsaPrivateKey(val version: Int, val modulus: BigInt, val publicExponent: BigInt, val privateExponent: BigInt, val prime1: BigInt, val prime2: BigInt, val exponent1: BigInt, val exponent2: BigInt, val coefficient: BigInt)(source)
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
}

OtherPrimeInfos is not supported yet:

OtherPrimeInfos ::= SEQUENCE SIZE(1..MAX) OF OtherPrimeInfo

OtherPrimeInfo ::= SEQUENCE {
prime INTEGER, -- ri
exponent INTEGER, -- di
coefficient INTEGER -- ti
}

Constructors

Link copied to clipboard
constructor(version: Int, modulus: BigInt, publicExponent: BigInt, privateExponent: BigInt, prime1: BigInt, prime2: BigInt, exponent1: BigInt, exponent2: BigInt, coefficient: BigInt)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard