summaryrefslogtreecommitdiff
path: root/ecc-192.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-08-25 21:17:39 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-08-25 21:17:39 +0200
commita45118aa18568472d7fb7a614b8ea5721f89d1ef (patch)
tree9ccc964fc2e82883d54dbeb894194124a393e3ac /ecc-192.c
parent3a64c5a7540c984bff15151eb3c83245f0110e8c (diff)
downloadnettle-a45118aa18568472d7fb7a614b8ea5721f89d1ef.tar.gz
Additional function pointers in struct ecc_curve.
To support curve25519 point operations.
Diffstat (limited to 'ecc-192.c')
-rw-r--r--ecc-192.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ecc-192.c b/ecc-192.c
index fe624dee..29ff7f6a 100644
--- a/ecc-192.c
+++ b/ecc-192.c
@@ -39,6 +39,9 @@
#include <assert.h>
+/* FIXME: Remove ecc.h include, once prototypes of more internal
+ functions are moved to ecc-internal.h */
+#include "ecc.h"
#include "ecc-internal.h"
#define USE_REDC 0
@@ -118,11 +121,19 @@ const struct ecc_curve nettle_secp_192r1 =
ECC_PIPPENGER_K,
ECC_PIPPENGER_C,
+ ECC_MUL_A_ITCH (ECC_LIMB_SIZE),
+ ECC_MUL_G_ITCH (ECC_LIMB_SIZE),
+ ECC_J_TO_A_ITCH (ECC_LIMB_SIZE),
+
ecc_192_modp,
ecc_generic_redc,
ecc_192_modp,
ecc_generic_modq,
+ ecc_mul_a,
+ ecc_mul_g,
+ ecc_j_to_a,
+
ecc_p,
ecc_b,
ecc_q,