Data Structures | Macros | Functions
ECDHCC26X4_s.h File Reference
#include <stdint.h>
#include <ti/drivers/crypto/CryptoCC26X4_s.h>
#include <ti/drivers/ECDH.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 ECDHCC26X4_s.h:

Go to the source code of this file.

Data Structures

struct  ECDH_s_SecureCallback
 
struct  ECDH_s_ConstructMsg
 
struct  ECDH_s_OpenMsg
 
struct  ECDH_s_CallbackMsg
 
struct  ECDH_s_CloseMsg
 
struct  ECDH_s_GeneratePublicKeyMsg
 
struct  ECDH_s_ComputeSharedSecretMsg
 
struct  ECDH_s_CancelOperationMsg
 

Macros

#define ECDH_S_MSG_TYPE(index)   (CRYPTO_S_MSG_TYPE_INDEX_ECDH | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + (index))))
 
#define ECDH_S_MSG_TYPE_CONSTRUCT   ECDH_S_MSG_TYPE(0U)
 
#define ECDH_S_MSG_TYPE_OPEN   ECDH_S_MSG_TYPE(1U)
 
#define ECDH_S_MSG_TYPE_REGISTER_CALLBACK   ECDH_S_MSG_TYPE(2U)
 
#define ECDH_S_MSG_TYPE_CLOSE   ECDH_S_MSG_TYPE(3U)
 
#define ECDH_S_MSG_TYPE_GENERATE_PUBLIC_KEY   ECDH_S_MSG_TYPE(4U)
 
#define ECDH_S_MSG_TYPE_COMPUTE_SHARED_SECRET   ECDH_S_MSG_TYPE(5U)
 
#define ECDH_S_MSG_TYPE_CANCEL_OPERATION   ECDH_S_MSG_TYPE(6U)
 
#define CONFIG_ECDH_S_CONFIG_POOL_SIZE   1
 
#define ECDH_SECURE_CALLBACK_COUNT   (CONFIG_TI_DRIVERS_ECDH_COUNT + CONFIG_ECDH_S_CONFIG_POOL_SIZE)
 

Functions

psa_status_t ECDH_s_handlePsaMsg (psa_msg_t *msg)
 Handles PSA messages for ECDH secure driver. More...
 
void ECDH_s_init (void)
 Initializes the ECDH secure driver. More...
 

Macro Definition Documentation

§ ECDH_S_MSG_TYPE

#define ECDH_S_MSG_TYPE (   index)    (CRYPTO_S_MSG_TYPE_INDEX_ECDH | ((int32_t)1 << (CRYPTO_S_MSG_TYPE_SHIFT + (index))))

§ ECDH_S_MSG_TYPE_CONSTRUCT

#define ECDH_S_MSG_TYPE_CONSTRUCT   ECDH_S_MSG_TYPE(0U)

§ ECDH_S_MSG_TYPE_OPEN

#define ECDH_S_MSG_TYPE_OPEN   ECDH_S_MSG_TYPE(1U)

§ ECDH_S_MSG_TYPE_REGISTER_CALLBACK

#define ECDH_S_MSG_TYPE_REGISTER_CALLBACK   ECDH_S_MSG_TYPE(2U)

§ ECDH_S_MSG_TYPE_CLOSE

#define ECDH_S_MSG_TYPE_CLOSE   ECDH_S_MSG_TYPE(3U)

§ ECDH_S_MSG_TYPE_GENERATE_PUBLIC_KEY

#define ECDH_S_MSG_TYPE_GENERATE_PUBLIC_KEY   ECDH_S_MSG_TYPE(4U)

§ ECDH_S_MSG_TYPE_COMPUTE_SHARED_SECRET

#define ECDH_S_MSG_TYPE_COMPUTE_SHARED_SECRET   ECDH_S_MSG_TYPE(5U)

§ ECDH_S_MSG_TYPE_CANCEL_OPERATION

#define ECDH_S_MSG_TYPE_CANCEL_OPERATION   ECDH_S_MSG_TYPE(6U)

§ CONFIG_ECDH_S_CONFIG_POOL_SIZE

#define CONFIG_ECDH_S_CONFIG_POOL_SIZE   1

§ ECDH_SECURE_CALLBACK_COUNT

#define ECDH_SECURE_CALLBACK_COUNT   (CONFIG_TI_DRIVERS_ECDH_COUNT + CONFIG_ECDH_S_CONFIG_POOL_SIZE)

Function Documentation

§ ECDH_s_handlePsaMsg()

psa_status_t ECDH_s_handlePsaMsg ( psa_msg_t *  msg)

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

§ ECDH_s_init()

void ECDH_s_init ( void  )

Initializes the ECDH 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