pub struct PrfUsingHmac<'a>(pub &'a dyn Hmac);Available on crate feature
tls12 only.Expand description
Implements Prf using a hmac::Hmac.
Tuple Fields§
§0: &'a dyn HmacTrait Implementations§
Source§impl Prf for PrfUsingHmac<'_>
impl Prf for PrfUsingHmac<'_>
Source§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
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