Module rsa

Source
Available on crate feature unstable only.
Expand description

§RSA (Rivest–Shamir–Adleman) accelerator.

§Overview

The RSA accelerator provides hardware support for high precision computation used in various RSA asymmetric cipher algorithms by significantly reducing their software complexity. Compared with RSA algorithms implemented solely in software, this hardware accelerator can speed up RSA algorithms significantly.

§Configuration

The RSA accelerator also supports operands of different lengths, which provides more flexibility during the computation.

§Examples

§Modular Exponentiation, Modular Multiplication, and Multiplication

Visit the RSA test suite for an example of using the peripheral.

Modules§

operand_sizes
Module defining marker types for various RSA operand sizes. Marker types for the operand sizes

Structs§

Rsa
RSA peripheral container
RsaModularExponentiation
Support for RSA peripheral’s modular exponentiation feature that could be used to find the (base ^ exponent) mod modulus.
RsaModularMultiplication
Support for RSA peripheral’s modular multiplication feature that could be used to find the (operand a * operand b) mod modulus.
RsaMultiplication
Support for RSA peripheral’s large number multiplication feature that could be used to find the operand a * operand b.

Traits§

Multi
Defines the output type of RSA multiplications.
RsaMode
Defines the input size of an RSA operation.