diff options
Diffstat (limited to 'cipher/ecc-common.h')
-rw-r--r-- | cipher/ecc-common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cipher/ecc-common.h b/cipher/ecc-common.h index 614baae0..e806059b 100644 --- a/cipher/ecc-common.h +++ b/cipher/ecc-common.h @@ -20,10 +20,12 @@ #ifndef GCRY_ECC_COMMON_H #define GCRY_ECC_COMMON_H + /* Definition of a curve. */ typedef struct { enum gcry_mpi_ec_models model;/* The model descrinbing this curve. */ + enum ecc_dialects dialect; /* The dialect used with the curve. */ gcry_mpi_t p; /* Prime specifying the field GF(p). */ gcry_mpi_t a; /* First coefficient of the Weierstrass equation. */ gcry_mpi_t b; /* Second coefficient of the Weierstrass equation. @@ -76,6 +78,7 @@ gcry_sexp_t _gcry_ecc_get_param_sexp (const char *name); void _gcry_ecc_curve_free (elliptic_curve_t *E); elliptic_curve_t _gcry_ecc_curve_copy (elliptic_curve_t E); const char *_gcry_ecc_model2str (enum gcry_mpi_ec_models model); +const char *_gcry_ecc_dialect2str (enum ecc_dialects dialect); gcry_mpi_t _gcry_ecc_ec2os (gcry_mpi_t x, gcry_mpi_t y, gcry_mpi_t p); gcry_error_t _gcry_ecc_os2ec (mpi_point_t result, gcry_mpi_t value); |