From e6918187568dbd01842d8d1d2c808ce16a894239 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:54:28 +0200 Subject: Adding upstream version 18.2.2. Signed-off-by: Daniel Baumann --- .../examples/saturation_test/sha1_thread.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha1_thread.c (limited to 'src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha1_thread.c') diff --git a/src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha1_thread.c b/src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha1_thread.c new file mode 100644 index 000000000..5ec7eb04a --- /dev/null +++ b/src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha1_thread.c @@ -0,0 +1,20 @@ + +#define HASH_THREAD +/* sha1 related params and structures*/ +#define DIGEST_NWORDS SHA1_DIGEST_NWORDS +#define MB_BUFS SHA1_MAX_LANES +#define HASH_CTX_MGR SHA1_HASH_CTX_MGR +#define HASH_CTX SHA1_HASH_CTX + +#define OSSL_THREAD_FUNC sha1_ossl_func +#define OSSL_HASH_FUNC SHA1 +#define MB_THREAD_FUNC sha1_mb_func +#define CTX_MGR_INIT sha1_ctx_mgr_init +#define CTX_MGR_SUBMIT sha1_ctx_mgr_submit +#define CTX_MGR_FLUSH sha1_ctx_mgr_flush + +#define rounds_buf SHA1_MAX_LANES + +#include "md5_thread.c" + +#undef HASH_THREAD -- cgit v1.2.3