pub struct Shake256Aead { /* private fields */ }Expand description
SHAKE256 AEAD implementation with proper domain separation
Implementations§
Source§impl Shake256Aead
impl Shake256Aead
Trait Implementations§
Source§impl Aead for Shake256Aead
impl Aead for Shake256Aead
Source§impl AeadDecryptSemantic for Shake256Aead
impl AeadDecryptSemantic for Shake256Aead
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 Shake256Aead
impl AeadPlugin for Shake256Aead
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 Shake256Aead
impl AeadWithMetadata for Shake256Aead
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 Shake256Aead
impl RefUnwindSafe for Shake256Aead
impl Send for Shake256Aead
impl Sync for Shake256Aead
impl Unpin for Shake256Aead
impl UnsafeUnpin for Shake256Aead
impl UnwindSafe for Shake256Aead
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