aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-03-12 15:21:34 -0500
committerRob Austein <sra@hactrn.net>2016-03-12 15:21:34 -0500
commitcf04c6c34994f545cbf509a6de4aed096e48aa61 (patch)
tree8e39d0de93341ea103ac51e9b77ca1def716af73
parentcddc0617c1ba68503b3a4187d2dbe6d2726d82f2 (diff)
parent906263d9b788ca039b98c3b2f21f1f76961ba4e3 (diff)
Merge branch 'master' into rpc
-rw-r--r--GNUmakefile2
-rw-r--r--ecdsa.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 0637f76..638a65a 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -70,7 +70,7 @@ KS_OBJ_FLASH = ${KS_OBJ_COMMON} ks_flash.o
KS_OBJ = ${KS_OBJ_MMAP}
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
CFLAGS += -DHAL_STATIC_HASH_STATE_BLOCKS=${STATIC_HASH_STATE_BLOCKS}
diff --git a/ecdsa.c b/ecdsa.c
index 6635cb0..429f05c 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -738,7 +738,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 */