[−][src]Trait yaca::ContextWithXcmDecryptProperties
Implementation of GCM/CCM properties for Decrypt
/Open
Required methods
pub fn set_property_ccm_aad(
&self,
ccm_aad: &[u8],
ciphertext_len: usize
) -> Result<()>
[src]
&self,
ccm_aad: &[u8],
ciphertext_len: usize
) -> Result<()>
Sets the CCM Additional Authentication Data
- AAD is the same data that is passed during 'Encrypt'/'Seal' operation with
CtxXcmEnc::set_property_ccm_aad()
. - The total ciphertext length must be passed.
- Set after
DecryptContext::initialize()
/OpenContext::initialize()
and beforeDecryptContext::update()
/OpenContext::update()
inDecryption
/Open
operation. - See
BlockCipherMode::Ccm
for more information.
Provided methods
pub fn set_property_gcm_tag(&self, gcm_tag: &[u8]) -> Result<()>
[src]
Sets the GCM tag
- The tag is gotten during 'Encrypt'/'Seal' operation with
CtxXcmEnc::get_property_gcm_tag()
. - Set after
DecryptContext::update()
/OpenContext::update()
and beforeDecryptContext::finalize()
/OpenContext::finalize()
. - See
BlockCipherMode::Gcm
for more information.
pub fn set_property_gcm_aad(&self, gcm_aad: &[u8]) -> Result<()>
[src]
Sets the GCM Additional Authentication Data
- AAD is the same data that is passed during 'Encrypt'/'Seal' operation with
CtxXcmEnc::set_property_gcm_aad()
. - Set after
DecryptContext::initialize()
/OpenContext::initialize()
and beforeDecryptContext::update()
/OpenContext::update()
. - See
BlockCipherMode::Gcm
for more information.
pub fn set_property_ccm_tag(&self, ccm_tag: &[u8]) -> Result<()>
[src]
Sets the CCM tag
- The tag is gotten during 'Encrypt'/'Seal' operation with
CtxXcmEnc::get_property_ccm_tag()
. - Set after
DecryptContext::initialize()
/OpenContext::initialize()
and beforeDecryptContext::update()
/OpenContext::update()
. - See
BlockCipherMode::Ccm
for more information.