Struct esp32c3::aes::RegisterBlock
source · #[repr(C)]pub struct RegisterBlock { /* private fields */ }
Expand description
Register block
Implementations§
source§impl RegisterBlock
impl RegisterBlock
sourcepub fn key_iter(&self) -> impl Iterator<Item = &KEY>
pub fn key_iter(&self) -> impl Iterator<Item = &KEY>
Iterator for array of: 0x00..0x20 - Key material key_%s configure register
sourcepub const fn text_in(&self, n: usize) -> &TEXT_IN
pub const fn text_in(&self, n: usize) -> &TEXT_IN
0x20..0x30 - source text material text_in_%s configure register
sourcepub fn text_in_iter(&self) -> impl Iterator<Item = &TEXT_IN>
pub fn text_in_iter(&self) -> impl Iterator<Item = &TEXT_IN>
Iterator for array of: 0x20..0x30 - source text material text_in_%s configure register
sourcepub const fn text_out(&self, n: usize) -> &TEXT_OUT
pub const fn text_out(&self, n: usize) -> &TEXT_OUT
0x30..0x40 - result text material text_out_%s configure register
sourcepub fn text_out_iter(&self) -> impl Iterator<Item = &TEXT_OUT>
pub fn text_out_iter(&self) -> impl Iterator<Item = &TEXT_OUT>
Iterator for array of: 0x30..0x40 - result text material text_out_%s configure register
sourcepub const fn iv_mem(&self, n: usize) -> &IV_MEM
pub const fn iv_mem(&self, n: usize) -> &IV_MEM
0x50..0x60 - The memory that stores initialization vector
sourcepub fn iv_mem_iter(&self) -> impl Iterator<Item = &IV_MEM>
pub fn iv_mem_iter(&self) -> impl Iterator<Item = &IV_MEM>
Iterator for array of: 0x50..0x60 - The memory that stores initialization vector
sourcepub const fn h_mem(&self, n: usize) -> &H_MEM
pub const fn h_mem(&self, n: usize) -> &H_MEM
0x60..0x70 - The memory that stores GCM hash subkey
sourcepub fn h_mem_iter(&self) -> impl Iterator<Item = &H_MEM>
pub fn h_mem_iter(&self) -> impl Iterator<Item = &H_MEM>
Iterator for array of: 0x60..0x70 - The memory that stores GCM hash subkey
sourcepub fn j0_mem_iter(&self) -> impl Iterator<Item = &J0_MEM>
pub fn j0_mem_iter(&self) -> impl Iterator<Item = &J0_MEM>
Iterator for array of: 0x70..0x80 - The memory that stores J0
sourcepub fn t0_mem_iter(&self) -> impl Iterator<Item = &T0_MEM>
pub fn t0_mem_iter(&self) -> impl Iterator<Item = &T0_MEM>
Iterator for array of: 0x80..0x90 - The memory that stores T0
sourcepub const fn dma_enable(&self) -> &DMA_ENABLE
pub const fn dma_enable(&self) -> &DMA_ENABLE
0x90 - DMA-AES working mode register
sourcepub const fn block_mode(&self) -> &BLOCK_MODE
pub const fn block_mode(&self) -> &BLOCK_MODE
0x94 - AES cipher block mode register
sourcepub const fn inc_sel(&self) -> &INC_SEL
pub const fn inc_sel(&self) -> &INC_SEL
0x9c - Standard incrementing function configure register
sourcepub const fn aad_block_num(&self) -> &AAD_BLOCK_NUM
pub const fn aad_block_num(&self) -> &AAD_BLOCK_NUM
0xa0 - Additional Authential Data block number register
sourcepub const fn remainder_bit_num(&self) -> &REMAINDER_BIT_NUM
pub const fn remainder_bit_num(&self) -> &REMAINDER_BIT_NUM
0xa4 - AES remainder bit number register