Data Structures | Macros | Functions
ECDSACC26X4_s.h File Reference
#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>
Include dependency graph for ECDSACC26X4_s.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...
 

Macro Definition Documentation

§ ECDSA_S_MSG_TYPE

#define ECDSA_S_MSG_TYPE (   index)    (CRYPTO_S_MSG_TYPE_INDEX_ECDSA | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + (index))))

§ ECDSA_S_MSG_TYPE_CONSTRUCT

#define ECDSA_S_MSG_TYPE_CONSTRUCT   ECDSA_S_MSG_TYPE(0U)

§ ECDSA_S_MSG_TYPE_OPEN

#define ECDSA_S_MSG_TYPE_OPEN   ECDSA_S_MSG_TYPE(1U)

§ ECDSA_S_MSG_TYPE_REGISTER_CALLBACK

#define ECDSA_S_MSG_TYPE_REGISTER_CALLBACK   ECDSA_S_MSG_TYPE(2U)

§ ECDSA_S_MSG_TYPE_CLOSE

#define ECDSA_S_MSG_TYPE_CLOSE   ECDSA_S_MSG_TYPE(3U)

§ ECDSA_S_MSG_TYPE_SIGN

#define ECDSA_S_MSG_TYPE_SIGN   ECDSA_S_MSG_TYPE(4U)

§ ECDSA_S_MSG_TYPE_VERIFY

#define ECDSA_S_MSG_TYPE_VERIFY   ECDSA_S_MSG_TYPE(5U)

§ ECDSA_S_MSG_TYPE_CANCEL_OPERATION

#define ECDSA_S_MSG_TYPE_CANCEL_OPERATION   ECDSA_S_MSG_TYPE(6U)

§ CONFIG_ECDSA_S_CONFIG_POOL_SIZE

#define CONFIG_ECDSA_S_CONFIG_POOL_SIZE   1

§ ECDSA_SECURE_CALLBACK_COUNT

#define ECDSA_SECURE_CALLBACK_COUNT   (CONFIG_TI_DRIVERS_ECDSA_COUNT + CONFIG_ECDSA_S_CONFIG_POOL_SIZE)

Function Documentation

§ ECDSA_s_handlePsaMsg()

psa_status_t ECDSA_s_handlePsaMsg ( psa_msg_t *  msg)

Handles PSA messages for ECDSA 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.

§ ECDSA_s_init()

void ECDSA_s_init ( void  )

Initializes the ECDSA secure driver.

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