aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-08-28 20:17:40 -0400
committerJack Lloyd <[email protected]>2015-08-28 20:17:40 -0400
commite76e1f5f41b2ead518061a33ebc833f5c642bc34 (patch)
tree4147da2b04bb38992c1568ed7d85a64b169e5a71 /src/build-data
parent89ae754db15c9e78ddd52cf7cd92caf253a2bd81 (diff)
Move GF(p) side channel countermeasure toggles to build.h
Some tweaks for point multiplication using fixed windows.
Diffstat (limited to 'src/build-data')
-rw-r--r--src/build-data/buildh.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in
index 5db2ce566..eaf4181b5 100644
--- a/src/build-data/buildh.in
+++ b/src/build-data/buildh.in
@@ -57,6 +57,22 @@
* If enabled the ECC implementation will use Montgomery ladder
* instead of a fixed window implementation.
*/
+#define BOTAN_POINTGFP_BLINDED_MULTIPLY_USE_MONTGOMERY_LADDER 0
+
+/*
+* Set number of bits used to generate mask for blinding the scalar of
+* a point multiplication. Set to zero to disable this side-channel
+* countermeasure.
+*/
+#define BOTAN_POINTGFP_SCALAR_BLINDING_BITS 20
+
+/*
+* Set number of bits used to generate mask for blinding the
+* representation of an ECC point. Set to zero to diable this
+* side-channel countermeasure.
+*/
+#define BOTAN_POINTGFP_RANDOMIZE_BLINDING_BITS 64
+
#define BOTAN_CURVE_GFP_USE_MONTGOMERY_LADDER 0
/* PK key consistency checking toggles */