Skip to main content
Module xaes_256_gcm
bitwarden_
crypto_
primitives
4.0.0
Module xaes_
256_
gcm
Module Items
Constants
Functions
In crate bitwarden_
crypto_
primitives
bitwarden_crypto_primitives
Module
xaes_
256_
gcm
Copy item path
Source
Expand description
XAES-256-GCM (C2SP).
Constants
§
KEY_LEN
Key length in bytes.
NONCE_
LEN
Nonce length in bytes.
TAG_LEN
Authentication tag length in bytes.
Functions
§
decrypt
Verifies and decrypts
ciphertext || tag
.
encrypt
Encrypts
plaintext
and authenticates it with
aad
. Returns
ciphertext || tag
.