pub struct HkdfUsingHmac<'a>(pub &'a dyn Hmac);
Expand description
Implementation of Hkdf
(and thence HkdfExpander
) via hmac::Hmac
.
Tuple Fields§
§0: &'a dyn Hmac
Trait Implementations§
source§impl<'a> Hkdf for HkdfUsingHmac<'a>
impl<'a> Hkdf for HkdfUsingHmac<'a>
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