Deoxys
Encrypt with Deoxys-I or the nonce-misuse-resistant Deoxys-II.
import os
from oxcrypto.aead.deoxys import DEOXYS
key = DEOXYS.DEOXYS_II_256.generate()
nonce = os.urandom(15)
sealed = key.encrypt(nonce, b"message", associated_data=b"header")
plaintext = key.decrypt(nonce, sealed, associated_data=b"header")Variants: DEOXYS_I_128, DEOXYS_I_256, DEOXYS_II_128, DEOXYS_II_256.
Deoxys-I uses an 8-byte nonce and Deoxys-II a 15-byte nonce. Keys are 16 bytes for the _128 variants and 32 bytes for the _256 variants.
| Standard | CAESAR competition final portfolio (Deoxys-II); not standardized by NIST or the IETF. |
| Crate | deoxys 0.2.1 |
| Maturity | Stable release. No published audit. |
| MSRV | Builds with Rust 1.88. |
| Zeroization | deoxys with zeroize is written to wipe the expanded subtweakeys on drop. oxcrypto has not verified this independently. |
| Experimental | No |
| Test vectors | deoxys crate test vectors (from the CAESAR submission) |