340 #ifndef ti_drivers_ECDSA__include 341 #define ti_drivers_ECDSA__include 366 #define ECDSA_STATUS_RESERVED (-32) 374 #define ECDSA_STATUS_SUCCESS (0) 382 #define ECDSA_STATUS_ERROR (-1) 392 #define ECDSA_STATUS_RESOURCE_UNAVAILABLE (-2) 400 #define ECDSA_STATUS_INVALID_PMSN (-3) 408 #define ECDSA_STATUS_R_LARGER_THAN_ORDER (-4) 416 #define ECDSA_STATUS_S_LARGER_THAN_ORDER (-5) 424 #define ECDSA_STATUS_PUBLIC_KEY_NOT_ON_CURVE (-6) 433 #define ECDSA_STATUS_PUBLIC_KEY_LARGER_THAN_PRIME (-7) 440 #define ECDSA_STATUS_POINT_AT_INFINITY (-8) 445 #define ECDSA_STATUS_CANCELED (-9) 594 int_fast16_t returnStatus,
ECDSA_ReturnBehavior
The way in which ECDSA function calls return after performing an encryption + authentication or decry...
Definition: ECDSA.h:473
uint8_t * s
Definition: ECDSA.h:531
The CryptoKey type is an opaque representation of a cryptographic key.
const CryptoKey * myPrivateKey
Definition: ECDSA.h:514
const uint8_t * hash
Definition: ECDSA.h:523
void ECDSA_OperationSign_init(ECDSA_OperationSign *operation)
Function to initialize an ECDSA_OperationSign struct to its defaults.
void const * hwAttrs
Definition: ECDSA.h:506
const CryptoKey * theirPublicKey
Definition: ECDSA.h:543
void(* ECDSA_CallbackFxn)(ECDSA_Handle handle, int_fast16_t returnStatus, ECDSA_Operation operation, ECDSA_OperationType operationType)
The definition of a callback function used by the ECDSA driver when used in ECDSA_RETURN_BEHAVIOR_CAL...
Definition: ECDSA.h:593
ECDSA_ReturnBehavior returnBehavior
Definition: ECDSA.h:607
CryptoKey datastructure.
Definition: CryptoKey.h:210
const uint8_t * s
Definition: ECDSA.h:553
struct ECDSA_Config ECDSA_Config
ECDSA Global configuration.
ECDSA Global configuration.
Definition: ECDSA.h:501
ECDSA_Handle ECDSA_open(uint_least8_t index, ECDSA_Params *params)
This function opens a given ECDSA peripheral.
void ECDSA_close(ECDSA_Handle handle)
Function to close an ECDSA peripheral specified by the ECDSA handle.
A structure containing the parameters of an elliptic curve in short Weierstrass form.
Definition: ECCParams.h:111
void ECDSA_init(void)
This function initializes the ECDSA module.
Struct containing the parameters required for signing a message.
Definition: ECDSA.h:512
ECDSA Parameters.
Definition: ECDSA.h:606
const CryptoKey * pmsn
Definition: ECDSA.h:517
const ECCParams_CurveParams * curve
Definition: ECDSA.h:513
ECDSA_OperationType
Enum for the operation types supported by the driver.
Definition: ECDSA.h:570
void ECDSA_Params_init(ECDSA_Params *params)
Function to initialize the ECDSA_Params struct to its defaults.
const uint8_t * r
Definition: ECDSA.h:549
Union containing pointers to all supported operation structs.
Definition: ECDSA.h:562
int_fast16_t ECDSA_sign(ECDSA_Handle handle, ECDSA_OperationSign *operation)
Signs a hashed message.
void * custom
Definition: ECDSA.h:612
uint8_t * r
Definition: ECDSA.h:526
int_fast16_t ECDSA_verify(ECDSA_Handle handle, ECDSA_OperationVerify *operation)
Verifies a received signature matches a hash and public key.
Struct containing the parameters required for verifying a message.
Definition: ECDSA.h:541
void * object
Definition: ECDSA.h:503
ECDSA_CallbackFxn callbackFxn
Definition: ECDSA.h:608
struct ECDSA_Config * ECDSA_Handle
A handle that is returned from an ECDSA_open() call.
Definition: ECDSA.h:450
ECDSA_OperationVerify * verify
Definition: ECDSA.h:564
const uint8_t * hash
Definition: ECDSA.h:546
const ECCParams_CurveParams * curve
Definition: ECDSA.h:542
ECDSA_OperationSign * sign
Definition: ECDSA.h:563
uint32_t timeout
Definition: ECDSA.h:609
void ECDSA_OperationVerify_init(ECDSA_OperationVerify *operation)
Function to initialize an ECDSA_OperationSign struct to its defaults.
int_fast16_t ECDSA_cancelOperation(ECDSA_Handle handle)
Cancels an ongoing ECDSA operation.