XSecure_RsaSignVerification_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 verifies the RSA decrypted data located at a 64-bit address provided is either matching with the provided expected hash by taking care of PKCS padding.

Prototype

int XSecure_RsaSignVerification_64Bit(const u64 Signature, const u64 Hash, u32 HashLen);

Parameters

The following table lists the XSecure_RsaSignVerification_64Bit function arguments.

Table 1. XSecure_RsaSignVerification_64Bit Arguments
Name Description
Signature - Address of the buffer which holds the decrypted RSA signature
Hash - Address of the buffer which has the hash calculated on the data to be authenticated
HashLen - Length of Hash used
  • For SHA3 it should be 48 bytes

Returns

  • XST_SUCCESS - If decryption was successful
  • XSECURE_RSA_INVALID_PARAM - On invalid arguments
  • XST_FAILURE - In case of mismatch