HkdfLabelSha256

Struct HkdfLabelSha256 

Source
pub struct HkdfLabelSha256;
Expand description

HKDF Labels with SHA256 which are used in HKDF-Extract-Expand Key through TLS 1.3 Key Schedule

Implementations§

Source§

impl HkdfLabelSha256

Source

pub fn tls13_c_e_traffic(ctx: &[u8; 32]) -> [u8; 54]

Source

pub const fn tls13_res_binder() -> [u8; 20]

Source

pub fn tls13_derived_secret_sha256() -> [u8; 49]

Used for “derived” Application keys phase (same as early_secret feeding handshake)

Source

pub fn tls13_early_secret_sha256() -> [u8; 49]

Early secret has empty SHA256 ctx given no PSK

Source

pub fn tls13_hanshake_finished(hash_len: u8) -> [u8; 18]

Source

pub fn tls13_secret_key(key_len: u8) -> [u8; 13]

Source

pub fn tls13_secret_iv(iv_len: u8) -> [u8; 12]

Source

pub fn tls13_client_handshake_traffic(ctx: &[u8; 32]) -> [u8; 54]

Handshake traffic uses Client+ServerHello Transcript hash for ctx

Source

pub fn tls13_server_handshake_traffic(ctx: &[u8; 32]) -> [u8; 54]

Source

pub fn tls13_client_application_traffic(ctx: &[u8; 32]) -> [u8; 54]

Source

pub fn tls13_server_application_traffic(ctx: &[u8; 32]) -> [u8; 54]

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.