Struct rustls::tls13::key_schedule::KeySchedulePreHandshake
source · pub(crate) struct KeySchedulePreHandshake {
ks: KeySchedule,
}
Expand description
Pre-handshake key schedule
The inner KeySchedule
is either constructed without any secrets based on ths HKDF algorithm
or is extracted from a KeyScheduleEarly
. This can then be used to derive the KeyScheduleHandshakeStart
.
Fields§
§ks: KeySchedule
Implementations§
source§impl KeySchedulePreHandshake
impl KeySchedulePreHandshake
pub(crate) fn new(suite: &'static Tls13CipherSuite) -> Self
pub(crate) fn into_handshake(self, secret: &[u8]) -> KeyScheduleHandshakeStart
Trait Implementations§
source§impl From<KeyScheduleEarly> for KeySchedulePreHandshake
impl From<KeyScheduleEarly> for KeySchedulePreHandshake
source§fn from(_: KeyScheduleEarly) -> Self
fn from(_: KeyScheduleEarly) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeySchedulePreHandshake
impl RefUnwindSafe for KeySchedulePreHandshake
impl Send for KeySchedulePreHandshake
impl Sync for KeySchedulePreHandshake
impl Unpin for KeySchedulePreHandshake
impl UnwindSafe for KeySchedulePreHandshake
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