lib/sw_services/xilsecure/src/common/xsecure_rsa.c
int XSecure_RsaPublicEncrypt(XSecure_Rsa *InstancePtr, u8 *Input,
	u32 Size, u8 *Result)
{
	return XSecure_RsaPublicEncrypt_64Bit(InstancePtr, (u64)(UINTPTR)Input,
			Size, (u64)(UINTPTR)Result);
}
/*****************************************************************************/
/**
 * @brief	This function handles the RSA encryption with the public key
 * 		components provided when initializing the RSA cryptographic core
 * 		with the XSecure_RsaInitialize function
 *
 * @param	InstancePtr	- Pointer to the XSecure_Rsa instance
 * @param	Input		- Pointer to the buffer which contains the input
 *				  data to be encrypted
 * @param	Size		- Key size in bytes, Input size also should be
 * 				  same as Key size mentioned. Inputs supported are
 * 				- XSECURE_RSA_4096_KEY_SIZE
 * 				- XSECURE_RSA_2048_KEY_SIZE
 * 				- XSECURE_RSA_3072_KEY_SIZE
 * @param	Result		- Pointer to the buffer where resultant decrypted
 *				  data to be stored
 *
 * @return	- XST_SUCCESS - If encryption was successful
 *		- XSECURE_RSA_INVALID_PARAM - On invalid arguments
 *		- XSECURE_RSA_STATE_MISMATCH_ERROR - If State mismatch is occurred
 *
 * @note	The Size passed here needs to match the key size used in the
 * 		XSecure_RsaInitialize function
 *
******************************************************************************/
@brief       This function handles the RSA encryption with the public key
components provided when initializing the RSA cryptographic core
with the XSecure_RsaInitialize function

@param       InstancePtr     - Pointer to the XSecure_Rsa instance
@param       Input           - Pointer to the buffer which contains the input
data to be encrypted
@param       Size            - Key size in bytes, Input size also should be
same as Key size mentioned. Inputs supported are
- XSECURE_RSA_4096_KEY_SIZE
- XSECURE_RSA_2048_KEY_SIZE
- XSECURE_RSA_3072_KEY_SIZE
@param       Result          - Pointer to the buffer where resultant decrypted
data to be stored



@note        The Size passed here needs to match the key size used in the
XSecure_RsaInitialize function
@brief This function handles the RSA encryption with the public key components provided when initializing the RSA cryptographic core with the XSecure_RsaInitialize function @param InstancePtr - Pointer to the XSecure_Rsa instance @param Input - Pointer to the buffer which contains the input data to be encrypted @param Size - Key size in bytes Input size also should be same as Key size mentioned . Inputs supported are - XSECURE_RSA_4096_KEY_SIZE - XSECURE_RSA_2048_KEY_SIZE - XSECURE_RSA_3072_KEY_SIZE @param Result - Pointer to the buffer where resultant decrypted data to be stored @note The Size passed here needs to match the key size used in the XSecure_RsaInitialize function
int XSecure_RsaPublicEncrypt(XSecure_Rsa *InstancePtr, u8 *Input,
	u32 Size, u8 *Result)
{
	return XSecure_RsaPublicEncrypt_64Bit(InstancePtr, (u64)(UINTPTR)Input,
			Size, (u64)(UINTPTR)Result);
}
int XSecure_RsaPublicEncrypt ( XSecure_Rsa * InstancePtr , u8 * Input , u32 Size , u8 * Result ) { return XSecure_RsaPublicEncrypt_64Bit ( InstancePtr , ( u64 ) ( UINTPTR ) Input , Size , ( u64 ) ( UINTPTR ) Result ) ; }
@brief       This function handles the RSA encryption with the public key
              components provided when initializing the RSA cryptographic core
              with the XSecure_RsaInitialize function
@brief This function handles the RSA encryption with the public key components provided when initializing the RSA cryptographic core with the XSecure_RsaInitialize function