XSecure_RsaSignVerification - 2020.2 English

OS and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2020-11-24
Version
2020.2 English

This function verifies the RSA decrypted data provided is either matching with the provided expected hash by taking care of PKCS padding.

Prototype

u32 XSecure_RsaSignVerification(u8 *Signature, u8 *Hash, u32 HashLen);

Parameters

The following table lists the XSecure_RsaSignVerification function arguments.

Table 1. XSecure_RsaSignVerification Arguments
Name Description
Signature Pointer to the buffer which holds the decrypted RSA signature
Hash Pointer to 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.
  • XST_FAILURE in case of mismatch.