348 #ifndef ti_drivers_ECDSA__include 349 #define ti_drivers_ECDSA__include 374 #define ECDSA_STATUS_RESERVED (-32) 382 #define ECDSA_STATUS_SUCCESS (0) 390 #define ECDSA_STATUS_ERROR (-1) 401 #define ECDSA_STATUS_RESOURCE_UNAVAILABLE (-2) 409 #define ECDSA_STATUS_R_LARGER_THAN_ORDER (-3) 417 #define ECDSA_STATUS_S_LARGER_THAN_ORDER (-4) 425 #define ECDSA_STATUS_PUBLIC_KEY_NOT_ON_CURVE (-5) 434 #define ECDSA_STATUS_PUBLIC_KEY_LARGER_THAN_PRIME (-6) 441 #define ECDSA_STATUS_POINT_AT_INFINITY (-7) 446 #define ECDSA_STATUS_CANCELED (-8) 456 #define ECDSA_STATUS_INVALID_KEY_SIZE (-10) 614 int_fast16_t returnStatus,
ECDSA_ReturnBehavior
The way in which ECDSA function calls return after performing an encryption + authentication or decry...
Definition: ECDSA.h:505
ADC_Params params
Definition: Driver_Init.h:11
uint8_t * s
Definition: ECDSA.h:542
The CryptoKey type is an opaque representation of a cryptographic key.
const CryptoKey * myPrivateKey
Definition: ECDSA.h:529
const uint8_t * hash
Definition: ECDSA.h:532
void ECDSA_OperationSign_init(ECDSA_OperationSign *operation)
Function to initialize an ECDSA_OperationSign struct to its defaults.
void const * hwAttrs
Definition: ECDSA.h:475
const CryptoKey * theirPublicKey
Definition: ECDSA.h:555
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:613
ECDSA_ReturnBehavior returnBehavior
Definition: ECDSA.h:628
const uint8_t * s
Definition: ECDSA.h:568
CryptoKey datastructure.
Definition: CryptoKey.h:196
ECDSA Global configuration.
Definition: ECDSA.h:469
void ECDSA_close(ECDSA_Handle handle)
Function to close an ECDSA peripheral specified by the ECDSA handle.
void ECDSA_init(void)
This function initializes the ECDSA module.
Struct containing the parameters required for signing a message.
Definition: ECDSA.h:526
const ECDSA_Params ECDSA_defaultParams
Default ECDSA_Params structure.
ECDSA Parameters.
Definition: ECDSA.h:626
const ECCParams_CurveParams * curve
Definition: ECDSA.h:528
ECDSA_OperationType
Enum for the operation types supported by the driver.
Definition: ECDSA.h:588
void ECDSA_Params_init(ECDSA_Params *params)
Function to initialize the ECDSA_Params struct to its defaults.
const uint8_t * r
Definition: ECDSA.h:562
Union containing pointers to all supported operation structs.
Definition: ECDSA.h:579
int_fast16_t ECDSA_sign(ECDSA_Handle handle, ECDSA_OperationSign *operation)
Signs a hashed message.
void * custom
Definition: ECDSA.h:635
ECDSA_Config * ECDSA_Handle
A handle that is returned from an ECDSA_open() call.
Definition: ECDSA.h:481
uint8_t * r
Definition: ECDSA.h:536
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:552
void * object
Definition: ECDSA.h:472
ECDSA_CallbackFxn callbackFxn
Definition: ECDSA.h:631
ECDSA_OperationVerify * verify
Definition: ECDSA.h:582
A structure containing the parameters of an elliptic curve.
Definition: ECCParams.h:139
const uint8_t * hash
Definition: ECDSA.h:558
ECDSA_Handle ECDSA_open(uint_least8_t index, const ECDSA_Params *params)
This function opens a given ECDSA peripheral.
const ECCParams_CurveParams * curve
Definition: ECDSA.h:554
ECDSA_OperationSign * sign
Definition: ECDSA.h:581
uint32_t timeout
Definition: ECDSA.h:632
ECDSA_Handle ECDSA_construct(ECDSA_Config *config, const ECDSA_Params *params)
Constructs a new ECDSA object.
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.