decryptData method

Uint8List decryptData(
  1. Uint8List message
)

Decrypt a message which was encrypted using the associated RSAPublicKey

Implementation

Uint8List decryptData(Uint8List message) {
  final cipher = pointy.PKCS1Encoding(pointy.RSAEngine());
  cipher.init(
      false, pointy.PrivateKeyParameter<pointy.RSAPrivateKey>(_privateKey));
  return _processInBlocks(cipher, message);
}