XSecure_RsaInitialize_64Bit - 2023.2 English

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

Document ID
UG643
Release Date
2023-12-13
Version
2023.2 English

This function initializes a a XSecure_Rsa structure with the default values located at a 64-bit address 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 should be extracted from the key

Prototype

int XSecure_RsaInitialize_64Bit(XSecure_Rsa *InstancePtr, u64 Mod, u64 ModExt, u64 ModExpo);

Parameters

The following table lists the XSecure_RsaInitialize_64Bit function arguments.

Table 1. XSecure_RsaInitialize_64Bit Arguments
Name Description
InstancePtr - Pointer to the XSecure_Rsa instance
Mod - Address of the key Modulus of key size
ModExt - Address of the pre-calculated exponential (R^2 Mod N) value
  • 0 - if user doesn't have pre-calculated R^2 Mod N value, control will take care of this calculation internally
ModExpo - Address of the buffer which contains key exponent

Returns

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