decryptOAEPBytes static method

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

Implementation

static Uint8List decryptOAEPBytes(
    Uint8List ciphertext, String label, Hash hash, String privateKey) {
  var requestBuilder = model.DecryptOaepbytesRequestObjectBuilder(
    privateKey: privateKey,
    ciphertext: ciphertext,
    label: label,
    hash: model.Hash.values[hash.index],
  );

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