443 #ifndef ti_drivers_ECDSA__include 444 #define ti_drivers_ECDSA__include 469 #define ECDSA_STATUS_RESERVED (-32) 477 #define ECDSA_STATUS_SUCCESS (0) 485 #define ECDSA_STATUS_ERROR (-1) 496 #define ECDSA_STATUS_RESOURCE_UNAVAILABLE (-2) 504 #define ECDSA_STATUS_R_LARGER_THAN_ORDER (-3) 512 #define ECDSA_STATUS_S_LARGER_THAN_ORDER (-4) 520 #define ECDSA_STATUS_PUBLIC_KEY_NOT_ON_CURVE (-5) 529 #define ECDSA_STATUS_PUBLIC_KEY_LARGER_THAN_PRIME (-6) 536 #define ECDSA_STATUS_POINT_AT_INFINITY (-7) 541 #define ECDSA_STATUS_CANCELED (-8) 551 #define ECDSA_STATUS_INVALID_KEY_SIZE (-10) 559 #define ECDSA_STATUS_KEYSTORE_ERROR (-11) 561 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) 566 #define ECDSA_STATUS_NO_VALID_CURVE_TYPE_PROVIDED (-12) 571 #define ECDSA_STATUS_INVALID_KEY_ENCODING (-13) 576 #define ECDSA_STATUS_HARDWARE_ERROR (-14) 645 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) 690 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) 719 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) 783 int_fast16_t returnStatus,
ECDSA_CurveType
Enum for the curve types supported by the driver.
Definition: ECDSA.h:649
ECDSA_ReturnBehavior
The way in which ECDSA function calls return after performing an encryption + authentication or decry...
Definition: ECDSA.h:627
ADC_Params params
Definition: Driver_Init.h:11
uint8_t * s
Definition: ECDSA.h:707
The CryptoKey type is an opaque representation of a cryptographic key.
const CryptoKey * myPrivateKey
Definition: ECDSA.h:694
ECDSA_CurveType curveType
Definition: ECDSA.h:720
const uint8_t * hash
Definition: ECDSA.h:697
void ECDSA_OperationSign_init(ECDSA_OperationSign *operation)
Function to initialize an ECDSA_OperationSign struct to its defaults.
void const * hwAttrs
Definition: ECDSA.h:597
const CryptoKey * theirPublicKey
Definition: ECDSA.h:724
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:782
ECDSA_ReturnBehavior returnBehavior
Definition: ECDSA.h:797
const uint8_t * s
Definition: ECDSA.h:737
CryptoKey datastructure.
Definition: CryptoKey.h:208
ECDSA_DigestLength
Enum for the hash digest lengths in bits supported by the driver.
Definition: ECDSA.h:676
ECDSA Global configuration.
Definition: ECDSA.h:591
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:688
const ECDSA_Params ECDSA_defaultParams
Default ECDSA_Params structure.
ECDSA Parameters.
Definition: ECDSA.h:795
ECDSA_CurveLength
Enum for signature sizes in bits supported by the driver.
Definition: ECDSA.h:663
const ECCParams_CurveParams * curve
Definition: ECDSA.h:693
ECDSA_OperationType
Enum for the operation types supported by the driver.
Definition: ECDSA.h:757
void ECDSA_Params_init(ECDSA_Params *params)
Function to initialize the ECDSA_Params struct to its defaults.
const uint8_t * r
Definition: ECDSA.h:731
Union containing pointers to all supported operation structs.
Definition: ECDSA.h:748
int_fast16_t ECDSA_sign(ECDSA_Handle handle, ECDSA_OperationSign *operation)
Signs a hashed message.
void * custom
Definition: ECDSA.h:804
ECDSA_Config * ECDSA_Handle
A handle that is returned from an ECDSA_open() call.
Definition: ECDSA.h:603
uint8_t * r
Definition: ECDSA.h:701
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:717
void * object
Definition: ECDSA.h:594
ECDSA_CallbackFxn callbackFxn
Definition: ECDSA.h:800
ECDSA_OperationVerify * verify
Definition: ECDSA.h:751
ECDSA_CurveType curveType
Definition: ECDSA.h:691
A structure containing the parameters of an elliptic curve.
Definition: ECCParams.h:143
const uint8_t * hash
Definition: ECDSA.h:727
ECDSA_Handle ECDSA_open(uint_least8_t index, const ECDSA_Params *params)
This function opens a given ECDSA peripheral.
ECDSA_OperationSign * sign
Definition: ECDSA.h:750
uint32_t timeout
Definition: ECDSA.h:801
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.