pub struct HkdfParams<const S: usize = 16> {
pub salt: Option<Salt<S>>,
pub info: Option<Zeroizing<Vec<u8>>>,
}
Expand description
Parameters for HKDF
Fields§
§salt: Option<Salt<S>>
Optional default salt (can be overridden in derive_key)
info: Option<Zeroizing<Vec<u8>>>
Optional default info (context, can be overridden in derive_key)
Trait Implementations§
Source§impl<const S: usize> Clone for HkdfParams<S>
impl<const S: usize> Clone for HkdfParams<S>
Source§fn clone(&self) -> HkdfParams<S>
fn clone(&self) -> HkdfParams<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<const S: usize> Debug for HkdfParams<S>
impl<const S: usize> Debug for HkdfParams<S>
Source§impl<const S: usize> Default for HkdfParams<S>
impl<const S: usize> Default for HkdfParams<S>
Auto Trait Implementations§
impl<const S: usize> Freeze for HkdfParams<S>
impl<const S: usize> RefUnwindSafe for HkdfParams<S>
impl<const S: usize> Send for HkdfParams<S>
impl<const S: usize> Sync for HkdfParams<S>
impl<const S: usize> Unpin for HkdfParams<S>
impl<const S: usize> UnwindSafe for HkdfParams<S>
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