pub struct ECDSA { /* private fields */ }
Expand description
ECDSA (Elliptic Curve Digital Signature Algorithm) Accelerator
Implementations§
Source§impl ECDSA
impl ECDSA
Sourcepub const PTR: *const RegisterBlock = {0x50096000 as *const ecdsa::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x50096000 as *const ecdsa::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn sha_continue(&self) -> &SHA_CONTINUE
pub fn sha_continue(&self) -> &SHA_CONTINUE
0x214 - ECDSA control SHA register
Sourcepub fn message_mem(&self, n: usize) -> &MESSAGE_MEM
pub fn message_mem(&self, n: usize) -> &MESSAGE_MEM
0x280..0x2a0 - The memory that stores message.
Sourcepub fn message_mem_iter(&self) -> impl Iterator<Item = &MESSAGE_MEM>
pub fn message_mem_iter(&self) -> impl Iterator<Item = &MESSAGE_MEM>
Iterator for array of: 0x280..0x2a0 - The memory that stores message.
Sourcepub fn r_mem_iter(&self) -> impl Iterator<Item = &R_MEM>
pub fn r_mem_iter(&self) -> impl Iterator<Item = &R_MEM>
Iterator for array of: 0xa00..0xa20 - The memory that stores r.
Sourcepub fn s_mem_iter(&self) -> impl Iterator<Item = &S_MEM>
pub fn s_mem_iter(&self) -> impl Iterator<Item = &S_MEM>
Iterator for array of: 0xa20..0xa40 - The memory that stores s.
Sourcepub fn z_mem(&self, n: usize) -> &Z_MEM
pub fn z_mem(&self, n: usize) -> &Z_MEM
0xa40..0xa60 - The memory that stores software written z.
Sourcepub fn z_mem_iter(&self) -> impl Iterator<Item = &Z_MEM>
pub fn z_mem_iter(&self) -> impl Iterator<Item = &Z_MEM>
Iterator for array of: 0xa40..0xa60 - The memory that stores software written z.
Sourcepub fn qax_mem(&self, n: usize) -> &QAX_MEM
pub fn qax_mem(&self, n: usize) -> &QAX_MEM
0xa60..0xa80 - The memory that stores x coordinates of QA or software written k.
Sourcepub fn qax_mem_iter(&self) -> impl Iterator<Item = &QAX_MEM>
pub fn qax_mem_iter(&self) -> impl Iterator<Item = &QAX_MEM>
Iterator for array of: 0xa60..0xa80 - The memory that stores x coordinates of QA or software written k.
Sourcepub fn qay_mem(&self, n: usize) -> &QAY_MEM
pub fn qay_mem(&self, n: usize) -> &QAY_MEM
0xa80..0xaa0 - The memory that stores y coordinates of QA.
Sourcepub fn qay_mem_iter(&self) -> impl Iterator<Item = &QAY_MEM>
pub fn qay_mem_iter(&self) -> impl Iterator<Item = &QAY_MEM>
Iterator for array of: 0xa80..0xaa0 - The memory that stores y coordinates of QA.