pub(crate) struct ChaCha20Poly1305;
Trait Implementations§
Source§impl Tls12AeadAlgorithm for ChaCha20Poly1305
impl Tls12AeadAlgorithm for ChaCha20Poly1305
Source§fn decrypter(&self, dec_key: AeadKey, iv: &[u8]) -> Box<dyn MessageDecrypter>
fn decrypter(&self, dec_key: AeadKey, iv: &[u8]) -> Box<dyn MessageDecrypter>
Build a
MessageDecrypter
for the given key/iv. Read moreSource§fn encrypter(
&self,
enc_key: AeadKey,
enc_iv: &[u8],
_: &[u8],
) -> Box<dyn MessageEncrypter>
fn encrypter( &self, enc_key: AeadKey, enc_iv: &[u8], _: &[u8], ) -> Box<dyn MessageEncrypter>
Build a
MessageEncrypter
for the given key/iv and extra key block (which can be used for
improving explicit nonce size security, if needed). Read moreSource§fn key_block_shape(&self) -> KeyBlockShape
fn key_block_shape(&self) -> KeyBlockShape
Return a
KeyBlockShape
that defines how large the key_block
is and how it
is split up prior to calling encrypter()
, decrypter()
and/or extract_keys()
.Source§fn extract_keys(
&self,
key: AeadKey,
iv: &[u8],
_explicit: &[u8],
) -> Result<ConnectionTrafficSecrets, UnsupportedOperationError>
fn extract_keys( &self, key: AeadKey, iv: &[u8], _explicit: &[u8], ) -> Result<ConnectionTrafficSecrets, UnsupportedOperationError>
Auto Trait Implementations§
impl Freeze for ChaCha20Poly1305
impl RefUnwindSafe for ChaCha20Poly1305
impl Send for ChaCha20Poly1305
impl Sync for ChaCha20Poly1305
impl Unpin for ChaCha20Poly1305
impl UnwindSafe for ChaCha20Poly1305
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