#[repr(transparent)]pub struct Command(pub u32);
Expand description
Command register.
Tuple Fields§
§0: u32
Implementations§
Source§impl Command
impl Command
Sourcepub fn set_opeaddr(&mut self, val: u8)
pub fn set_opeaddr(&mut self, val: u8)
This field defines the operation to be performed.
Sourcepub 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)
Sourcepub 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.
Sourcepub 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.
Sourcepub fn set_randmod(&mut self, val: bool)
pub fn set_randmod(&mut self, val: bool)
Enable randomization of modulus (counter-measure).
Sourcepub fn set_selcurve(&mut self, val: Selcurve)
pub fn set_selcurve(&mut self, val: Selcurve)
Enable accelerator for specific curve modulus:
Sourcepub fn set_randke(&mut self, val: bool)
pub fn set_randke(&mut self, val: bool)
Enable randomization of exponent/scalar (counter-measure).
Sourcepub const fn randproj(&self) -> bool
pub const fn randproj(&self) -> bool
Enable randomization of projective coordinates (counter-measure).
Sourcepub fn set_randproj(&mut self, val: bool)
pub fn set_randproj(&mut self, val: bool)
Enable randomization of projective coordinates (counter-measure).
Sourcepub fn set_edwards(&mut self, val: bool)
pub fn set_edwards(&mut self, val: bool)
Enable Edwards curve.
Sourcepub fn set_swapbytes(&mut self, val: Swapbytes)
pub fn set_swapbytes(&mut self, val: Swapbytes)
Swap the bytes on AHB interface:
Sourcepub 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.
Sourcepub 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.