303 #ifndef ti_drivers_ECDH__include 304 #define ti_drivers_ECDH__include 334 #define ECDH_CMD_RESERVED (32) 348 #define ECDH_STATUS_RESERVED (-32) 363 #define ECDH_STATUS_SUCCESS (0) 371 #define ECDH_STATUS_ERROR (-1) 380 #define ECDH_STATUS_UNDEFINEDCMD (-2) 390 #define ECDH_STATUS_RESOURCE_UNAVAILABLE (-3) 398 #define ECDH_STATUS_RESULT_POINT_AT_INFINITY (-4) 406 #define ECDH_STATUS_RESULT_PRIVATE_KEY_LARGER_THAN_ORDER (-5) 414 #define ECDH_STATUS_RESULT_PUBLIC_KEY_NOT_ON_CURVE (-6) 544 typedef int_fast16_t (*
ECDH_KDFFxn) (
void *driverHandle,
const uint8_t *seedEntropy,
size_t seedEntropyLength,
CryptoKey derivedKeys[], uint32_t derivedKeysCount);
644 int_fast16_t
ECDH_control(ECDH_Handle handle, uint32_t cmd,
void *args);
ECDH_ReturnBehavior_
The way in which ECC function calls return after performing an encryption + authentication or decrypt...
Definition: ECDH.h:470
The CryptoKey type is an opaque representation of a cryptographic key.
int_fast16_t ECDH_calculateSharedEntropy(ECDH_Handle handle, const CryptoKey *sharedSecret, const ECDH_KDFFxn kdf, void *kdfPrimitiveDriverHandle, CryptoKey derivedKeys[], uint32_t derivedKeysCount)
Calculates key material.
ECDH_Handle ECDH_open(uint_least8_t index, ECDH_Params *params)
This function opens a given ECC peripheral.
ECC Parameters.
Definition: ECDH.h:495
void * custom
Definition: ECDH.h:500
struct ECDH_Params_ ECDH_Params
ECC Parameters.
ECDH_ReturnBehavior returnBehavior
Definition: ECDH.h:497
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:498
CryptoKey datastructure.
Definition: CryptoKey.h:210
A structure containing the parameters of an elliptic curve in short Weierstrass form.
Definition: ECCParams.h:70
void * object
Definition: ECDH.h:518
int_fast16_t ECDH_computeSharedSecret(ECDH_Handle handle, const ECCParams_CurveParams *eccParams, const CryptoKey *myPrivateKey, const CryptoKey *theirPublicKey, CryptoKey *sharedSecret)
Computes a shared secret.
const ECDH_Params ECDH_defaultParams
Default ECDH_Params structure.
void ECDH_init(void)
This function initializes the ECC module.
void const * hwAttrs
Definition: ECDH.h:521
int_fast16_t ECDH_generatePublicKey(ECDH_Handle handle, const ECCParams_CurveParams *eccParams, const CryptoKey *myPrivateKey, CryptoKey *myPublicKey)
Generates a public key for use in key agreement.
struct ECDH_Config_ ECDH_Config
ECC Global configuration.
int_fast16_t(* ECDH_KDFFxn)(void *driverHandle, const uint8_t *seedEntropy, size_t seedEntropyLength, CryptoKey derivedKeys[], uint32_t derivedKeysCount)
Function that implements a key derivation function (KDF)
Definition: ECDH.h:544
ECC Global configuration.
Definition: ECDH.h:516
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:436
bool doNotValidateKeys
Definition: ECDH.h:496
void ECDH_Params_init(ECDH_Params *params)
Function to initialize the ECDH_Params struct to its defaults.
uint32_t timeout
Definition: ECDH.h:499
void(* ECDH_CallbackFxn)(ECDH_Handle handle, int_fast16_t operationStatus)
The definition of a callback function used by the ECC driver when used in ECDH_RETURN_BEHAVIOR_CALLBA...
Definition: ECDH.h:447
enum ECDH_ReturnBehavior_ ECDH_ReturnBehavior
The way in which ECC function calls return after performing an encryption + authentication or decrypt...