RsaPrivateKey constructor

RsaPrivateKey(
  1. RSAPrivateKey _key,
  2. RsaPublicKey _publicKey
)

Implementation

RsaPrivateKey(this._key, this._publicKey) {
  // Validate key size
  if (_key.modulus!.bitLength < minRsaKeyBits) {
    throw RsaKeyTooSmallException();
  }
  if (_key.modulus!.bitLength > maxRsaKeyBits) {
    throw RsaKeyTooBigException();
  }
}