RsaPrivateKey constructor
RsaPrivateKey(
- RSAPrivateKey _key,
- 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();
}
}