pub struct HkdfUsingHmac<'a>(pub &'a dyn Hmac);Expand description
Implementation of Hkdf (and thence HkdfExpander) via hmac::Hmac.
Tuple Fields§
§0: &'a dyn HmacTrait Implementations§
Source§impl Hkdf for HkdfUsingHmac<'_>
 
impl Hkdf for HkdfUsingHmac<'_>
Source§fn extract_from_zero_ikm(&self, salt: Option<&[u8]>) -> Box<dyn HkdfExpander>
 
fn extract_from_zero_ikm(&self, salt: Option<&[u8]>) -> Box<dyn HkdfExpander>
HKDF-Extract(salt, 0_HashLen) Read moreSource§fn extract_from_secret(
    &self,
    salt: Option<&[u8]>,
    secret: &[u8],
) -> Box<dyn HkdfExpander>
 
fn extract_from_secret( &self, salt: Option<&[u8]>, secret: &[u8], ) -> Box<dyn HkdfExpander>
HKDF-Extract(salt, secret) Read moreSource§fn expander_for_okm(&self, okm: &OkmBlock) -> Box<dyn HkdfExpander>
 
fn expander_for_okm(&self, okm: &OkmBlock) -> Box<dyn HkdfExpander>
Build a 
HkdfExpander using okm as the secret PRK.Auto Trait Implementations§
impl<'a> Freeze for HkdfUsingHmac<'a>
impl<'a> !RefUnwindSafe for HkdfUsingHmac<'a>
impl<'a> Send for HkdfUsingHmac<'a>
impl<'a> Sync for HkdfUsingHmac<'a>
impl<'a> Unpin for HkdfUsingHmac<'a>
impl<'a> !UnwindSafe for HkdfUsingHmac<'a>
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