![]() |
xilsecure
Vitis Drivers API Documentation
|
This file contains hardware interface related information for RSA quite mode.
MODIFICATION HISTORY:
Ver Who Date Changes
5.4 kal 08/26/24 Initial release
Macros | |
| #define | externC extern |
| For compilation in C++. More... | |
| #define | XSECURE_ECDSA_RSA_SOFT_RESET (0xF1200040U) |
| ECDSA/RSA soft reset address. More... | |
| #define | XSECURE_RSA_SIZE_IN_BYTES (512U) |
| 512 bytes for 4096 bit data More... | |
| #define | XSECURE_PRIME_FACTOR_MAX_P_SIZE (XSECURE_RSA_SIZE_IN_BYTES >> 1U) |
| 256 bytes size of first prime factor(P) More... | |
| #define | XSECURE_PRIME_FACTOR_MAX_Q_SIZE (XSECURE_RSA_SIZE_IN_BYTES >> 1U) |
| 256 bytes size of first prime factor(Q) More... | |
| #define | XSECURE_RSA_PUB_EXP_SIZE (4U) |
| RSA public exponent size. More... | |
Functions | |
| int | XSecure_RsaExpCRT (u8 *Hash, u8 *P, u8 *Q, u8 *Dp, u8 *Dq, u8 *Qinv, u8 *Pub, u8 *Mod, int Len, u8 *Res) |
| This function performs the RSA exponentiation using CRT (Chinese Remainder Theorem). More... | |
| int | XSecure_RsaExp (u8 *Hash, u8 *Exp, u8 *Mod, u8 *P, u8 *Q, u8 *Pub, u8 *Tot, int Len, u8 *Res) |
| This function performs the RSA exponentiation. More... | |
| int | XSecure_RsaExpopt (u8 *Hash, u8 *Exp, u8 *Mod, u8 *RN, u8 *RRN, u8 *P, u8 *Q, u8 *Pub, u8 *Tot, int Len, u8 *Res) |
| This function perofrms the RSA exponentiation using pre-calculated modulus. More... | |