From 108e78987bc39f11d0abbba7dbfe80704cbf0282 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 24 Jun 2015 20:02:41 -0400 Subject: Bump size of maximum bignum up to pass hsmbully signature test. --- GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'GNUmakefile') 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 $@ -- cgit v1.2.3