diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha256_thread.c | |
parent | Initial commit. (diff) | |
download | ceph-upstream/18.2.2.tar.xz ceph-upstream/18.2.2.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha256_thread.c')
-rw-r--r-- | src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha256_thread.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha256_thread.c b/src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha256_thread.c new file mode 100644 index 000000000..c155c19d4 --- /dev/null +++ b/src/crypto/isa-l/isa-l_crypto/examples/saturation_test/sha256_thread.c @@ -0,0 +1,20 @@ + +#define HASH_THREAD +/* sha256 related params and structures*/ +#define DIGEST_NWORDS SHA256_DIGEST_NWORDS +#define MB_BUFS SHA256_MAX_LANES +#define HASH_CTX_MGR SHA256_HASH_CTX_MGR +#define HASH_CTX SHA256_HASH_CTX + +#define OSSL_THREAD_FUNC sha256_ossl_func +#define OSSL_HASH_FUNC SHA256 +#define MB_THREAD_FUNC sha256_mb_func +#define CTX_MGR_INIT sha256_ctx_mgr_init +#define CTX_MGR_SUBMIT sha256_ctx_mgr_submit +#define CTX_MGR_FLUSH sha256_ctx_mgr_flush + +#define rounds_buf SHA256_MAX_LANES + +#include "md5_thread.c" + +#undef HASH_THREAD |