decrypt method Null safety
- RsaPrivateKey key,
- Uint8List ciphertext
Implementation
static Uint8List decrypt(RsaPrivateKey key, Uint8List ciphertext) {
final decryptor = OAEPEncoding(RSAEngine())
..init(false, PrivateKeyParameter<RSAPrivateKey>(key));
return processInBlocks(decryptor, ciphertext);
}