jam.utils.xchacha20poly1305¶
xchacha20poly1305
¶
Functions:
| Name | Description |
|---|---|
xchacha20poly1305_decrypt |
Decrypt counterpart. |
xchacha20poly1305_encrypt |
Emulates XChaCha20-Poly1305 AEAD using cryptography's ChaCha20Poly1305. |
xchacha20poly1305_decrypt
¶
xchacha20poly1305_decrypt(
key: bytes, nonce: bytes, ciphertext: bytes, aad: bytes
) -> bytes
Decrypt counterpart.
xchacha20poly1305_encrypt
¶
xchacha20poly1305_encrypt(
key: bytes, nonce: bytes, plaintext: bytes, aad: bytes
) -> bytes
Emulates XChaCha20-Poly1305 AEAD using cryptography's ChaCha20Poly1305.