![]() |
![]() |
#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>
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... | |
| #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 |
| psa_status_t AESCTRDRBG_s_handlePsaMsg | ( | psa_msg_t * | msg | ) |
Handles PSA messages for AES CTR DRBG secure driver.
| [in] | msg | pointer to PSA message |
| PSA_SUCCESS | if successful. |
| PSA_ERROR_PROGRAMMER_ERROR | if any args point to secure addresses. |
| void AESCTRDRBG_s_init | ( | void | ) |
Initializes the AES CTR DRBG secure driver.