Skip to main content

Module xwing

Module xwing 

Source
Expand description

§X-Wing (ML-KEM-768 + X25519)

The hybrid KEM behind libsodium’s crypto_kem_* functions; see crate::classic::crypto_kem_xwing for the construction. The secret key is a 32-byte seed.

Modules§

protectedprotected
Protected memory type aliases

Structs§

KeyPair
An X-Wing key pair.

Functions§

encapsulate
Creates a random shared secret for public_key, returning the X-Wing ciphertext to send to its owner and the shared secret.

Type Aliases§

Ciphertext
Stack-allocated X-Wing ciphertext.
PublicKey
Stack-allocated X-Wing public key.
SecretKey
Stack-allocated X-Wing secret key.
Seed
Stack-allocated X-Wing key-generation seed.
SharedSecret
Stack-allocated X-Wing shared secret.
StackKeyPair
Stack-allocated key pair.