Struct PrfUsingHmac
pub struct PrfUsingHmac<'a>(pub &'a dyn Hmac);Available on crate features
tls and tls12 only.Expand description
Implements Prf using a hmac::Hmac.
Tuple Fields§
§0: &'a dyn HmacTrait Implementations§
§impl Prf for PrfUsingHmac<'_>
impl Prf for PrfUsingHmac<'_>
§fn for_key_exchange(
&self,
output: &mut [u8; 48],
kx: Box<dyn ActiveKeyExchange>,
peer_pub_key: &[u8],
label: &[u8],
seed: &[u8],
) -> Result<(), Error>
fn for_key_exchange( &self, output: &mut [u8; 48], kx: Box<dyn ActiveKeyExchange>, peer_pub_key: &[u8], label: &[u8], seed: &[u8], ) -> Result<(), Error>
Computes
PRF(secret, label, seed) using the secret from a completed key exchange. Read moreAuto Trait Implementations§
impl<'a> Freeze for PrfUsingHmac<'a>
impl<'a> !RefUnwindSafe for PrfUsingHmac<'a>
impl<'a> Send for PrfUsingHmac<'a>
impl<'a> Sync for PrfUsingHmac<'a>
impl<'a> Unpin for PrfUsingHmac<'a>
impl<'a> !UnwindSafe for PrfUsingHmac<'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