RsaPublicKey constructor
RsaPublicKey(
- RSAPublicKey _key
Implementation
RsaPublicKey(this._key) {
// Validate key size
if (_key.modulus!.bitLength < minRsaKeyBits) {
throw RsaKeyTooSmallException();
}
if (_key.modulus!.bitLength > maxRsaKeyBits) {
throw RsaKeyTooBigException();
}
}