pub struct RomulusMAead { /* private fields */ }Expand description
Romulus-M (nonce-misuse-resistant AEAD) for the lib-Q AEAD registry.
Implementations§
Source§impl RomulusMAead
impl RomulusMAead
Trait Implementations§
Source§impl Aead for RomulusMAead
impl Aead for RomulusMAead
Source§impl AeadDecryptSemantic for RomulusMAead
impl AeadDecryptSemantic for RomulusMAead
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 RomulusMAead
impl AeadPlugin for RomulusMAead
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 RomulusMAead
impl AeadWithMetadata for RomulusMAead
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 RomulusMAead
impl RefUnwindSafe for RomulusMAead
impl Send for RomulusMAead
impl Sync for RomulusMAead
impl Unpin for RomulusMAead
impl UnsafeUnpin for RomulusMAead
impl UnwindSafe for RomulusMAead
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