diff options
author | Rob Austein <sra@hactrn.net> | 2015-06-24 20:02:41 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-06-24 20:02:41 -0400 |
commit | 108e78987bc39f11d0abbba7dbfe80704cbf0282 (patch) | |
tree | a44c3539529ef9429d706d29f322f4e420c72fec /GNUmakefile | |
parent | 8eeb885e5bc92ecba31631f1cbf4da2d131f44de (diff) |
Bump size of maximum bignum up to pass hsmbully signature test.
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 4 |
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 $@ |