33 #ifndef ti_drivers_aesctrdrbg_AESCTRDRBGX4_s__include 34 #define ti_drivers_aesctrdrbg_AESCTRDRBGX4_s__include 41 #include <third_party/tfm/interface/include/psa/error.h> 42 #include <third_party/tfm/interface/include/psa/service.h> 55 #define AESCTRDRBG_S_MSG_TYPE_CONSTRUCT \ 56 (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 0U))) 57 #define AESCTRDRBG_S_MSG_TYPE_OPEN (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 1U))) 58 #define AESCTRDRBG_S_MSG_TYPE_CLOSE \ 59 (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 2U))) 60 #define AESCTRDRBG_S_MSG_TYPE_RESEED \ 61 (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 3U))) 62 #define AESCTRDRBG_S_MSG_TYPE_GET_RANDOM_BYTES \ 63 (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 4U))) 64 #define AESCTRDRBG_S_MSG_TYPE_GENERATE_KEY \ 65 (CRYPTO_S_MSG_TYPE_INDEX_AESCTRDRBG | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + 5U))) 71 #ifndef CONFIG_AESCTRDRBG_S_CONFIG_POOL_SIZE 72 #define CONFIG_AESCTRDRBG_S_CONFIG_POOL_SIZE 1 AESCTRDRBG_Handle handle
Definition: AESCTRDRBGX4_s.h:118
size_t additionalDataLength
Definition: AESCTRDRBGX4_s.h:106
const void * additionalData
Definition: AESCTRDRBGX4_s.h:105
AESCTRDRBG_Handle handle
Definition: AESCTRDRBGX4_s.h:98
const AESCTRDRBG_Params * params
Definition: AESCTRDRBGX4_s.h:87
psa_status_t AESCTRDRBG_s_handlePsaMsg(psa_msg_t *msg)
Handles PSA messages for AES CTR DRBG secure driver.
AES Global configuration.
Definition: AESCommon.h:154
void AESCTRDRBG_s_init(void)
Initializes the AES CTR DRBG secure driver.
CryptoKey datastructure.
Definition: CryptoKey.h:192
const void * seed
Definition: AESCTRDRBGX4_s.h:104
void * randomBytes
Definition: AESCTRDRBGX4_s.h:112
Definition: AESCTRDRBGX4_s.h:109
AESCTRDRBG Parameters.
Definition: AESCTRDRBG.h:442
Definition: AESCTRDRBGX4_s.h:90
Definition: AESCTRDRBGX4_s.h:116
Definition: AESCTRDRBGX4_s.h:96
Definition: AESCTRDRBGX4_s.h:101
AESCTRDRBG driver header.
uint_least8_t index
Definition: AESCTRDRBGX4_s.h:92
size_t randomBytesSize
Definition: AESCTRDRBGX4_s.h:113
const AESCTRDRBG_Params * params
Definition: AESCTRDRBGX4_s.h:93
AESCTRDRBG_Handle handle
Definition: AESCTRDRBGX4_s.h:111
CryptoKey * randomKey
Definition: AESCTRDRBGX4_s.h:119
AESCTRDRBG_Config * config
Definition: AESCTRDRBGX4_s.h:86
AESCTRDRBG_Handle handle
Definition: AESCTRDRBGX4_s.h:103
Definition: AESCTRDRBGX4_s.h:84