Module aes_gcm_siv

Source

Functionsยง

decrypt
Decrypts the given ciphertext with the given key and nonce. The key must be 32 bytes long and the nonce must be 12 bytes long. The plaintext is returned as an option vector of bytes.
encrypt
Encrypts the given plaintext with the given key and nonce. The key must be 32 bytes long and the nonce must be 12 bytes long. The ciphertext is returned as a vector of bytes.