encrypt method

Ciphertext encrypt(
  1. Plaintext plaintext
)

Encrypts the plaintext message.

Implementation

Ciphertext encrypt(Plaintext plaintext) {
  final ptr = _c_encrypt(library, plaintext.obj);
  raiseForStatus();
  return Ciphertext.fromPointer(backend, ptr);
}