AM263x MCU+ SDK  09.02.00
dthe_sha.h File Reference

Introduction

This file contains the prototype of DTHE SHA driver APIs.

Go to the source code of this file.

Data Structures

struct  DTHE_SHA_Params
 Parameters required for SHA Driver. More...
 

Macros

#define DTHE_SHA_ALGO_MD5   (0x1U)
 MD5 Flag. More...
 
#define DTHE_SHA_ALGO_SHA384   (0x2U)
 SHA-384 Flag. More...
 
#define DTHE_SHA_ALGO_SHA1   (0x3U)
 SHA-1 Flag. More...
 
#define DTHE_SHA_ALGO_SHA512   (0x4U)
 SHA-512 Flag. More...
 
#define DTHE_SHA_ALGO_SHA224   (0x5U)
 SHA-224 Flag. More...
 
#define DTHE_SHA_ALGO_SHA256   (0x6U)
 SHA-256 Flag. More...
 
#define DTHE_SHA_MAX_DIGEST_SIZE_BYTES   (64U)
 The Maximum Digest Size is 64bytes for the SHA512. More...
 

Enumerations

enum  DTHE_SHA_Return_t { DTHE_SHA_RETURN_SUCCESS = 0x67A42DD1U, DTHE_SHA_RETURN_FAILURE = 0x06C2B483U }
 DTHE SHA Driver Error code. More...
 

Functions

DTHE_SHA_Return_t DTHE_SHA_open (DTHE_Handle handle)
 Function to Open DTHE SHA Driver. More...
 
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. More...
 
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. More...
 
DTHE_SHA_Return_t DTHE_SHA_close (DTHE_Handle handle)
 Function to close DTHE SHA Driver. More...