decryptOAEP static method

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

Implementation

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

  return RSAResponseHandlers.stringResponse(
      RSABridge.callSync("decryptOAEP", requestBuilder.toBytes()));
}