309 #ifndef ti_drivers_ECDH__include 310 #define ti_drivers_ECDH__include 340 #define ECDH_CMD_RESERVED (32) 354 #define ECDH_STATUS_RESERVED (-32) 369 #define ECDH_STATUS_SUCCESS (0) 377 #define ECDH_STATUS_ERROR (-1) 386 #define ECDH_STATUS_UNDEFINEDCMD (-2) 396 #define ECDH_STATUS_RESOURCE_UNAVAILABLE (-3) 404 #define ECDH_STATUS_RESULT_POINT_AT_INFINITY (-4) 412 #define ECDH_STATUS_RESULT_PRIVATE_KEY_LARGER_THAN_ORDER (-5) 420 #define ECDH_STATUS_RESULT_PUBLIC_KEY_NOT_ON_CURVE (-6) 569 int_fast16_t returnStatus,
688 int_fast16_t
ECDH_control(ECDH_Handle handle, uint32_t cmd,
void *args);
const CryptoKey * myPrivateKey
Definition: ECDH.h:523
const CryptoKey * myPrivateKey
Definition: ECDH.h:508
ECDH_ReturnBehavior_
The way in which ECC function calls return after performing an encryption + authentication or decrypt...
Definition: ECDH.h:466
The CryptoKey type is an opaque representation of a cryptographic key.
union ECDH_Operation_ ECDH_Operation
Union containing pointers to all supported operation structs.
ECDH_Handle ECDH_open(uint_least8_t index, ECDH_Params *params)
This function opens a given ECC peripheral.
ECC Parameters.
Definition: ECDH.h:581
void * custom
Definition: ECDH.h:585
void ECDH_OperationGeneratePublicKey_init(ECDH_OperationGeneratePublicKey *operation)
Function to initialize a ECDH_OperationGeneratePublicKey struct to its defaults.
struct ECDH_Params_ ECDH_Params
ECC Parameters.
ECDH_ReturnBehavior returnBehavior
Definition: ECDH.h:582
int_fast16_t ECDH_control(ECDH_Handle handle, uint32_t cmd, void *args)
Function performs implementation specific features on a given ECDH_Handle.
ECDH_CallbackFxn callbackFxn
Definition: ECDH.h:583
CryptoKey datastructure.
Definition: CryptoKey.h:210
struct ECDH_OperationComputeSharedSecret_ ECDH_OperationComputeSharedSecret
Struct containing the parameters required to compute the shared secret.
Struct containing the parameters required to generate a public key.
Definition: ECDH.h:506
A structure containing the parameters of an elliptic curve in short Weierstrass form.
Definition: ECCParams.h:70
void * object
Definition: ECDH.h:497
struct ECDH_OperationGeneratePublicKey_ ECDH_OperationGeneratePublicKey
Struct containing the parameters required to generate a public key.
const ECDH_Params ECDH_defaultParams
Default ECDH_Params structure.
void(* ECDH_CallbackFxn)(ECDH_Handle handle, int_fast16_t returnStatus, ECDH_Operation operation, ECDH_OperationType operationType)
The definition of a callback function used by the ECDH driver when used in ECDH_RETURN_BEHAVIOR_CALLB...
Definition: ECDH.h:568
const CryptoKey * theirPublicKey
Definition: ECDH.h:526
void ECDH_OperationComputeSharedSecret_init(ECDH_OperationComputeSharedSecret *operation)
Function to initialize a ECDH_OperationComputeSharedSecret struct to its defaults.
int_fast16_t ECDH_generatePublicKey(ECDH_Handle handle, ECDH_OperationGeneratePublicKey *operation)
Generates a public key for use in key agreement.
CryptoKey * sharedSecret
Definition: ECDH.h:529
void ECDH_init(void)
This function initializes the ECC module.
Union containing pointers to all supported operation structs.
Definition: ECDH.h:537
enum ECDH_OperationType_ ECDH_OperationType
Enum for the operation types supported by the driver.
void const * hwAttrs
Definition: ECDH.h:500
ECDH_OperationComputeSharedSecret * computeSharedSecret
Definition: ECDH.h:539
struct ECDH_Config_ ECDH_Config
ECC Global configuration.
int_fast16_t ECDH_computeSharedSecret(ECDH_Handle handle, ECDH_OperationComputeSharedSecret *operation)
Computes a shared secret.
ECC Global configuration.
Definition: ECDH.h:495
void ECDH_close(ECDH_Handle handle)
Function to close a ECC peripheral specified by the ECC handle.
struct ECDH_Config_ * ECDH_Handle
A handle that is returned from an ECDH_open() call.
Definition: ECDH.h:443
void ECDH_Params_init(ECDH_Params *params)
Function to initialize the ECDH_Params struct to its defaults.
uint32_t timeout
Definition: ECDH.h:584
ECDH_OperationGeneratePublicKey * generatePublicKey
Definition: ECDH.h:538
CryptoKey * myPublicKey
Definition: ECDH.h:511
ECDH_OperationType_
Enum for the operation types supported by the driver.
Definition: ECDH.h:545
const ECCParams_CurveParams * curve
Definition: ECDH.h:520
Struct containing the parameters required to compute the shared secret.
Definition: ECDH.h:519
const ECCParams_CurveParams * curve
Definition: ECDH.h:507
enum ECDH_ReturnBehavior_ ECDH_ReturnBehavior
The way in which ECC function calls return after performing an encryption + authentication or decrypt...