iota/iota-opaque/src/opaque/error.rs
Alex-Emmet fdba718306
Some checks failed
Validate authentication / Validate authentication (push) Failing after 1s
Move OPAQUE into Iota and harden password authentication
2026-10-02 21:29:04 +02:00

15 lines
414 B
Rust

#[derive(Debug, thiserror::Error)]
pub enum OpaqueIntegrationError {
#[error("invalid OPAQUE exchange: {0}")]
Opaque(String),
#[error("OPAQUE context field is too large")]
FieldTooLarge,
}
#[derive(Debug, thiserror::Error)]
pub enum LoginFinishError {
#[error("invalid OPAQUE finalization message")]
InvalidMessage,
#[error("OPAQUE authentication failed")]
AuthenticationFailed,
}