![]() |
xilasu
Vitis Drivers API Documentation
|
Functions | |
| s32 | XAsu_KdfGenerate (XAsu_ClientParams *ClientParamsPtr, XAsu_KdfParams *KdfParamsPtr) |
| This function sends command to ASUFW to generate the derived key of specified key length by using the Key Derivative Function (KDF) in counter mode. More... | |
| s32 | XAsu_KdfKat (XAsu_ClientParams *ClientParamsPtr) |
| This function sends command to ASUFW to perform KDF Known Answer Tests (KAT's). More... | |
| s32 XAsu_KdfGenerate | ( | XAsu_ClientParams * | ClientParamsPtr, |
| XAsu_KdfParams * | KdfParamsPtr | ||
| ) |
This function sends command to ASUFW to generate the derived key of specified key length by using the Key Derivative Function (KDF) in counter mode.
| ClientParamsPtr | Pointer to the XAsu_ClientParams structure which holds the client input parameters. |
| KdfParamsPtr | Pointer to XAsu_KdfParams structure which holds the parameters of KDF input arguments. |
Validate input parameters.
Get the command ID based on SHA type.
Update request buffer and send an IPI request to ASU.
References XAsu_KdfParams::ShaType, XAsu_CreateHeader(), XASU_INVALID_UNIQUE_ID, XASU_KDF_GENERATE_SHA2_CMD_ID, XASU_KDF_GENERATE_SHA3_CMD_ID, XASU_MODULE_KDF_ID, XAsu_RegCallBackNGetUniqueId(), XASU_SHA2_TYPE, XASU_UNIQUE_ID_MAX, XAsu_UpdateQueueBufferNSendIpi(), and XAsu_ValidateClientParameters().
| s32 XAsu_KdfKat | ( | XAsu_ClientParams * | ClientParamsPtr | ) |
This function sends command to ASUFW to perform KDF Known Answer Tests (KAT's).
| ClientParamsPtr | Pointer to the XAsu_ClientParams structure which holds the client input parameters. |
Validate input parameters.
Update request buffer and send an IPI request to ASU.
References XAsu_CreateHeader(), XASU_INVALID_UNIQUE_ID, XASU_KDF_KAT_CMD_ID, XASU_MODULE_KDF_ID, XAsu_RegCallBackNGetUniqueId(), XASU_UNIQUE_ID_MAX, XAsu_UpdateQueueBufferNSendIpi(), and XAsu_ValidateClientParameters().