39 #ifndef ti_drivers_cryptoutils_ecc_ECCParams__include 40 #define ti_drivers_cryptoutils_ecc_ECCParams__include 60 #define ECCParams_STATUS_SUCCESS (0) 68 #define ECCParams_STATUS_ERROR (-1) 98 #define ECCParams_CURVE_TYPE_NONE 0U 99 #define ECCParams_CURVE_TYPE_SHORT_WEIERSTRASS_AN3 1U 100 #define ECCParams_CURVE_TYPE_SHORT_WEIERSTRASS_GEN 2U 101 #define ECCParams_CURVE_TYPE_MONTGOMERY 3U 102 #define ECCParams_CURVE_TYPE_EDWARDS 4U 202 #define ECCPARAMS_CURVE25519_LENGTH 32u 207 #define ECCParams_FormatCurve25519PrivateKey ECCParams_formatCurve25519PrivateKey uint32_t ECCParams_CurveType
Enumeration of curve equations supported.
Definition: ECCParams.h:96
The CryptoKey type is an opaque representation of a cryptographic key.
const uint8_t * prime
Definition: ECCParams.h:117
const ECCParams_CurveType curveType
Definition: ECCParams.h:116
const ECCParams_CurveParams ECCParams_BrainpoolP512R1
The BrainpoolP512R1 curve in short Weierstrass form.
const ECCParams_CurveParams ECCParams_Wei25519
A short Weierstrass equivalent representation of Ed25519.
const ECCParams_CurveParams ECCParams_NISTP384
The NISTP384 curve in short Weierstrass form.
CryptoKey datastructure.
Definition: CryptoKey.h:192
const uint8_t * order
Definition: ECCParams.h:120
const ECCParams_CurveParams ECCParams_BrainpoolP256R1
The BrainpoolP256R1 curve in short Weierstrass form.
const uint8_t * b
Definition: ECCParams.h:119
const ECCParams_CurveParams ECCParams_NISTP256
The NISTP256 curve in short Weierstrass form.
int_fast16_t ECCParams_getUncompressedGeneratorPoint(const ECCParams_CurveParams *curveParams, uint8_t *buffer, size_t length)
Extracts the curve generator point from an ecliptic curve description.
int_fast16_t ECCParams_formatCurve25519PrivateKey(CryptoKey *myPrivateKey)
Formats a CryptoKey to conform to Curve25519 private key requirements.
const uint8_t * generatorX
Definition: ECCParams.h:123
uint8_t cofactor
Definition: ECCParams.h:121
const uint8_t * a
Definition: ECCParams.h:118
const ECCParams_CurveParams ECCParams_Curve25519
The Curve25519 curve in Montgomery form.
const size_t length
Definition: ECCParams.h:122
A structure containing the parameters of an elliptic curve in short Weierstrass form.
Definition: ECCParams.h:115
const ECCParams_CurveParams ECCParams_BrainpoolP384R1
The BrainpoolP384R1 curve in short Weierstrass form.
const ECCParams_CurveParams ECCParams_NISTP224
The NISTP224 curve in short Weierstrass form.
const ECCParams_CurveParams ECCParams_Ed25519
The Ed25519 curve in Edwards form.
struct ECCParams_CurveParams ECCParams_CurveParams
A structure containing the parameters of an elliptic curve in short Weierstrass form.
const uint8_t * generatorY
Definition: ECCParams.h:124
const ECCParams_CurveParams ECCParams_NISTP521
The NISTP521 curve in short Weierstrass form.