pub struct Secrets {
client: Prk,
server: Prk,
suite: &'static Tls13CipherSuite,
is_client: bool,
}
Expand description
Secrets used to encrypt/decrypt traffic
Fields§
§client: Prk
Secret used to encrypt packets transmitted by the client
server: Prk
Secret used to encrypt packets transmitted by the server
suite: &'static Tls13CipherSuite
Cipher suite used with these secrets
is_client: bool
Implementations§
source§impl Secrets
impl Secrets
pub fn new( client: Prk, server: Prk, suite: &'static Tls13CipherSuite, is_client: bool, ) -> Self
sourcepub fn next_packet_keys(&mut self) -> PacketKeySet
pub fn next_packet_keys(&mut self) -> PacketKeySet
Derive the next set of packet keys
fn update(&mut self)
fn local_remote(&self) -> (&Prk, &Prk)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Secrets
impl RefUnwindSafe for Secrets
impl Send for Secrets
impl Sync for Secrets
impl Unpin for Secrets
impl UnwindSafe for Secrets
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> CloneAny for T
impl<T> CloneAny for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [
TupleList
], of an [Prepend::prepend()
] call,
including the prepended entry.