Supported ICs
Ameba SoC |
RTL8721Dx |
RTL8726E |
RTL8720E |
RTL8730E |
---|---|---|---|---|
Supported |
N |
N |
N |
Y |
Introduction
The EdDSA engine possesses a signature verification function and supports three signature verification modes:
Step Mode
Half-Auto Mode
Auto Mode
Half-Auto Mode is recommended, because in Auto Mode, the signature buffer and hash value need the same register, but the time to write signature buffer and hash is hard to control.
Note
The EdDSA can be accessed by NP and AP, but if multi-cores call the API to operate the EdDSA simultaneously, it will cause EdDSA function error.
Users must implement protective measures to ensure that only one core operates EdDSA at a certain time.
Usage
Enabling Clock for EdDSA Engine
Make sure that the function and clock of the EdDSA are enabled; otherwise, the function will hang.
RCC_PeriphClockCmd(APBPeriph_ED25519, APBPeriph_CLOCK_NULL, ENABLE);
Starting EdDSA Engine Calculation
Initialize the parameters and call
xxx()
to start EdDSA engine calculation.