aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/newhope/newhope.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-08-30 07:49:46 -0400
committerJack Lloyd <[email protected]>2016-08-30 07:49:46 -0400
commit81eb15531bc236086a94b62e688d6b27d50f1ed5 (patch)
tree93302fcf87be0c8136471742da11a30a3328ca9d /src/lib/pubkey/newhope/newhope.cpp
parent5739c41504f8193b71e3b0ff6fbe9a508f3ece6a (diff)
Fix header guard, macro tidy
Diffstat (limited to 'src/lib/pubkey/newhope/newhope.cpp')
-rw-r--r--src/lib/pubkey/newhope/newhope.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/pubkey/newhope/newhope.cpp b/src/lib/pubkey/newhope/newhope.cpp
index fac0c13f3..d367cc982 100644
--- a/src/lib/pubkey/newhope/newhope.cpp
+++ b/src/lib/pubkey/newhope/newhope.cpp
@@ -19,6 +19,7 @@ typedef newhope_poly poly;
// Don't change this :)
#define PARAM_Q 12289
+#define PARAM_N 1024
#define NEWHOPE_POLY_BYTES 1792
#define NEWHOPE_SEED_BYTES 32
@@ -604,3 +605,6 @@ void newhope_shareda(unsigned char *sharedkey, const poly *sk, const unsigned ch
}
}
+
+#undef PARAM_N
+#undef PARAM_Q