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 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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes