[Cryptech-Commits] [sw/libhal] 02/02: No-op out core alloc/free when no cores exist.
git at cryptech.is
git at cryptech.is
Mon Jul 16 22:40:16 UTC 2018
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.
commit 64d415775323dd8a435a0db3548d6b642df4ad99
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Mon Jul 16 14:02:57 2018 -0400
No-op out core alloc/free when no cores exist.
---
hash.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hash.c b/hash.c
index e143e49..cb9eb1f 100644
--- a/hash.c
+++ b/hash.c
@@ -80,6 +80,11 @@ static hal_error_t sw_hash_core_sha512(hal_hash_state_t *);
#endif /* HAL_ENABLE_SOFTWARE_HASH_CORES */
+#if HAL_ONLY_USE_SOFTWARE_HASH_CORES
+#define hal_core_alloc(x, y, z) HAL_ERROR_CORE_NOT_FOUND
+#define hal_core_free(x)
+#endif
+
/*
* HMAC magic numbers.
*/
More information about the Commits
mailing list