RSAPrivateKey.this

Construct a private key from the specified parameters.

Parameters

rng RandomNumberGenerator

a random number generator

p BigInt

the first prime

q BigInt

the second prime

e BigInt

the exponent

d BigInt

if specified, this has to be d with exp * d = 1 mod (p - 1, q - 1). Leave it as 0 if you wish the constructor to calculate it.

n BigInt

if specified, this must be n = p * q. Leave it as 0 if you wish to the constructor to calculate it.

Meta