[][src]Trait yaca::ContextWithXcmEncryptProperties

pub trait ContextWithXcmEncryptProperties: Context {
    fn set_property_ccm_aad(
        &self,
        ccm_aad: &[u8],
        plaintext_len: usize
    ) -> Result<()>; fn set_property_gcm_tag_len(&self, gcm_tag_len: usize) -> Result<()> { ... }
fn get_property_gcm_tag(&self) -> Result<Vec<u8>> { ... }
fn set_property_gcm_aad(&self, gcm_aad: &[u8]) -> Result<()> { ... }
fn set_property_ccm_tag_len(&self, ccm_tag_len: usize) -> Result<()> { ... }
fn get_property_ccm_tag(&self) -> Result<Vec<u8>> { ... } }

Implementation of GCM/CCM properties for Encrypt/Seal

Required methods

fn set_property_ccm_aad(
    &self,
    ccm_aad: &[u8],
    plaintext_len: usize
) -> Result<()>

Sets the CCM Additional Authentication Data

Loading content...

Provided methods

fn set_property_gcm_tag_len(&self, gcm_tag_len: usize) -> Result<()>

Sets the GCM tag length (in bytes)

fn get_property_gcm_tag(&self) -> Result<Vec<u8>>

Gets the GCM tag

fn set_property_gcm_aad(&self, gcm_aad: &[u8]) -> Result<()>

Sets the GCM Additional Authentication Data

fn set_property_ccm_tag_len(&self, ccm_tag_len: usize) -> Result<()>

Sets the CCM Tag length in bytes

fn get_property_ccm_tag(&self) -> Result<Vec<u8>>

Gets the CCM tag

Loading content...

Implementors

impl ContextWithXcmEncryptProperties for EncryptContext[src]

impl ContextWithXcmEncryptProperties for SealContext[src]

Loading content...