pub struct CcChacha { /* private fields */ }
Expand description
CRYPTOCELL CHACHA engine
Implementations§
Source§impl CcChacha
impl CcChacha
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn chacha_control(self) -> Reg<ChachaControl, RW>
pub const fn chacha_control(self) -> Reg<ChachaControl, RW>
Control the CHACHA engine behavior.
Sourcepub const fn chacha_version(self) -> Reg<u32, R>
pub const fn chacha_version(self) -> Reg<u32, R>
CHACHA engine HW version
Sourcepub const fn chacha_key(self, n: usize) -> Reg<u32, W>
pub const fn chacha_key(self, n: usize) -> Reg<u32, W>
Description collection: CHACHA key value to use. The initial CHACHA_KEY[0] register holds the least significant bits [31:0] of the key value.
Sourcepub const fn chacha_iv(self, n: usize) -> Reg<u32, RW>
pub const fn chacha_iv(self, n: usize) -> Reg<u32, RW>
Description collection: CHACHA Initialization Vector (IV) to use. The IV is also known as the nonce.
Sourcepub const fn chacha_busy(self) -> Reg<ChachaBusy, R>
pub const fn chacha_busy(self) -> Reg<ChachaBusy, R>
Status register for CHACHA engine activity.
Sourcepub const fn chacha_hw_flags(self) -> Reg<ChachaHwFlags, R>
pub const fn chacha_hw_flags(self) -> Reg<ChachaHwFlags, R>
Hardware configuration of the CHACHA engine. Reset value holds the supported features.
Sourcepub const fn chacha_block_cnt_lsb(self) -> Reg<u32, RW>
pub const fn chacha_block_cnt_lsb(self) -> Reg<u32, RW>
Store the LSB value of the block counter, in order to support suspend/resume of operation
Sourcepub const fn chacha_block_cnt_msb(self) -> Reg<u32, RW>
pub const fn chacha_block_cnt_msb(self) -> Reg<u32, RW>
Store the MSB value of the block counter, in order to support suspend/resume of operation
Sourcepub const fn chacha_sw_reset(self) -> Reg<ChachaSwReset, W>
pub const fn chacha_sw_reset(self) -> Reg<ChachaSwReset, W>
Reset the CHACHA engine.
Sourcepub const fn chacha_poly1305_key(self, n: usize) -> Reg<u32, R>
pub const fn chacha_poly1305_key(self, n: usize) -> Reg<u32, R>
Description collection: The auto-generated key to use in Poly1305 MAC calculation. The initial CHACHA_POLY1305_KEY[0] register holds the least significant bits [31:0] of the key value.
Sourcepub const fn chacha_endianness(self) -> Reg<ChachaEndianness, RW>
pub const fn chacha_endianness(self) -> Reg<ChachaEndianness, RW>
CHACHA engine data order configuration.
Sourcepub const fn chacha_debug(self) -> Reg<ChachaDebug, R>
pub const fn chacha_debug(self) -> Reg<ChachaDebug, R>
Debug register for the CHACHA engine
Trait Implementations§
impl Copy for CcChacha
impl Eq for CcChacha
impl Send for CcChacha
impl StructuralPartialEq for CcChacha
impl Sync for CcChacha
Auto Trait Implementations§
impl Freeze for CcChacha
impl RefUnwindSafe for CcChacha
impl Unpin for CcChacha
impl UnwindSafe for CcChacha
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)