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