[Cryptech-Commits] [sw/libhal] 06/07: Client-side rsa and ecdsa need to call remote get_random.
git at cryptech.is
git at cryptech.is
Tue Mar 29 20:58:40 UTC 2016
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch rpc
in repository sw/libhal.
commit 6cd42920fee5d3e4d0dcd5e1e798d5d4d6708e1b
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Tue Mar 29 16:50:10 2016 -0400
Client-side rsa and ecdsa need to call remote get_random.
---
ecdsa.c | 4 ++++
rsa.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/ecdsa.c b/ecdsa.c
index 429f05c..e46904d 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -83,6 +83,10 @@
#define HAL_ECDSA_DEBUG_ONLY_STATIC_TEST_VECTOR_RANDOM 0
#endif
+#ifdef RPC_CLIENT
+#define hal_get_random(core, buffer, length) hal_rpc_get_random(buffer, length)
+#endif
+
/*
* Whether we want debug output.
*/
diff --git a/rsa.c b/rsa.c
index b257604..bf52e8a 100644
--- a/rsa.c
+++ b/rsa.c
@@ -86,6 +86,10 @@
#define HAL_RSA_USE_MODEXP 1
#endif
+#ifdef RPC_CLIENT
+#define hal_get_random(core, buffer, length) hal_rpc_get_random(buffer, length)
+#endif
+
/*
* Whether we want debug output.
*/
More information about the Commits
mailing list