decryptOAEPBytes static method

Future<Uint8List> decryptOAEPBytes(
  1. Uint8List ciphertext,
  2. String label,
  3. Hash hash,
  4. String privateKey,
)

Implementation

static Future<Uint8List> decryptOAEPBytes(
    Uint8List ciphertext, String label, Hash hash, String privateKey) async {
  var request = DecryptOAEPBytesRequest()
    ..ciphertext = ciphertext
    ..label = label
    ..hash = hash
    ..privateKey = privateKey;

  return await _bytesResponse("decryptOAEPBytes", request.writeToBuffer());
}