summaryrefslogtreecommitdiffstats
path: root/src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha512_thread.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha512_thread.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha512_thread.c b/src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha512_thread.c
new file mode 100644
index 000000000..5861835a8
--- /dev/null
+++ b/src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha512_thread.c
@@ -0,0 +1,20 @@
+
+#define HASH_THREAD
+/* sha512 related params and structures*/
+#define DIGEST_NWORDS (SHA512_DIGEST_NWORDS * 2)
+#define MB_BUFS SHA512_MAX_LANES
+#define HASH_CTX_MGR SHA512_HASH_CTX_MGR
+#define HASH_CTX SHA512_HASH_CTX
+
+#define OSSL_THREAD_FUNC sha512_ossl_func
+#define OSSL_HASH_FUNC SHA512
+#define MB_THREAD_FUNC sha512_mb_func
+#define CTX_MGR_INIT sha512_ctx_mgr_init
+#define CTX_MGR_SUBMIT sha512_ctx_mgr_submit
+#define CTX_MGR_FLUSH sha512_ctx_mgr_flush
+
+#define rounds_buf SHA512_MAX_LANES
+
+#include "md5_thread.c"
+
+#undef HASH_THREAD