pub struct TweakAead { /* private fields */ }Expand description
Tweak AEAD — registry / HPKE-facing type.
Implementations§
Trait Implementations§
Source§impl AeadDecryptSemantic for TweakAead
impl AeadDecryptSemantic for TweakAead
Source§fn decrypt_semantic(
&self,
key: &AeadKey,
nonce: &Nonce,
ciphertext: &[u8],
associated_data: Option<&[u8]>,
) -> Result<DecryptSemanticOutcome>
fn decrypt_semantic( &self, key: &AeadKey, nonce: &Nonce, ciphertext: &[u8], associated_data: Option<&[u8]>, ) -> Result<DecryptSemanticOutcome>
Decrypt and classify the outcome without overloading
Result for auth failure.Source§impl AeadPlugin for TweakAead
impl AeadPlugin for TweakAead
Source§fn metadata(&self) -> &'static AeadMetadata
fn metadata(&self) -> &'static AeadMetadata
Get algorithm metadata
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Get plugin description
Source§impl AeadWithMetadata for TweakAead
impl AeadWithMetadata for TweakAead
Source§fn metadata(&self) -> &'static AeadMetadata
fn metadata(&self) -> &'static AeadMetadata
Get the algorithm metadata
Source§fn nonce_size(&self) -> usize
fn nonce_size(&self) -> usize
Get the nonce size in bytes
Source§fn security_level(&self) -> u32
fn security_level(&self) -> u32
Get the security level
Source§fn algorithm_name(&self) -> &'static str
fn algorithm_name(&self) -> &'static str
Get the algorithm name
Source§fn algorithm_description(&self) -> &'static str
fn algorithm_description(&self) -> &'static str
Get the algorithm description
Source§fn supports_semantic_decrypt(&self) -> bool
fn supports_semantic_decrypt(&self) -> bool
Whether this algorithm’s reference stack implements
lib_q_core::AeadDecryptSemantic
(Layer B), per AeadMetadata::supports_semantic_decrypt. Read moreAuto Trait Implementations§
impl Freeze for TweakAead
impl RefUnwindSafe for TweakAead
impl Send for TweakAead
impl Sync for TweakAead
impl Unpin for TweakAead
impl UnsafeUnpin for TweakAead
impl UnwindSafe for TweakAead
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