pub struct Secrets { /* private fields */ }Expand description
The 1-RTT secrets, for key updates.
Implementations§
Source§impl Secrets
impl Secrets
Sourcepub fn new(
suite: CipherSuite,
version: u32,
is_client: bool,
client: Vec<u8>,
server: Vec<u8>,
) -> Secrets
pub fn new( suite: CipherSuite, version: u32, is_client: bool, client: Vec<u8>, server: Vec<u8>, ) -> Secrets
Key-update state from the current 1-RTT traffic secrets.
Sourcepub fn next_packet_keys(&mut self) -> (PacketKey, PacketKey)
pub fn next_packet_keys(&mut self) -> (PacketKey, PacketKey)
Advances both secrets with the key-update label and returns the next generation of packet keys as (local, remote). Header protection keys never change.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Secrets
impl Freeze for Secrets
impl Move for Secrets
impl RefUnwindSafe for Secrets
impl Send for Secrets
impl Sync for Secrets
impl Unpin for Secrets
impl UnsafeUnpin 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