Move OPAQUE into Iota and harden password authentication
Some checks failed
Validate authentication / Validate authentication (push) Failing after 1s
Some checks failed
Validate authentication / Validate authentication (push) Failing after 1s
This commit is contained in:
parent
e3a16be2f9
commit
fdba718306
27 changed files with 1177 additions and 134 deletions
15
iota-opaque/src/opaque/error.rs
Normal file
15
iota-opaque/src/opaque/error.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#[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,
|
||||
}
|
||||
Loading…
Reference in a new issue