![]() |
![]() |
#include <stdint.h>
#include <ti/drivers/crypto/CryptoCC26X4_s.h>
#include <ti/drivers/ECDSA.h>
#include <ti/drivers/spe/SecureCallback.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 | ECDSA_s_SecureCallback |
struct | ECDSA_s_ConstructMsg |
struct | ECDSA_s_OpenMsg |
struct | ECDSA_s_CallbackMsg |
struct | ECDSA_s_CloseMsg |
struct | ECDSA_s_SignMsg |
struct | ECDSA_s_VerifyMsg |
struct | ECDSA_s_CancelOperationMsg |
Macros | |
#define | ECDSA_S_MSG_TYPE(index) (CRYPTO_S_MSG_TYPE_INDEX_ECDSA | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + (index)))) |
#define | ECDSA_S_MSG_TYPE_CONSTRUCT ECDSA_S_MSG_TYPE(0U) |
#define | ECDSA_S_MSG_TYPE_OPEN ECDSA_S_MSG_TYPE(1U) |
#define | ECDSA_S_MSG_TYPE_REGISTER_CALLBACK ECDSA_S_MSG_TYPE(2U) |
#define | ECDSA_S_MSG_TYPE_CLOSE ECDSA_S_MSG_TYPE(3U) |
#define | ECDSA_S_MSG_TYPE_SIGN ECDSA_S_MSG_TYPE(4U) |
#define | ECDSA_S_MSG_TYPE_VERIFY ECDSA_S_MSG_TYPE(5U) |
#define | ECDSA_S_MSG_TYPE_CANCEL_OPERATION ECDSA_S_MSG_TYPE(6U) |
#define | CONFIG_ECDSA_S_CONFIG_POOL_SIZE 1 |
#define | ECDSA_SECURE_CALLBACK_COUNT (CONFIG_TI_DRIVERS_ECDSA_COUNT + CONFIG_ECDSA_S_CONFIG_POOL_SIZE) |
Functions | |
psa_status_t | ECDSA_s_handlePsaMsg (psa_msg_t *msg) |
Handles PSA messages for ECDSA secure driver. More... | |
void | ECDSA_s_init (void) |
Initializes the ECDSA secure driver. More... | |
#define ECDSA_S_MSG_TYPE | ( | index | ) | (CRYPTO_S_MSG_TYPE_INDEX_ECDSA | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + (index)))) |
#define ECDSA_S_MSG_TYPE_CONSTRUCT ECDSA_S_MSG_TYPE(0U) |
#define ECDSA_S_MSG_TYPE_OPEN ECDSA_S_MSG_TYPE(1U) |
#define ECDSA_S_MSG_TYPE_REGISTER_CALLBACK ECDSA_S_MSG_TYPE(2U) |
#define ECDSA_S_MSG_TYPE_CLOSE ECDSA_S_MSG_TYPE(3U) |
#define ECDSA_S_MSG_TYPE_SIGN ECDSA_S_MSG_TYPE(4U) |
#define ECDSA_S_MSG_TYPE_VERIFY ECDSA_S_MSG_TYPE(5U) |
#define ECDSA_S_MSG_TYPE_CANCEL_OPERATION ECDSA_S_MSG_TYPE(6U) |
#define CONFIG_ECDSA_S_CONFIG_POOL_SIZE 1 |
#define ECDSA_SECURE_CALLBACK_COUNT (CONFIG_TI_DRIVERS_ECDSA_COUNT + CONFIG_ECDSA_S_CONFIG_POOL_SIZE) |
psa_status_t ECDSA_s_handlePsaMsg | ( | psa_msg_t * | msg | ) |
Handles PSA messages for ECDSA secure driver.
[in] | msg | pointer to PSA message |
PSA_SUCCESS | if successful. |
PSA_ERROR_PROGRAMMER_ERROR | if any args point to secure addresses. |
void ECDSA_s_init | ( | void | ) |
Initializes the ECDSA secure driver.