Skip to main content

pakery_spake2plus/
lib.rs

1//! SPAKE2+ augmented PAKE protocol implementation.
2//!
3//! Implements the SPAKE2+ protocol per RFC 9383 with pluggable ciphersuites.
4//! Unlike balanced SPAKE2, the server (Verifier) stores only a verifier
5//! `(w0, L)` derived from the password — not the password itself.
6
7#![cfg_attr(not(feature = "std"), no_std)]
8#![forbid(unsafe_code)]
9#![warn(missing_docs)]
10
11extern crate alloc;
12
13pub mod ciphersuite;
14pub mod encoding;
15pub mod error;
16pub mod prover;
17pub mod registration;
18#[cfg(test)]
19pub(crate) mod test_mocks;
20pub mod transcript;
21pub mod verifier;
22
23pub use ciphersuite::Spake2PlusCiphersuite;
24pub use error::Spake2PlusError;
25pub use prover::{Prover, ProverOutput, ProverState};
26pub use registration::compute_verifier;
27pub use transcript::Spake2PlusOutput;
28pub use verifier::{Verifier, VerifierState};