[][src]Trait yaca::ContextWithXcmEncryptProperties

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

Implementation of GCM/CCM properties for Encrypt/Seal

Required methods

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

Sets the CCM Additional Authentication Data

Loading content...

Provided methods

pub fn set_property_gcm_tag_len(&self, gcm_tag_len: usize) -> Result<()>[src]

Sets the GCM tag length (in bytes)

pub fn get_property_gcm_tag(&self) -> Result<Vec<u8>>[src]

Gets the GCM tag

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

Sets the GCM Additional Authentication Data

pub fn set_property_ccm_tag_len(&self, ccm_tag_len: usize) -> Result<()>[src]

Sets the CCM Tag length in bytes

pub fn get_property_ccm_tag(&self) -> Result<Vec<u8>>[src]

Gets the CCM tag

Loading content...

Implementors

impl ContextWithXcmEncryptProperties for EncryptContext[src]

impl ContextWithXcmEncryptProperties for SealContext[src]

Loading content...