lattice_crypto library
Post-quantum cryptographic primitives for the Lattice Signal protocol.
Provides KEM (ML-KEM/Kyber), SIG (ML-DSA/Dilithium), PRF, and randomness extraction building blocks as described in Hashimoto et al. PQC 2022.
Classes
- CryptoProvider
- Factory for creating cryptographic primitive instances at a given SecurityLevel.
- Ext
- Strong randomness extractor Ext_s(K).
- Kem
- Abstract Key Encapsulation Mechanism (KEM) interface.
- KemEncapsulation
- The result of a KEM encapsulation: a ciphertext and a sharedSecret.
- KemKeyPair
- A KEM key pair consisting of a public (encapsulation) key and a secret (decapsulation) key.
- KemPure
- Pure Dart development KEM implementation for protocol testing.
- Prf
- Pseudorandom function F_K(sid) with counter-mode extension.
- RingSig
- Abstract ring signature interface for SC-DAKE (Strongly Compromised Deniable Authenticated Key Exchange).
- RingSigPure
- Pure Dart development ring signature implementation for protocol testing.
- Sig
- Abstract digital signature interface.
- SigKeyPair
- A signature key pair consisting of a verification (public) key and a signing (secret) key.
- SigPure
- Pure Dart development signature implementation for protocol testing.
Enums
- SecurityLevel
- Security level selection for cryptographic operations.