Xoodyak
Encrypt with the Xoodyak lightweight AEAD.
import os
from oxcrypto.aead.xoodyak import XOODYAK
key = XOODYAK.XOODYAK.generate()
nonce = os.urandom(16)
sealed = key.encrypt(nonce, b"message", associated_data=b"header")
plaintext = key.decrypt(nonce, sealed, associated_data=b"header")Variants: XOODYAK.
Keys, nonces and tags are 16 bytes. Empty plaintexts are rejected with ValueError: xoodyak 0.8.5 skips the encryption block for empty input, so its output would not match the NIST LWC reference. STREAM is not useful with empty segments for the same reason.
On x86-64, xoodyak 0.8.5 always uses SSSE3 instructions and does not check the CPU at run time. oxcrypto checks for SSSE3 first and raises RuntimeError on a CPU without it (pre-2006 processors and some emulators) instead of letting the process crash. Other architectures use the portable code.
| Standard | NIST Lightweight Cryptography finalist; NIST selected Ascon instead, so Xoodyak is not standardized. |
| Crate | xoodyak 0.8.5 |
| Maturity | Stable release. No published audit. |
| MSRV | Builds with Rust 1.88. |
| Zeroization | oxcrypto holds the key in zeroize::Zeroizing. xoodyak is written to wipe the Xoodoo permutation state on drop. oxcrypto has not verified this independently. |
| Experimental | Yes |
| Test vectors | NIST LWC finalist KAT LWC_AEAD_KAT_128_128.txt (non-empty plaintexts) |