Struct rustls_mbedcrypto_provider::aead::Algorithm
source · pub struct Algorithm { /* private fields */ }Expand description
An AEAD Algorithm.
Trait Implementations§
source§impl Tls12AeadAlgorithm for Algorithm
Available on crate feature tls12 only.
impl Tls12AeadAlgorithm for Algorithm
Available on crate feature
tls12 only.source§fn encrypter(
&self,
enc_key: AeadKey,
iv: &[u8],
extra: &[u8]
) -> Box<dyn MessageEncrypter>
fn encrypter( &self, enc_key: AeadKey, iv: &[u8], extra: &[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 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 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 RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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