pub struct Secrets {
pub(crate) client: OkmBlock,
pub(crate) server: OkmBlock,
suite: &'static Tls13CipherSuite,
quic: &'static dyn Algorithm,
side: Side,
version: Version,
}
Expand description
Secrets used to encrypt/decrypt traffic
Fields§
§client: OkmBlock
Secret used to encrypt packets transmitted by the client
server: OkmBlock
Secret used to encrypt packets transmitted by the server
suite: &'static Tls13CipherSuite
Cipher suite used with these secrets
quic: &'static dyn Algorithm
§side: Side
§version: Version
Implementations§
Source§impl Secrets
impl Secrets
pub(crate) fn new( client: OkmBlock, server: OkmBlock, suite: &'static Tls13CipherSuite, quic: &'static dyn Algorithm, side: Side, version: Version, ) -> Self
Sourcepub fn next_packet_keys(&mut self) -> PacketKeySet
pub fn next_packet_keys(&mut self) -> PacketKeySet
Derive the next set of packet keys
pub(crate) fn update(&mut self)
fn local_remote(&self) -> (&OkmBlock, &OkmBlock)
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