Supported ICs
IC |
RTL8721Dx |
RTL8726E |
RTL8720E |
RTL8730E |
---|---|---|---|---|
Supported |
N |
N |
N |
Y |
Introduction
The RSA supports key lengths of 1024, 2048 and 3072 bits.
Note
The RSA can be accessed by NP and AP, but if multi-cores call the API to operate the RSA simultaneously, it will cause RSA function error.
Users must implement protective measures to ensure that only one core operates RSA at a certain time.
Usage
Enabling Clock for RSA Engine
Make sure that the function and clock of the RSA are enabled; otherwise, the function will hang.
RCC_PeriphClockCmd(APBPeriph_RSA, APBPeriph_CLOCK_NULL, ENABLE);
Starting RSA Engine Calculation
Initialize the parameters and call
RSA_HW_EXP_MOD()
to start RSA engine calculation.