RsaPrivateKey

constructor(publicKey: RsaPublicKey, privateExponent: ByteArray, p: ByteArray? = null, q: ByteArray? = null, dp: ByteArray? = null, dq: ByteArray? = null, qInv: ByteArray? = null)

Parameters

publicKey

the corresponding public key.

privateExponent

the private exponent (d) as an unsigned big-endian byte array.

p

the first prime factor (optional).

q

the second prime factor (optional).

dp

the first factor CRT exponent d mod (p-1) (optional).

dq

the second factor CRT exponent d mod (q-1) (optional).

qInv

the CRT coefficient (inverse of q) mod p (optional).


constructor(modulus: ByteArray, publicExponent: ByteArray, privateExponent: ByteArray, p: ByteArray? = null, q: ByteArray? = null, dp: ByteArray? = null, dq: ByteArray? = null, qInv: ByteArray? = null)