pub struct AtcaAesCcmCtx {
pub cbc_mac_ctx: atca_aes_cmac_ctx_t,
pub ctr_ctx: atca_aes_ctr_ctx_t,
pub iv_size: u8,
pub m: u8,
pub counter: [u8; 16],
pub partial_aad: [u8; 16],
pub partial_aad_size: usize,
pub text_size: usize,
pub enc_cb: [u8; 16],
pub data_size: u32,
pub ciphertext_block: [u8; 16],
}
Expand description
Data context structure for AEAD encryption in CCM mode
Fields§
§cbc_mac_ctx: atca_aes_cmac_ctx_t
§ctr_ctx: atca_aes_ctr_ctx_t
§iv_size: u8
§m: u8
§counter: [u8; 16]
§partial_aad: [u8; 16]
§partial_aad_size: usize
§text_size: usize
§enc_cb: [u8; 16]
§data_size: u32
§ciphertext_block: [u8; 16]
Trait Implementations§
Source§impl Clone for AtcaAesCcmCtx
impl Clone for AtcaAesCcmCtx
Source§fn clone(&self) -> AtcaAesCcmCtx
fn clone(&self) -> AtcaAesCcmCtx
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AtcaAesCcmCtx
impl Debug for AtcaAesCcmCtx
Source§impl Default for AtcaAesCcmCtx
impl Default for AtcaAesCcmCtx
Source§fn default() -> AtcaAesCcmCtx
fn default() -> AtcaAesCcmCtx
Returns the “default value” for a type. Read more
impl Copy for AtcaAesCcmCtx
Auto Trait Implementations§
impl Freeze for AtcaAesCcmCtx
impl RefUnwindSafe for AtcaAesCcmCtx
impl Send for AtcaAesCcmCtx
impl Sync for AtcaAesCcmCtx
impl Unpin for AtcaAesCcmCtx
impl UnwindSafe for AtcaAesCcmCtx
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