aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-06-24 20:02:41 -0400
committerRob Austein <sra@hactrn.net>2015-06-24 20:02:41 -0400
commit108e78987bc39f11d0abbba7dbfe80704cbf0282 (patch)
treea44c3539529ef9429d706d29f322f4e420c72fec
parent8eeb885e5bc92ecba31631f1cbf4da2d131f44de (diff)
Bump size of maximum bignum up to pass hsmbully signature test.
-rw-r--r--GNUmakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index ee0b421..be66adb 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -16,7 +16,7 @@ REPO := $(notdir $(basename ${URL}))
HDR := ${REPO}/src/headers/tfm.h
LIB := ${REPO}/libtfm.a
-FLAGS := CFLAGS='-fPIC -Wall -W -Wshadow -Isrc/headers -g3 -DFP_MAX_SIZE="(${BITS}+(8*DIGIT_BIT))"'
+FLAGS := CFLAGS='-fPIC -Wall -W -Wshadow -Isrc/headers -g3 -DFP_MAX_SIZE="(${BITS}*2+(8*DIGIT_BIT))"'
TARGETS := $(notdir ${HDR} ${LIB})
@@ -46,7 +46,7 @@ endif
$(notdir ${HDR}): ${HDR}
echo >$@.tmp '/* Configure size of largest bignum we want to handle -- see notes in tfm.pdf */'
- echo >>$@.tmp '#define FP_MAX_SIZE (${BITS}+(8*DIGIT_BIT))'
+ echo >>$@.tmp '#define FP_MAX_SIZE (${BITS}*2+(8*DIGIT_BIT))'
echo >>$@.tmp ''
cat >>$@.tmp $^
mv -f $@.tmp $@