394 #ifndef ti_drivers_ECDH__include 395 #define ti_drivers_ECDH__include 420 #define ECDH_STATUS_RESERVED (-32) 428 #define ECDH_STATUS_SUCCESS (0) 436 #define ECDH_STATUS_ERROR (-1) 446 #define ECDH_STATUS_RESOURCE_UNAVAILABLE (-2) 454 #define ECDH_STATUS_POINT_AT_INFINITY (-3) 462 #define ECDH_STATUS_PRIVATE_KEY_LARGER_EQUAL_ORDER (-4) 470 #define ECDH_STATUS_PRIVATE_KEY_ZERO (-5) 478 #define ECDH_STATUS_PUBLIC_KEY_NOT_ON_CURVE (-6) 487 #define ECDH_STATUS_PUBLIC_KEY_LARGER_THAN_PRIME (-7) 492 #define ECDH_STATUS_CANCELED (-8) 502 #define ECDH_STATUS_INVALID_KEY_SIZE (-9) 650 int_fast16_t returnStatus,
ECDH_OperationType
Enum for the operation types supported by the driver.
Definition: ECDH.h:626
ADC_Params params
Definition: Driver_Init.h:11
ECC Global configuration.
Definition: ECDH.h:515
The CryptoKey type is an opaque representation of a cryptographic key.
ECDH_Config * ECDH_Handle
A handle that is returned from an ECDH_open() call.
Definition: ECDH.h:526
ECDH_ReturnBehavior returnBehavior
Definition: ECDH.h:663
void ECDH_OperationGeneratePublicKey_init(ECDH_OperationGeneratePublicKey *operation)
Function to initialize an ECDH_OperationGeneratePublicKey struct to its defaults. ...
ECDH_OperationComputeSharedSecret * computeSharedSecret
Definition: ECDH.h:620
int_fast16_t ECDH_cancelOperation(ECDH_Handle handle)
Cancels an ongoing ECDH operation.
void * object
Definition: ECDH.h:517
void * custom
Definition: ECDH.h:666
Struct containing the parameters required to compute the shared secret.
Definition: ECDH.h:596
CryptoKey datastructure.
Definition: CryptoKey.h:192
const CryptoKey * theirPublicKey
Definition: ECDH.h:603
ECDH_CallbackFxn callbackFxn
Definition: ECDH.h:664
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:649
void ECDH_OperationComputeSharedSecret_init(ECDH_OperationComputeSharedSecret *operation)
Function to initialize an ECDH_OperationComputeSharedSecret struct to its defaults.
ECDH_OperationGeneratePublicKey * generatePublicKey
Definition: ECDH.h:619
int_fast16_t ECDH_generatePublicKey(ECDH_Handle handle, ECDH_OperationGeneratePublicKey *operation)
Generates a public key for use in key agreement.
const CryptoKey * myPrivateKey
Definition: ECDH.h:582
const CryptoKey * myPrivateKey
Definition: ECDH.h:600
const ECCParams_CurveParams * curve
Definition: ECDH.h:597
void ECDH_init(void)
This function initializes the ECC module.
ECC Parameters.
Definition: ECDH.h:662
ECDH_Handle ECDH_open(uint_least8_t index, const ECDH_Params *params)
This function opens a given ECC peripheral.
ECDH_PublicKeyDataFormat publicKeyDataFormat
Definition: ECDH.h:590
uint32_t timeout
Definition: ECDH.h:665
CryptoKey * sharedSecret
Definition: ECDH.h:606
ECDH_ReturnBehavior
The way in which ECC function calls return after performing an encryption + authentication or decrypt...
Definition: ECDH.h:549
ECDH_PublicKeyDataFormat
Definition: ECDH.h:567
int_fast16_t ECDH_computeSharedSecret(ECDH_Handle handle, ECDH_OperationComputeSharedSecret *operation)
Computes a shared secret.
Struct containing the parameters required to generate a public key.
Definition: ECDH.h:580
void ECDH_close(ECDH_Handle handle)
Function to close an ECC peripheral specified by the ECC handle.
const ECCParams_CurveParams * curve
Definition: ECDH.h:581
A structure containing the parameters of an elliptic curve in short Weierstrass form.
Definition: ECCParams.h:115
ECDH_Handle ECDH_construct(ECDH_Config *config, const ECDH_Params *params)
Constructs a new ECDH object.
void ECDH_Params_init(ECDH_Params *params)
Function to initialize the ECDH_Params struct to its defaults.
void const * hwAttrs
Definition: ECDH.h:520
CryptoKey * myPublicKey
Definition: ECDH.h:585
ECDH_PublicKeyDataFormat publicKeyDataFormat
Definition: ECDH.h:611
ECDH_PublicKeyDataFormat sharedSecretDataFormat
Definition: ECDH.h:612
Union containing pointers to all supported operation structs.
Definition: ECDH.h:618