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