XSecure_RsaInitialize - XSecure_RsaInitialize - 2026.1 English - UG643

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

Document ID
UG643
Release Date
2026-06-23
Version
2026.1 English

This function initializes a a XSecure_Rsa structure with the default values required for operating the RSA cryptographic engine.

Note: Modulus, ModExt, and ModExpo are part of partition signature when authenticated boot image is generated by Bootgen, else the all of them are extracted from the key

Prototype

int XSecure_RsaInitialize(XSecure_Rsa *InstancePtr, u8 *Mod, u8 *ModExt, u8 *ModExpo);

Parameters

The following table lists the XSecure_RsaInitialize function arguments.

Table 1. XSecure_RsaInitialize Arguments
Name Description
InstancePtr Pointer to the XSecure_Rsa instance
Mod A character Pointer which contains the key modulus of key size
ModExt A Pointer to the pre-calculated exponential (R^2 Mod N) value
  • NULL - if user does not have pre-calculated R^2 Mod N value, control calculates internally
ModExpo Pointer to the buffer which contains key exponent

Returns

  • XST_SUCCESS - If initialization was successful
  • XSECURE_RSA_INVALID_PARAM - On invalid arguments