346 #ifndef ti_drivers_Es_ECDSA__include 347 #define ti_drivers_ECDSA__include 377 #define ECDSA_CMD_RESERVED (32) 391 #define ECDSA_STATUS_RESERVED (-32) 406 #define ECDSA_STATUS_SUCCESS (0) 414 #define ECDSA_STATUS_ERROR (-1) 423 #define ECDSA_STATUS_UNDEFINEDCMD (-2) 433 #define ECDSA_STATUS_RESOURCE_UNAVAILABLE (-3) 442 #define ECDSA_STATUS_RESULT_INVALID_PMSN (-4) 450 #define ECDSA_STATUS_RESULT_R_LARGER_THAN_ORDER (-5) 458 #define ECDSA_STATUS_RESULT_S_LARGER_THAN_ORDER (-5) 466 #define ECDSA_STATUS_RESULT_PUBLIC_KEY_NOT_ON_CURVE (-7) 632 int_fast16_t returnStatus,
713 int_fast16_t
ECDSA_control(ECDSA_Handle handle, uint32_t cmd,
void *args);
void * object
Definition: ECDSA.h:541
Struct containing the parameters required for signing a message.
Definition: ECDSA.h:550
enum ECDSA_ReturnBehavior_ ECDSA_ReturnBehavior
The way in which ECDSA function calls return after performing an encryption + authentication or decry...
const uint8_t * s
Definition: ECDSA.h:591
The CryptoKey type is an opaque representation of a cryptographic key.
Union containing pointers to all supported operation structs.
Definition: ECDSA.h:600
struct ECDSA_OperationVerify_ ECDSA_OperationVerify
Struct containing the parameters required for verifying a message.
void const * hwAttrs
Definition: ECDSA.h:544
void ECDSA_OperationSign_init(ECDSA_OperationSign *operation)
Function to initialize a ECDSA_OperationSign struct to its defaults.
ECDSA_ReturnBehavior returnBehavior
Definition: ECDSA.h:645
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:631
ECDSA_OperationVerify * verify
Definition: ECDSA.h:602
int_fast16_t ECDSA_control(ECDSA_Handle handle, uint32_t cmd, void *args)
Function performs implementation specific features on a given ECDSA_Handle.
CryptoKey datastructure.
Definition: CryptoKey.h:210
const uint8_t * r
Definition: ECDSA.h:587
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 a ECDSA peripheral specified by the ECDSA handle.
A structure containing the parameters of an elliptic curve in short Weierstrass form.
Definition: ECCParams.h:70
const ECCParams_CurveParams * curve
Definition: ECDSA.h:551
void ECDSA_init(void)
This function initializes the ECDSA module.
ECDSA Parameters.
Definition: ECDSA.h:644
ECDSA_CallbackFxn callbackFxn
Definition: ECDSA.h:646
ECDSA_ReturnBehavior_
The way in which ECDSA function calls return after performing an encryption + authentication or decry...
Definition: ECDSA.h:511
const uint8_t * hash
Definition: ECDSA.h:584
struct ECDSA_Params_ ECDSA_Params
ECDSA Parameters.
const CryptoKey * myPrivateKey
Definition: ECDSA.h:552
ECDSA Global configuration.
Definition: ECDSA.h:539
void ECDSA_Params_init(ECDSA_Params *params)
Function to initialize the ECDSA_Params struct to its defaults.
ECDSA_OperationType_
Enum for the operation types supported by the driver.
Definition: ECDSA.h:608
uint8_t * s
Definition: ECDSA.h:569
struct ECDSA_OperationSign_ ECDSA_OperationSign
Struct containing the parameters required for signing a message.
int_fast16_t ECDSA_sign(ECDSA_Handle handle, ECDSA_OperationSign *operation)
Signs a hashed message.
int_fast16_t ECDSA_verify(ECDSA_Handle handle, ECDSA_OperationVerify *operation)
Verifies a received signature matches a hash and public key.
uint8_t * r
Definition: ECDSA.h:564
void * custom
Definition: ECDSA.h:650
const CryptoKey * theirPublicKey
Definition: ECDSA.h:581
uint32_t timeout
Definition: ECDSA.h:647
struct ECDSA_Config_ ECDSA_Config
ECDSA Global configuration.
union ECDSA_Operation_ ECDSA_Operation
Union containing pointers to all supported operation structs.
struct ECDSA_Config_ * ECDSA_Handle
A handle that is returned from an ECDSA_open() call.
Definition: ECDSA.h:488
Struct containing the parameters required for verifying a message.
Definition: ECDSA.h:579
enum ECDSA_OperationType_ ECDSA_OperationType
Enum for the operation types supported by the driver.
void ECDSA_OperationVerify_init(ECDSA_OperationVerify *operation)
Function to initialize a ECDSA_OperationSign struct to its defaults.
const CryptoKey * pmsn
Definition: ECDSA.h:555
const ECCParams_CurveParams * curve
Definition: ECDSA.h:580
ECDSA_OperationSign * sign
Definition: ECDSA.h:601
const uint8_t * hash
Definition: ECDSA.h:561