RSA - RSA - 2025.2 English - UG643

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2025-11-20
Version
2025.2 English

The xsecure_rsa.h file contains hardware interface related information for the RSA hardware accelerator. This hardened cryptographic accelerator, within the CSU, performs the modulus math based on the Rivest-Shamir-Adelman (RSA) algorithm. It is an asymmetric algorithm.

Initialization & Configuration

The RSA driver instance can be initialized by using the XSecure_RsaInitialize() function. The method used for RSA implementation can take a pre-calculated value of R^2 mod N. If the pre-calculated exponential value pass NULL is not available, the controller takes care of the exponential value.
Note:
  • From the RSA key modulus, extract the exponent.
  • For verification, apply PKCS v1.5 padding scheme for comparing the data hash with decrypted hash.