ecp_curves: Added mbedtls_ecp_modulus_setup()
.
This patch introduces a new static method, responsible for automatically initialising an modulus structure, based on the curve id and a modulus type selector. Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
This commit is contained in:
parent
ec718afb41
commit
d2ca802329
2 changed files with 207 additions and 1 deletions
|
@ -141,6 +141,14 @@ typedef enum {
|
|||
MBEDTLS_ECP_TYPE_MONTGOMERY, /* y^2 = x^3 + a x^2 + x */
|
||||
} mbedtls_ecp_curve_type;
|
||||
|
||||
/*
|
||||
* Curve moduli types
|
||||
*/
|
||||
typedef enum {
|
||||
MBEDTLS_ECP_MOD_COORDINATE = 0,
|
||||
MBEDTLS_ECP_MOD_SCALAR
|
||||
} mbedtls_ecp_modulus_type;
|
||||
|
||||
/**
|
||||
* Curve information, for use by other modules.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue