pub enum SrpError {
GbOutOfRange,
GaOutOfRange,
}Expand description
Error returned when SRP parameter validation fails.
Variants§
GbOutOfRange
Server’s g_b outside (1, p-1). RFC 5054 s2.6: exposes verifier offline.
GaOutOfRange
Client’s ephemeral g_a is outside (1, p-1). Degenerate exponentiation.
Trait Implementations§
Source§impl Error for SrpError
impl Error for SrpError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SrpError
impl RefUnwindSafe for SrpError
impl Send for SrpError
impl Sync for SrpError
impl Unpin for SrpError
impl UnsafeUnpin for SrpError
impl UnwindSafe for SrpError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more