struct KeyScheduleSuite {
suite: &'static Tls13CipherSuite,
}
Expand description
This is a component part of KeySchedule
, and groups operations
that do not depend on the root key schedule secret.
Fields§
§suite: &'static Tls13CipherSuite
Implementations§
Source§impl KeyScheduleSuite
impl KeyScheduleSuite
fn set_encrypter(&self, secret: &OkmBlock, common: &mut CommonState)
fn set_decrypter(&self, secret: &OkmBlock, common: &mut CommonState)
fn derive_decrypter(&self, secret: &OkmBlock) -> Box<dyn MessageDecrypter>
Sourcefn sign_finish(&self, base_key: &OkmBlock, hs_hash: &Output) -> Tag
fn sign_finish(&self, base_key: &OkmBlock, hs_hash: &Output) -> Tag
Sign the finished message consisting of hs_hash
using a current
traffic secret.
See RFC 8446 section 4.4.4.
Sourcefn sign_verify_data(&self, base_key: &OkmBlock, hs_hash: &Output) -> Tag
fn sign_verify_data(&self, base_key: &OkmBlock, hs_hash: &Output) -> Tag
Sign the finished message consisting of hs_hash
using the key material
base_key
.
See RFC 8446 section 4.4.4.
Sourcefn derive_next(&self, base_key: &OkmBlock) -> OkmBlock
fn derive_next(&self, base_key: &OkmBlock) -> OkmBlock
Derive the next application traffic secret, returning it.
Sourcefn derive_ticket_psk(&self, rms: &OkmBlock, nonce: &[u8]) -> OkmBlock
fn derive_ticket_psk(&self, rms: &OkmBlock, nonce: &[u8]) -> OkmBlock
Derive the PSK to use given a resumption_master_secret and ticket_nonce.
fn export_keying_material( &self, current_exporter_secret: &OkmBlock, out: &mut [u8], label: &[u8], context: Option<&[u8]>, ) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for KeyScheduleSuite
impl Clone for KeyScheduleSuite
Source§fn clone(&self) -> KeyScheduleSuite
fn clone(&self) -> KeyScheduleSuite
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<&'static Tls13CipherSuite> for KeyScheduleSuite
impl From<&'static Tls13CipherSuite> for KeyScheduleSuite
Source§fn from(suite: &'static Tls13CipherSuite) -> Self
fn from(suite: &'static Tls13CipherSuite) -> Self
Converts to this type from the input type.
impl Copy for KeyScheduleSuite
Auto Trait Implementations§
impl Freeze for KeyScheduleSuite
impl !RefUnwindSafe for KeyScheduleSuite
impl Send for KeyScheduleSuite
impl Sync for KeyScheduleSuite
impl Unpin for KeyScheduleSuite
impl !UnwindSafe for KeyScheduleSuite
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