Skip to main content

pakery_opaque/
lib.rs

1//! OPAQUE augmented PAKE protocol (RFC 9807).
2//!
3//! OPAQUE allows a client to authenticate to a server using a password
4//! without the server ever learning the password. The server stores only
5//! a registration record derived from the password.
6
7#![cfg_attr(not(feature = "std"), no_std)]
8#![forbid(unsafe_code)]
9#![warn(missing_docs, clippy::all)]
10
11extern crate alloc;
12
13pub mod ciphersuite;
14pub mod envelope;
15pub mod error;
16pub mod key_derivation;
17pub mod login;
18pub mod messages;
19pub mod oprf;
20pub mod registration;
21pub mod server_setup;
22
23pub use ciphersuite::OpaqueCiphersuite;
24pub use error::OpaqueError;
25pub use login::{ClientLogin, ClientLoginState, ServerLogin, ServerLoginState};
26pub use messages::{
27    CredentialResponse, Envelope, RegistrationRecord, RegistrationRequest, RegistrationResponse,
28    KE1, KE2, KE3,
29};
30pub use registration::{ClientRegistration, ClientRegistrationState, ServerRegistration};
31pub use server_setup::ServerSetup;