pub(crate) struct GcmAlgorithm(&'static Algorithm);Tuple Fields§
§0: &'static AlgorithmTrait Implementations§
Source§impl Tls12AeadAlgorithm for GcmAlgorithm
impl Tls12AeadAlgorithm for GcmAlgorithm
Source§fn decrypter(
&self,
dec_key: AeadKey,
dec_iv: &[u8],
) -> Box<dyn MessageDecrypter>
fn decrypter( &self, dec_key: AeadKey, dec_iv: &[u8], ) -> Box<dyn MessageDecrypter>
Build a
MessageDecrypter for the given key/iv. Read moreSource§fn encrypter(
&self,
enc_key: AeadKey,
write_iv: &[u8],
explicit: &[u8],
) -> Box<dyn MessageEncrypter>
fn encrypter( &self, enc_key: AeadKey, write_iv: &[u8], explicit: &[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,
write_iv: &[u8],
explicit: &[u8],
) -> Result<ConnectionTrafficSecrets, UnsupportedOperationError>
fn extract_keys( &self, key: AeadKey, write_iv: &[u8], explicit: &[u8], ) -> Result<ConnectionTrafficSecrets, UnsupportedOperationError>
Auto Trait Implementations§
impl Freeze for GcmAlgorithm
impl RefUnwindSafe for GcmAlgorithm
impl Send for GcmAlgorithm
impl Sync for GcmAlgorithm
impl Unpin for GcmAlgorithm
impl UnsafeUnpin for GcmAlgorithm
impl UnwindSafe for GcmAlgorithm
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