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§
- protected
protected - 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.
- Public
Key - Stack-allocated X-Wing public key.
- Secret
Key - Stack-allocated X-Wing secret key.
- Seed
- Stack-allocated X-Wing key-generation seed.
- Shared
Secret - Stack-allocated X-Wing shared secret.
- Stack
KeyPair - Stack-allocated key pair.