Struct Command
#[repr(transparent)]pub struct Command(pub u32);
Expand description
Command register.
Tuple Fields§
§0: u32
Implementations§
§impl Command
impl Command
pub fn set_opeaddr(&mut self, val: u8)
pub fn set_opeaddr(&mut self, val: u8)
This field defines the operation to be performed.
pub fn set_fieldf(&mut self, val: bool)
pub fn set_fieldf(&mut self, val: bool)
0: Field is GF(p) 1: Field is GF(2**m)
pub const fn opbytesm1(&self) -> u16
pub const fn opbytesm1(&self) -> u16
This field defines the size (= number of bytes minus one) of the operands for the current operation.
pub fn set_opbytesm1(&mut self, val: u16)
pub fn set_opbytesm1(&mut self, val: u16)
This field defines the size (= number of bytes minus one) of the operands for the current operation.
pub fn set_randmod(&mut self, val: bool)
pub fn set_randmod(&mut self, val: bool)
Enable randomization of modulus (counter-measure).
pub fn set_selcurve(&mut self, val: Selcurve)
pub fn set_selcurve(&mut self, val: Selcurve)
Enable accelerator for specific curve modulus:
pub fn set_randke(&mut self, val: bool)
pub fn set_randke(&mut self, val: bool)
Enable randomization of exponent/scalar (counter-measure).
pub const fn randproj(&self) -> bool
pub const fn randproj(&self) -> bool
Enable randomization of projective coordinates (counter-measure).
pub fn set_randproj(&mut self, val: bool)
pub fn set_randproj(&mut self, val: bool)
Enable randomization of projective coordinates (counter-measure).
pub fn set_edwards(&mut self, val: bool)
pub fn set_edwards(&mut self, val: bool)
Enable Edwards curve.
pub fn set_swapbytes(&mut self, val: Swapbytes)
pub fn set_swapbytes(&mut self, val: Swapbytes)
Swap the bytes on AHB interface:
pub const fn calcr2(&self) -> Calcr2
pub const fn calcr2(&self) -> Calcr2
This bit indicates if the IP has to calculate R**2 mod N for the next operation.
pub fn set_calcr2(&mut self, val: Calcr2)
pub fn set_calcr2(&mut self, val: Calcr2)
This bit indicates if the IP has to calculate R**2 mod N for the next operation.
Trait Implementations§
impl Copy for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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
)