|
AM263x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
57 #include <drivers/hw_include/cslr.h>
58 #include <security_common/drivers/crypto/dthe/hw_include/cslr_sha.h>
69 #define DTHE_SHA_ALGO_MD5 (0x1U)
71 #define DTHE_SHA_ALGO_SHA384 (0x2U)
73 #define DTHE_SHA_ALGO_SHA1 (0x3U)
75 #define DTHE_SHA_ALGO_SHA512 (0x4U)
77 #define DTHE_SHA_ALGO_SHA224 (0x5U)
79 #define DTHE_SHA_ALGO_SHA256 (0x6U)
82 #define DTHE_SHA_MAX_DIGEST_SIZE_BYTES (64U)
94 typedef enum DTHE_SHA_Return_e
101 typedef struct DTHE_SHA_Params_t
uint32_t * ptrKey
Pointer to the key for hmac processing.
Definition: dthe_sha.h:110
uint32_t dataLenBytes
Size of the data in bytes.
Definition: dthe_sha.h:108
#define DTHE_SHA_MAX_DIGEST_SIZE_BYTES
The Maximum Digest Size is 64bytes for the SHA512.
Definition: dthe_sha.h:82
This file contains the prototype of DTHE driver APIs.
uint32_t algoType
Algorithm to be performed by the SHA Driver.
Definition: dthe_sha.h:104
uint32_t keySize
Size of the key in bytes.
Definition: dthe_sha.h:112
DTHE_SHA_Return_t DTHE_SHA_compute(DTHE_Handle handle, DTHE_SHA_Params *ptrShaParams, int32_t isLastBlock)
The function is used to execute the SHA Driver with the specified parameters.
@ DTHE_SHA_RETURN_FAILURE
Definition: dthe_sha.h:97
@ DTHE_SHA_RETURN_SUCCESS
Definition: dthe_sha.h:96
DTHE_SHA_Return_t DTHE_SHA_open(DTHE_Handle handle)
Function to Open DTHE SHA Driver.
DTHE_SHA_Return_t DTHE_SHA_close(DTHE_Handle handle)
Function to close DTHE SHA Driver.
DTHE_SHA_Return_t DTHE_HMACSHA_compute(DTHE_Handle handle, DTHE_SHA_Params *ptrShaParams)
The function is used to execute the HMAC SHA Operations with the specified parameters.
void * DTHE_Handle
Handle to the DTHE driver.
Definition: dthe.h:85
uint32_t * ptrDataBuffer
Pointer to the Plain Text data buffer.
Definition: dthe_sha.h:106
Parameters required for SHA Driver.
Definition: dthe_sha.h:102
DTHE_SHA_Return_t
DTHE SHA Driver Error code.
Definition: dthe_sha.h:95