Struct rustls::crypto::tls12::PrfUsingHmac
source · pub struct PrfUsingHmac<'a>(pub &'a dyn Hmac);
Expand description
Implements Prf
using a hmac::Hmac
.
Tuple Fields§
§0: &'a dyn Hmac
Trait 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