Skip to Content
oxcrypto

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.

StandardCAESAR competition final portfolio (Deoxys-II); not standardized by NIST or the IETF.
Cratedeoxys 0.2.1
MaturityStable release. No published audit.
MSRVBuilds with Rust 1.88.
Zeroizationdeoxys with zeroize is written to wipe the expanded subtweakeys on drop. oxcrypto has not verified this independently.
ExperimentalNo
Test vectorsdeoxys crate test vectors (from the CAESAR submission)