Struct HkdfUsingHmac
pub struct HkdfUsingHmac<'a>(pub &'a dyn Hmac);Available on crate feature
tls only.Expand description
Implementation of Hkdf (and thence HkdfExpander) via hmac::Hmac.
Tuple Fields§
§0: &'a dyn HmacTrait Implementations§
§impl Hkdf for HkdfUsingHmac<'_>
impl Hkdf for HkdfUsingHmac<'_>
§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 more§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 more§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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more