Structs§
- Public
Key - X-Wing hybrid KEM encapsulation (public) key.
- Secret
Key - X-Wing hybrid KEM decapsulation (secret) key.
Enums§
- XWing
Error - 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.