decryptOAEP static method

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

Implementation

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

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