AbstractRSA constructor
AbstractRSA({
- RSAPublicKey? publicKey,
- RSAPrivateKey? privateKey,
- RSAEncoding encoding = RSAEncoding.PKCS1,
- RSADigest digest = RSADigest.SHA1,
Implementation
AbstractRSA({
this.publicKey,
this.privateKey,
RSAEncoding encoding = RSAEncoding.PKCS1,
RSADigest digest = RSADigest.SHA1,
}) : this._cipher = encoding == RSAEncoding.OAEP
? digest == RSADigest.SHA1
? OAEPEncoding(RSAEngine())
: OAEPEncoding.withSHA256(RSAEngine())
: PKCS1Encoding(RSAEngine());