signBytes static method

Uint8List signBytes(
  1. Uint8List message,
  2. String privateKey,
  3. String passphrase, {
  4. KeyOptions? options,
})

Implementation

static Uint8List signBytes(
    Uint8List message, String privateKey, String passphrase,
    {KeyOptions? options}) {
  var requestBuilder = model.SignBytesRequestObjectBuilder(
    message: message,
    passphrase: passphrase,
    privateKey: privateKey,
    options: OpenPGPRequestBuilders.keyOptionsBuilder(options),
  );

  return OpenPGPResponseHandlers.bytesResponse(
      OpenPGPBridge.callSync("signBytes", requestBuilder.toBytes()));
}