Struct s2n_quic_crypto::zero_rtt::ZeroRttKey
source · pub struct ZeroRttKey(/* private fields */);
Implementations§
source§impl ZeroRttKey
impl ZeroRttKey
sourcepub fn new(secret: Prk) -> (Self, ZeroRttHeaderKey)
pub fn new(secret: Prk) -> (Self, ZeroRttHeaderKey)
Create a ZeroRTT cipher suite with a given secret
Trait Implementations§
source§impl Debug for ZeroRttKey
impl Debug for ZeroRttKey
source§impl Key for ZeroRttKey
impl Key for ZeroRttKey
source§fn decrypt(
&self,
packet_number: u64,
header: &[u8],
payload: &mut [u8]
) -> Result<(), Error>
fn decrypt( &self, packet_number: u64, header: &[u8], payload: &mut [u8] ) -> Result<(), Error>
Decrypt a payload
source§fn encrypt(
&self,
packet_number: u64,
header: &[u8],
payload: &mut Buffer<'_>
) -> Result<(), Error>
fn encrypt( &self, packet_number: u64, header: &[u8], payload: &mut Buffer<'_> ) -> Result<(), Error>
Encrypt a payload
source§fn aead_confidentiality_limit(&self) -> u64
fn aead_confidentiality_limit(&self) -> u64
Maximum number of packets a key can encrypt
source§fn aead_integrity_limit(&self) -> u64
fn aead_integrity_limit(&self) -> u64
Maximum number of decryption failures allowed for a cipher_suite
fn cipher_suite(&self) -> CipherSuite
impl ZeroRttKey for ZeroRttKey
Auto Trait Implementations§
impl Freeze for ZeroRttKey
impl RefUnwindSafe for ZeroRttKey
impl Send for ZeroRttKey
impl Sync for ZeroRttKey
impl Unpin for ZeroRttKey
impl UnwindSafe for ZeroRttKey
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