Skip to main content

Module xwing

Module xwing 

Source

Structs§

PublicKey
X-Wing hybrid KEM encapsulation (public) key.
SecretKey
X-Wing hybrid KEM decapsulation (secret) key.

Enums§

XWingError
X-Wing error type.

Constants§

CIPHERTEXT_SIZE
Size of the X-Wing ciphertext in bytes (ML-KEM-768 ct + X25519 shared secret = 1120).
PUBLIC_KEY_SIZE
Size of the X-Wing public key in bytes (ML-KEM-768 pk + X25519 pk = 1216).
SECRET_KEY_SIZE
Size of the X-Wing secret key (32 bytes).
SHARED_SECRET_SIZE
Size of the X-Wing shared secret (32 bytes).

Functions§

generate_keypair
Generate an X-Wing keypair.