signPKCS1v15 static method

Future<String> signPKCS1v15(
  1. String message,
  2. Hash hash,
  3. String privateKey
)

Implementation

static Future<String> signPKCS1v15(
    String message, Hash hash, String privateKey) async {
  var requestBuilder = model.SignPkcs1v15RequestObjectBuilder(
    message: message,
    privateKey: privateKey,
    hash: model.Hash.values[hash.index],
  );

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