![]() |
![]() |
============================================================================
This file contains a common definition for eliptic curve structures used throughout the ECC based drivers.
Elliptic curves may be expressed in multiple ways. The most common ones are the short Weierstrass form y^3 = x^2 + a*x + b mod p, where a and b are integer curve parameters and p is the prime of the curve. Another commonly found form is the Montgomery form By^2 = x^3 + Ax^2 + x mod p, where B and A are integer curve parameters and p is the prime of the curve. The last common form is the Edwards form x^2 + y^2 = 1 + dx^2y^2 mod p, where d is an integer curve parameter and p is the prime of the curve.
This API expects curves in short Weierstrass form. The other curve expressions may be converted to short Weierstrass form using substitution.
#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
Data Structures | |
struct | ECCParams_CurveParams_ |
A structure containing the parameters of an elliptic curve in short Weierstrass form. More... | |
Typedefs | |
typedef struct ECCParams_CurveParams_ | ECCParams_CurveParams |
A structure containing the parameters of an elliptic curve in short Weierstrass form. More... | |
Variables | |
const ECCParams_CurveParams | ECCParams_NISTP256 |
The NISTP256 curve in short Weierstrass form. More... | |
typedef struct ECCParams_CurveParams_ ECCParams_CurveParams |
A structure containing the parameters of an elliptic curve in short Weierstrass form.
Elliptical Curve Cryptography (ECC) prime curve.
The equation used to define the curve is expressed in the short Weierstrass form y^3 = x^2 + a*x + b
const ECCParams_CurveParams ECCParams_NISTP256 |
The NISTP256 curve in short Weierstrass form.