xref: /isa-l_crypto/examples/saturation_test/sha256_thread.c (revision 8957a389f5d64ee2efc6641cf687254ffa866864)
1 
2 #define HASH_THREAD
3 /* sha256 related params and structures*/
4 #define DIGEST_NWORDS ISAL_SHA256_DIGEST_NWORDS
5 #define MB_BUFS       ISAL_SHA256_MAX_LANES
6 #define HASH_CTX_MGR  ISAL_SHA256_HASH_CTX_MGR
7 #define HASH_CTX      ISAL_SHA256_HASH_CTX
8 
9 #define OSSL_THREAD_FUNC sha256_ossl_func
10 #define OSSL_HASH_FUNC   SHA256
11 #define MB_THREAD_FUNC   sha256_mb_func
12 #define CTX_MGR_INIT     isal_sha256_ctx_mgr_init
13 #define CTX_MGR_SUBMIT   isal_sha256_ctx_mgr_submit
14 #define CTX_MGR_FLUSH    isal_sha256_ctx_mgr_flush
15 
16 #define rounds_buf ISAL_SHA256_MAX_LANES
17 
18 #include "md5_thread.c"
19 
20 #undef HASH_THREAD
21