encryptOAEPBytes static method

Future<Uint8List> encryptOAEPBytes(
  1. Uint8List message,
  2. String label,
  3. Hash hash,
  4. String publicKey,
)

Implementation

static Future<Uint8List> encryptOAEPBytes(
    Uint8List message, String label, Hash hash, String publicKey) async {
  var request = EncryptOAEPBytesRequest()
    ..message = message
    ..label = label
    ..publicKey = publicKey
    ..hash = hash;

  return await _bytesResponse("encryptOAEPBytes", request.writeToBuffer());
}