Struct esp32c3_hal::rsa::Rsa
source · pub struct Rsa<'d> { /* private fields */ }
Expand description
RSA peripheral container
Implementations§
source§impl<'d> Rsa<'d>
impl<'d> Rsa<'d>
sourcepub fn ready(&mut self) -> Result<(), Error<Infallible>>
pub fn ready(&mut self) -> Result<(), Error<Infallible>>
After the RSA Accelerator is released from reset, the memory blocks needs to be initialized, only after that peripheral should be used. This function would return without an error if the memory is initialized
sourcepub fn enable_disable_interrupt(&mut self, enable: bool)
pub fn enable_disable_interrupt(&mut self, enable: bool)
Enables/disables rsa interrupt, when enabled rsa perpheral would generate an interrupt when a operation is finished.
sourcepub fn enable_disable_search_acceleration(&mut self, enable: bool)
pub fn enable_disable_search_acceleration(&mut self, enable: bool)
Enables/disables search acceleration, when enabled it would increases the performance of modular exponentiation by discarding the exponent’s bits before the most significant set bit. Note: this might affect the security, for more info refer 18.3.4 of https://www.espressif.com/sites/default/files/documentation/esp32-c6_technical_reference_manual_en.pdf
sourcepub fn enable_disable_constant_time_acceleration(&mut self, enable: bool)
pub fn enable_disable_constant_time_acceleration(&mut self, enable: bool)
Enables/disables constant time acceleration, when enabled it would increases the performance of modular exponentiation by simplifying the calculation concerning the 0 bits of the exponent i.e. lesser the hamming weight, greater the performance. Note : this might affect the security, for more info refer 18.3.4 of https://www.espressif.com/sites/default/files/documentation/esp32-c6_technical_reference_manual_en.pdf