Struct esp32s2::sha::RegisterBlock
source · #[repr(C)]pub struct RegisterBlock { /* private fields */ }
Expand description
Register block
Implementations§
source§impl RegisterBlock
impl RegisterBlock
sourcepub const fn t_string(&self) -> &T_STRING
pub const fn t_string(&self) -> &T_STRING
0x04 - String content register for calculating initial Hash Value (only effective for SHA-512/t)
sourcepub const fn t_length(&self) -> &T_LENGTH
pub const fn t_length(&self) -> &T_LENGTH
0x08 - String length register for calculating initial Hash Value (only effective for SHA-512/t)
sourcepub const fn dma_block_num(&self) -> &DMA_BLOCK_NUM
pub const fn dma_block_num(&self) -> &DMA_BLOCK_NUM
0x0c - Block number register (only effective for DMA-SHA)
sourcepub const fn start(&self) -> &START
pub const fn start(&self) -> &START
0x10 - Starts the SHA accelerator for Typical SHA operation
sourcepub const fn continue_(&self) -> &CONTINUE
pub const fn continue_(&self) -> &CONTINUE
0x14 - Continues SHA operation (only effective in Typical SHA mode)
sourcepub const fn dma_start(&self) -> &DMA_START
pub const fn dma_start(&self) -> &DMA_START
0x1c - Starts the SHA accelerator for DMA-SHA operation
sourcepub const fn dma_continue(&self) -> &DMA_CONTINUE
pub const fn dma_continue(&self) -> &DMA_CONTINUE
0x20 - Continues SHA operation (only effective in DMA-SHA mode)
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: 0x40..0x80 - Hash value
sourcepub fn m_mem_iter(&self) -> impl Iterator<Item = &M_MEM>
pub fn m_mem_iter(&self) -> impl Iterator<Item = &M_MEM>
Iterator for array of: 0x80..0x100 - Message
Auto Trait Implementations§
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
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