pub enum DeriveError {
InvalidPublic,
InvalidSecret,
InvalidSecretLength,
InvalidPublicLength,
InvalidDeriveLength,
Unknown,
}Expand description
An error derivation of Diffie-Hellman shared secret.
Variants§
InvalidPublic
Public value was invalid
InvalidSecret
Secret value was invalid
InvalidSecretLength
The provided secret value buffer has the wrong length
InvalidPublicLength
The provided public value buffer has the wrong length
InvalidDeriveLength
The provided shared secret buffer has the wrong length
Unknown
An unknown error occurred
Trait Implementations§
Source§impl Debug for DeriveError
impl Debug for DeriveError
Source§impl Display for DeriveError
impl Display for DeriveError
Source§impl From<DeriveError> for DeriveError
impl From<DeriveError> for DeriveError
Source§fn from(value: DeriveError) -> Self
fn from(value: DeriveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeriveError
impl RefUnwindSafe for DeriveError
impl Send for DeriveError
impl Sync for DeriveError
impl Unpin for DeriveError
impl UnsafeUnpin for DeriveError
impl UnwindSafe for DeriveError
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