decryptBytes static method
Uint8List
decryptBytes(
- Uint8List message,
- String privateKey,
- String passphrase, {
- KeyOptions? options,
- Entity? signed,
Implementation
static Uint8List decryptBytes(
Uint8List message, String privateKey, String passphrase,
{KeyOptions? options, Entity? signed}) {
var requestBuilder = model.DecryptBytesRequestObjectBuilder(
message: message,
privateKey: privateKey,
passphrase: passphrase,
options: OpenPGPRequestBuilders.keyOptionsBuilder(options),
signed: OpenPGPRequestBuilders.entityBuilder(signed),
);
return OpenPGPResponseHandlers.bytesResponse(
OpenPGPBridge.callSync("decryptBytes", requestBuilder.toBytes()));
}