pub struct RoccaSAead { /* private fields */ }Expand description
Rocca-S AEAD implementation wrapper
Implementations§
Source§impl RoccaSAead
impl RoccaSAead
Trait Implementations§
Source§impl Aead for RoccaSAead
impl Aead for RoccaSAead
Source§impl AeadDecryptSemantic for RoccaSAead
impl AeadDecryptSemantic for RoccaSAead
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 RoccaSAead
impl AeadPlugin for RoccaSAead
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 RoccaSAead
impl AeadWithMetadata for RoccaSAead
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 RoccaSAead
impl RefUnwindSafe for RoccaSAead
impl Send for RoccaSAead
impl Sync for RoccaSAead
impl Unpin for RoccaSAead
impl UnsafeUnpin for RoccaSAead
impl UnwindSafe for RoccaSAead
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