Data Structures | Macros | Functions
AESCTRDRBGX4_s.h File Reference
#include <stdint.h>
#include <ti/drivers/crypto/CryptoCC26X4_s.h>
#include <ti/drivers/AESCTRDRBG.h>
#include <third_party/tfm/interface/include/psa/error.h>
#include <third_party/tfm/interface/include/psa/service.h>
Include dependency graph for AESCTRDRBGX4_s.h:

Go to the source code of this file.

Data Structures

struct  AESCTRDRBG_s_ConstructMsg
 
struct  AESCTRDRBG_s_OpenMsg
 
struct  AESCTRDRBG_s_CloseMsg
 
struct  AESCTRDRBG_s_ReseedMsg
 
struct  AESCTRDRBG_s_GetRandomBytesMsg
 
struct  AESCTRDRBG_s_GenerateKeyMsg
 

Macros

#define AESCTRDRBG_S_MSG_TYPE_CONSTRUCT   (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 0U)))
 
#define AESCTRDRBG_S_MSG_TYPE_OPEN   (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 1U)))
 
#define AESCTRDRBG_S_MSG_TYPE_CLOSE   (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 2U)))
 
#define AESCTRDRBG_S_MSG_TYPE_RESEED   (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 3U)))
 
#define AESCTRDRBG_S_MSG_TYPE_GET_RANDOM_BYTES   (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 4U)))
 
#define AESCTRDRBG_S_MSG_TYPE_GENERATE_KEY   (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 5U)))
 
#define CONFIG_AESCTRDRBG_S_CONFIG_POOL_SIZE   1
 

Functions

psa_status_t AESCTRDRBG_s_handlePsaMsg (psa_msg_t *msg)
 Handles PSA messages for AES CTR DRBG secure driver. More...
 
void AESCTRDRBG_s_init (void)
 Initializes the AES CTR DRBG secure driver. More...
 

Macro Definition Documentation

§ AESCTRDRBG_S_MSG_TYPE_CONSTRUCT

#define AESCTRDRBG_S_MSG_TYPE_CONSTRUCT   (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 0U)))

§ AESCTRDRBG_S_MSG_TYPE_OPEN

#define AESCTRDRBG_S_MSG_TYPE_OPEN   (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 1U)))

§ AESCTRDRBG_S_MSG_TYPE_CLOSE

#define AESCTRDRBG_S_MSG_TYPE_CLOSE   (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 2U)))

§ AESCTRDRBG_S_MSG_TYPE_RESEED

#define AESCTRDRBG_S_MSG_TYPE_RESEED   (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 3U)))

§ AESCTRDRBG_S_MSG_TYPE_GET_RANDOM_BYTES

#define AESCTRDRBG_S_MSG_TYPE_GET_RANDOM_BYTES   (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 4U)))

§ AESCTRDRBG_S_MSG_TYPE_GENERATE_KEY

#define AESCTRDRBG_S_MSG_TYPE_GENERATE_KEY   (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 5U)))

§ CONFIG_AESCTRDRBG_S_CONFIG_POOL_SIZE

#define CONFIG_AESCTRDRBG_S_CONFIG_POOL_SIZE   1

Function Documentation

§ AESCTRDRBG_s_handlePsaMsg()

psa_status_t AESCTRDRBG_s_handlePsaMsg ( psa_msg_t *  msg)

Handles PSA messages for AES CTR DRBG secure driver.

Note
This function should be called by secure partition thread only.
Parameters
[in]msgpointer to PSA message
Return values
PSA_SUCCESSif successful.
PSA_ERROR_PROGRAMMER_ERRORif any args point to secure addresses.

§ AESCTRDRBG_s_init()

void AESCTRDRBG_s_init ( void  )

Initializes the AES CTR DRBG secure driver.

Note
This function should be called by secure partition thread only.
© Copyright 1995-2023, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale