[Cryptech-Commits] [sw/thirdparty/libtfm] 06/10: Bump size of maximum bignum up to pass hsmbully signature test.

git at cryptech.is git at cryptech.is
Tue Jul 7 18:23:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository sw/thirdparty/libtfm.

commit 108e78987bc39f11d0abbba7dbfe80704cbf0282
Author: Rob Austein <sra at hactrn.net>
Date:   Wed Jun 24 20:02:41 2015 -0400

    Bump size of maximum bignum up to pass hsmbully signature test.
---
 GNUmakefile | 4 ++--
 1 file 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 $@



More information about the Commits mailing list