aboutsummaryrefslogtreecommitdiffhomepage
path: root/ext
diff options
context:
space:
mode:
authorJ08nY2020-02-28 15:03:36 +0100
committerJ08nY2020-02-28 15:03:36 +0100
commitb387d00511a03dc20e15ac55fcbf07f3dfa79ce0 (patch)
tree6f7c7cb0168366b2862a6e42e20067652cbc443b /ext
parent4eafe2d49fc7406861609c5af12b850741bbe5a0 (diff)
downloadpyecsca-codegen-b387d00511a03dc20e15ac55fcbf07f3dfa79ce0.tar.gz
pyecsca-codegen-b387d00511a03dc20e15ac55fcbf07f3dfa79ce0.tar.zst
pyecsca-codegen-b387d00511a03dc20e15ac55fcbf07f3dfa79ce0.zip
Update libtommath, use multi init and clear.
Diffstat (limited to 'ext')
-rw-r--r--ext/Makefile6
m---------ext/libtommath0
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/Makefile b/ext/Makefile
index 6f1bd1f..db0a50d 100644
--- a/ext/Makefile
+++ b/ext/Makefile
@@ -12,14 +12,14 @@ tommath_dir:
mkdir -p ../pyecsca/codegen/tommath
host: LIBNAME=libtommath-HOST.a
-host: CFLAGS=-DMP_NO_DEV_URANDOM -DMP_LOW_MEM -DMP_PREC=10
+host: CFLAGS=-DMP_NO_DEV_URANDOM -DMP_LOW_MEM -DMP_DEFAULT_DIGIT_COUNT=10
host: tommath_dir
$(MAKE) -C libtommath clean
$(MAKE) -C libtommath
cp libtommath/$(LIBNAME) ../pyecsca/codegen/tommath/$(LIBNAME)
stm32f0: CROSS_COMPILE=arm-none-eabi-
-stm32f0: CFLAGS=-mcpu=cortex-m0 -mthumb -mfloat-abi=soft -ffunction-sections -DMP_NO_DEV_URANDOM -DMP_32BIT -DMP_LOW_MEM -DMP_PREC=10
+stm32f0: CFLAGS=-mcpu=cortex-m0 -mthumb -mfloat-abi=soft -ffunction-sections -DMP_NO_DEV_URANDOM -DMP_32BIT -DMP_LOW_MEM -DMP_DEFAULT_DIGIT_COUNT=10
stm32f0: LDFLAGS=--specs=nano.specs --specs=nosys.specs -T ../pyecsca/codegen/hal/stm32f0/LinkerScript.ld -Wl,--gc-sections -lm -mthumb -mcpu=cortex-m0
stm32f0: COMPILE_SIZE=1
stm32f0: LIBNAME=libtommath-CW308_STM32F0.a
@@ -29,7 +29,7 @@ stm32f0: tommath_dir
cp libtommath/$(LIBNAME) ../pyecsca/codegen/tommath/$(LIBNAME)
stm32f3: CROSS_COMPILE=arm-none-eabi-
-stm32f3: CFLAGS=-mcpu=cortex-m4 -mthumb -mfloat-abi=soft -mfpu=fpv4-sp-d16 -fmessage-length=0 -ffunction-sections -DMP_NO_DEV_URANDOM -DMP_32BIT -DMP_LOW_MEM -DMP_PREC=10
+stm32f3: CFLAGS=-mcpu=cortex-m4 -mthumb -mfloat-abi=soft -mfpu=fpv4-sp-d16 -fmessage-length=0 -ffunction-sections -DMP_NO_DEV_URANDOM -DMP_32BIT -DMP_LOW_MEM -DMP_DEFAULT_DIGIT_COUNT=10
stm32f3: LDFLAGS=--specs=nano.specs -T ../pyecsca/codegen/hal/stm32f3/LinkerScript.ld -Wl,--gc-sections -lm -mthumb -mcpu=cortex-m4
stm32f3: COMPILE_SIZE=1
stm32f3: LIBNAME=libtommath-CW308_STM32F3.a
diff --git a/ext/libtommath b/ext/libtommath
-Subproject 220a4deb31736983b08ac81b77536fe8f2d9dad
+Subproject ffd80665d12a492d1c72b6355b9a0332186967a