pub enum HkdfFailureKind {
InvalidIkmLength,
InvalidDomainTagLength,
InvalidDomainTagByte,
LengthOverflow,
InvalidOutputLength,
ExpandFailed,
}Expand description
Specific reason an HKDF operation failed.
Variants§
InvalidIkmLength
The input key material had an unacceptable length.
InvalidDomainTagLength
The domain-separation tag had an unacceptable length.
InvalidDomainTagByte
The domain-separation tag contained an invalid byte.
LengthOverflow
An input length exceeded the representable range.
InvalidOutputLength
The requested output length was unacceptable.
ExpandFailed
The HKDF expand step did not succeed.
Trait Implementations§
Source§impl Clone for HkdfFailureKind
impl Clone for HkdfFailureKind
Source§fn clone(&self) -> HkdfFailureKind
fn clone(&self) -> HkdfFailureKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HkdfFailureKind
Source§impl Debug for HkdfFailureKind
impl Debug for HkdfFailureKind
Source§impl Display for HkdfFailureKind
impl Display for HkdfFailureKind
impl Eq for HkdfFailureKind
Source§impl PartialEq for HkdfFailureKind
impl PartialEq for HkdfFailureKind
impl StructuralPartialEq for HkdfFailureKind
Auto Trait Implementations§
impl Freeze for HkdfFailureKind
impl RefUnwindSafe for HkdfFailureKind
impl Send for HkdfFailureKind
impl Sync for HkdfFailureKind
impl Unpin for HkdfFailureKind
impl UnsafeUnpin for HkdfFailureKind
impl UnwindSafe for HkdfFailureKind
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