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 requestBuilder = model.DecryptOaepbytesRequestObjectBuilder(
    privateKey: privateKey,
    ciphertext: ciphertext,
    label: label,
    hash: model.Hash.values[hash.index],
  );

  return RSABridge.call("decryptOAEPBytes", requestBuilder.toBytes())
      .then(RSAResponseHandlers.bytesResponse);
}