Skip to main contentModule xchacha20_poly1305
Source Expand description
- KEY_LEN
- Key length in bytes.
- NONCE_LEN
- Nonce length in bytes.
- TAG_LEN
- Authentication tag length in bytes.
- decrypt
- Verifies and decrypts
ciphertext || tag. - encrypt
- Encrypts
plaintext and authenticates it with aad. Returns ciphertext || tag.