diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-04-02 21:48:39 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-04-02 21:50:28 +0200 |
commit | fed208e129ccd61b19b0036d1ff5f55b62b496c2 (patch) | |
tree | 831c868c1bf0df076556a88a12848183f6b6b575 /lib/crypto-backend.h | |
parent | 59b455c597e7bc94f817e05a1aa5ed2950522268 (diff) | |
download | gnutls-fed208e129ccd61b19b0036d1ff5f55b62b496c2.tar.gz |
Removed elliptic curve code from gnutls. Use nettle's implementation.
Diffstat (limited to 'lib/crypto-backend.h')
-rw-r--r-- | lib/crypto-backend.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/lib/crypto-backend.h b/lib/crypto-backend.h index 4975f4a005..955e4bd1e8 100644 --- a/lib/crypto-backend.h +++ b/lib/crypto-backend.h @@ -206,7 +206,7 @@ /* parameters should not be larger than this limit */ #define DSA_PUBLIC_PARAMS 4 #define RSA_PUBLIC_PARAMS 2 -#define ECC_PUBLIC_PARAMS 8 +#define ECC_PUBLIC_PARAMS 2 #define MAX_PRIV_PARAMS_SIZE GNUTLS_MAX_PK_PARAMS /* ok for RSA and DSA */ @@ -214,7 +214,7 @@ /* parameters should not be larger than this limit */ #define DSA_PRIVATE_PARAMS 5 #define RSA_PRIVATE_PARAMS 8 -#define ECC_PRIVATE_PARAMS 9 +#define ECC_PRIVATE_PARAMS 3 #if MAX_PRIV_PARAMS_SIZE - RSA_PRIVATE_PARAMS < 0 #error INCREASE MAX_PRIV_PARAMS @@ -262,15 +262,9 @@ * [8] is k (private key) */ -#define ECC_PRIME 0 -#define ECC_ORDER 1 -#define ECC_A 2 -#define ECC_B 3 -#define ECC_GX 4 -#define ECC_GY 5 -#define ECC_X 6 -#define ECC_Y 7 -#define ECC_K 8 +#define ECC_X 0 +#define ECC_Y 1 +#define ECC_K 2 #define DSA_P 0 #define DSA_Q 1 |