summaryrefslogtreecommitdiff
path: root/ecc-192.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-02-27 15:56:32 +0100
committerNiels Möller <nisse@lysator.liu.se>2013-02-27 15:56:32 +0100
commita3888205d9b599cc030f9a4b929e5273b32b53dd (patch)
tree5bb1959b6bd36c62e011637efa6c0a5cda3e4373 /ecc-192.c
parentc8841e6900453c963db7ab64270de9fc81a21180 (diff)
downloadnettle-a3888205d9b599cc030f9a4b929e5273b32b53dd.tar.gz
x86_64 assembly for ecc_192_modp
Diffstat (limited to 'ecc-192.c')
-rw-r--r--ecc-192.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ecc-192.c b/ecc-192.c
index e379a99b..9e785dc1 100644
--- a/ecc-192.c
+++ b/ecc-192.c
@@ -36,9 +36,15 @@
#include "ecc-192.h"
+#if HAVE_NATIVE_ecc_192_modp
+
+#define ecc_192_modp nettle_ecc_192_modp
+void
+ecc_192_modp (const struct ecc_curve *ecc, mp_limb_t *rp);
+
/* Use that p = 2^{192} - 2^64 - 1, to eliminate 128 bits at a time. */
-#if GMP_NUMB_BITS == 32
+#elif GMP_NUMB_BITS == 32
/* p is 6 limbs, p = B^6 - B^2 - 1 */
static void
ecc_192_modp (const struct ecc_curve *ecc UNUSED, mp_limb_t *rp)
@@ -89,7 +95,7 @@ ecc_192_modp (const struct ecc_curve *ecc UNUSED, mp_limb_t *rp)
}
#else
-#define ecc_192_modp ecc_generoc_modp
+#define ecc_192_modp ecc_generic_modp
#endif
const struct ecc_curve nettle_secp_192r1 =