encrypt


Description:

public uint8[]? encrypt (uint8[] plaintext, out ErrEncryption error)

Encrypt a plain text with a key produced by PassKey.PassKey.derive or PassKey.PassKey.derive_with_salt.

The output array must be at least plaintext.length + pass_encryption_extra_length bytes long.

Parameters:

plaintext

A byte array of length plaintext.length.

Returns:

ciphertext on success.