#[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 !Freeze for RegisterBlock
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