This module contains APIs to program and use the DTHE SHA.
|
file | dthe_sha.h |
| This file contains the prototype of DTHE SHA driver APIs.
|
|
◆ DTHE_SHA_ALGO_MD5
#define DTHE_SHA_ALGO_MD5 (0x1U) |
MD5 Flag.
< SHA Algorithms
◆ DTHE_SHA_ALGO_SHA384
#define DTHE_SHA_ALGO_SHA384 (0x2U) |
◆ DTHE_SHA_ALGO_SHA1
#define DTHE_SHA_ALGO_SHA1 (0x3U) |
◆ DTHE_SHA_ALGO_SHA512
#define DTHE_SHA_ALGO_SHA512 (0x4U) |
◆ DTHE_SHA_ALGO_SHA224
#define DTHE_SHA_ALGO_SHA224 (0x5U) |
◆ DTHE_SHA_ALGO_SHA256
#define DTHE_SHA_ALGO_SHA256 (0x6U) |
◆ DTHE_SHA_MAX_DIGEST_SIZE_BYTES
#define DTHE_SHA_MAX_DIGEST_SIZE_BYTES (64U) |
The Maximum Digest Size is 64bytes for the SHA512.
◆ DTHE_SHA_Return_t
DTHE SHA Driver Error code.
The enumeration describes all the possible return and error codes which the DTHE SHA Driver can return
Enumerator |
---|
DTHE_SHA_RETURN_SUCCESS | Success/pass return code
|
DTHE_SHA_RETURN_FAILURE | General or unspecified failure/error
|
◆ DTHE_SHA_open()
◆ DTHE_SHA_compute()
The function is used to execute the SHA Driver with the specified parameters.
- Parameters
-
handle | DTHE_Handle returned from DTHE_open(). |
ptrShaParams | Pointer to the parameters to be used to execute the driver. |
isLastBlock | Used for singleshot and multishot sha. |
- Returns
- DTHE_SHA_RETURN_SUCCESS if requested operation completed. DTHE_SHA_RETURN_FAILURE if requested operation not completed.
◆ DTHE_HMACSHA_compute()
The function is used to execute the HMAC SHA Operations with the specified parameters.
- Parameters
-
handle | DTHE_Handle returned from DTHE_open(). |
ptrShaParams | Pointer to the parameters to be used to execute the driver. |
- Returns
- DTHE_SHA_RETURN_SUCCESS if requested operation completed. DTHE_SHA_RETURN_FAILURE if requested operation not completed.
◆ DTHE_SHA_close()