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;
18pub mod transcript;
19pub mod verifier;
20
21pub use ciphersuite::Spake2PlusCiphersuite;
22pub use error::Spake2PlusError;
23pub use prover::{Prover, ProverOutput, ProverState};
24pub use registration::compute_verifier;
25pub use transcript::Spake2PlusOutput;
26pub use verifier::{Verifier, VerifierState};