AM64x MCU+ SDK  08.02.00
crypto.h File Reference

Introduction

This file contains the prototype of crypto driver APIs.

Go to the source code of this file.

Data Structures

struct  Crypto_Context
 CRYPTO driver context. More...
 
struct  Crypto_Params
 CRYPTO Parameters for various operations. More...
 

Macros

#define CRYPTO_HMAC_SHA_MAX_KEYLEN_BYTES   (128U)
 Key length for HMAC-SHA Process. More...
 
#define CRYPTO_HMAC_SHA512_KEYLEN_BYTES   (128U)
 Key length for HMAC-SHA512 Process. More...
 
#define CRYPTO_HMAC_SHA1_KEYLEN_BYTES   (64U)
 Key length for HMAC-SHA1 Process. More...
 
#define CRYPTO_HMAC_SHA256_KEYLEN_BYTES   (64U)
 Key length for HMAC-SHA256 Process. More...
 
#define CRYPTO_HMAC_SHA_IPAD   (0x36U)
 Inner Padding value for HMAC. More...
 
#define CRYPTO_HMAC_SHA_OPAD   (0x5CU)
 Outer Padding value for HMAC. More...
 
#define CRYPTO_AES_CMAC_KEY_LENGTH   (16U)
 Aes Cmac key length. More...
 
#define CRYPTO_AES_BLOCK_LENGTH   (16U)
 Aes block length. More...
 

Typedefs

typedef void * Crypto_Handle
 Handle to the Crypto driver returned by Crypto_open() More...
 

Functions

void Crypto_init (void)
 This function initializes the Crypto module. More...
 
void Crypto_deinit (void)
 This function de-initializes the Crypto module. More...
 
Crypto_Handle Crypto_open (Crypto_Context *ctx)
 This function opens a Crypto module. More...
 
int32_t Crypto_close (Crypto_Handle handle)
 Function to close a Crypto module. More...
 
int32_t Crypto_hmacSha (Crypto_Params *params)
 This function calculates oPad & iPad for HMAC. More...
 
int32_t Crypto_cmacGenSubKeys (Crypto_Params *params)
 This function Generate Sub keys for CMAC calculation. More...