AbstractRSA constructor

AbstractRSA({
  1. RSAPublicKey? publicKey,
  2. RSAPrivateKey? privateKey,
  3. RSAEncoding encoding = RSAEncoding.PKCS1,
  4. 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());