[Cryptech-Commits] [sw/libhal] branch master updated: Disable ECDSA static-test-vectors hack, fix call to hal_get_random() which was using the old (pre-hal_core_t) calling sequence.

git at cryptech.is git at cryptech.is
Sat Mar 12 20:29:19 UTC 2016


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/libhal.

The following commit(s) were added to refs/heads/master by this push:
       new  906263d   Disable ECDSA static-test-vectors hack, fix call to hal_get_random() which was using the old (pre-hal_core_t) calling sequence.
906263d is described below

commit 906263d9b788ca039b98c3b2f21f1f76961ba4e3
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Sat Mar 12 15:09:45 2016 -0500

    Disable ECDSA static-test-vectors hack, fix call to hal_get_random()
    which was using the old (pre-hal_core_t) calling sequence.
---
 GNUmakefile | 2 +-
 ecdsa.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/GNUmakefile b/GNUmakefile
index 769d11f..2a11683 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -39,7 +39,7 @@ IO_OBJ_I2C 	= hal_io_i2c.o
 IO_OBJ		= ${IO_OBJ_EIM}
 
 TFMDIR		:= $(abspath ../thirdparty/libtfm)
-CFLAGS		+= -g3 -Wall -fPIC -std=c99 -I${TFMDIR} -DHAL_ECDSA_DEBUG_ONLY_STATIC_TEST_VECTOR_RANDOM=1
+CFLAGS		+= -g3 -Wall -fPIC -std=c99 -I${TFMDIR}
 LDFLAGS		:= -g3 -L${TFMDIR} -ltfm
 
 all: ${LIB}
diff --git a/ecdsa.c b/ecdsa.c
index eeab252..de382fd 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -722,7 +722,7 @@ static inline hal_error_t get_random(void *buffer, const size_t length)
 
 static inline hal_error_t get_random(void *buffer, const size_t length)
 {
-  return hal_get_random(buffer, length);
+  return hal_get_random(NULL, buffer, length);
 }
 
 #endif /* HAL_ECDSA_DEBUG_ONLY_STATIC_TEST_VECTOR_RANDOM */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list