457 #ifndef ti_drivers_ECDSA__include 458 #define ti_drivers_ECDSA__include 483 #define ECDSA_STATUS_RESERVED (-32) 491 #define ECDSA_STATUS_SUCCESS (0) 499 #define ECDSA_STATUS_ERROR (-1) 510 #define ECDSA_STATUS_RESOURCE_UNAVAILABLE (-2) 518 #define ECDSA_STATUS_R_LARGER_THAN_ORDER (-3) 526 #define ECDSA_STATUS_S_LARGER_THAN_ORDER (-4) 534 #define ECDSA_STATUS_PUBLIC_KEY_NOT_ON_CURVE (-5) 543 #define ECDSA_STATUS_PUBLIC_KEY_LARGER_THAN_PRIME (-6) 550 #define ECDSA_STATUS_POINT_AT_INFINITY (-7) 555 #define ECDSA_STATUS_CANCELED (-8) 565 #define ECDSA_STATUS_INVALID_KEY_SIZE (-10) 573 #define ECDSA_STATUS_KEYSTORE_ERROR (-11) 640 #if ((DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) || (DeviceFamily_PARENT == DeviceFamily_PARENT_CC35XX)) 685 #if ((DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) || (DeviceFamily_PARENT == DeviceFamily_PARENT_CC35XX)) 714 #if ((DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) || (DeviceFamily_PARENT == DeviceFamily_PARENT_CC35XX)) 778 int_fast16_t returnStatus,
ECDSA_CurveType
Enum for the curve types supported by the driver.
Definition: ECDSA.h:644
ECDSA_ReturnBehavior
The way in which ECDSA function calls return after performing an encryption + authentication or decry...
Definition: ECDSA.h:622
uint8_t * s
Definition: ECDSA.h:702
The CryptoKey type is an opaque representation of a cryptographic key.
const CryptoKey * myPrivateKey
Definition: ECDSA.h:689
ECDSA_CurveType curveType
Definition: ECDSA.h:715
const uint8_t * hash
Definition: ECDSA.h:692
void ECDSA_OperationSign_init(ECDSA_OperationSign *operation)
Function to initialize an ECDSA_OperationSign struct to its defaults.
void const * hwAttrs
Definition: ECDSA.h:592
const CryptoKey * theirPublicKey
Definition: ECDSA.h:719
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:777
ECDSA_ReturnBehavior returnBehavior
Definition: ECDSA.h:792
const uint8_t * s
Definition: ECDSA.h:732
CryptoKey datastructure.
Definition: CryptoKey.h:211
ECDSA_DigestLength
Enum for the hash digest lengths in bits supported by the driver.
Definition: ECDSA.h:671
ECDSA Global configuration.
Definition: ECDSA.h:586
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:683
const ECDSA_Params ECDSA_defaultParams
Default ECDSA_Params structure.
ECDSA Parameters.
Definition: ECDSA.h:790
ECDSA_CurveLength
Enum for signature sizes in bits supported by the driver.
Definition: ECDSA.h:658
const ECCParams_CurveParams * curve
Definition: ECDSA.h:688
ECDSA_OperationType
Enum for the operation types supported by the driver.
Definition: ECDSA.h:752
void ECDSA_Params_init(ECDSA_Params *params)
Function to initialize the ECDSA_Params struct to its defaults.
const uint8_t * r
Definition: ECDSA.h:726
Union containing pointers to all supported operation structs.
Definition: ECDSA.h:743
int_fast16_t ECDSA_sign(ECDSA_Handle handle, ECDSA_OperationSign *operation)
Signs a hashed message.
void * custom
Definition: ECDSA.h:799
ECDSA_Config * ECDSA_Handle
A handle that is returned from an ECDSA_open() call.
Definition: ECDSA.h:598
uint8_t * r
Definition: ECDSA.h:696
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:712
void * object
Definition: ECDSA.h:589
ECDSA_CallbackFxn callbackFxn
Definition: ECDSA.h:795
ECDSA_OperationVerify * verify
Definition: ECDSA.h:746
ECDSA_CurveType curveType
Definition: ECDSA.h:686
A structure containing the parameters of an elliptic curve.
Definition: ECCParams.h:143
const uint8_t * hash
Definition: ECDSA.h:722
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:745
uint32_t timeout
Definition: ECDSA.h:796
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.