xref: /isa-l_crypto/examples/saturation_test/sha1_thread.c (revision 8957a389f5d64ee2efc6641cf687254ffa866864)
1 
2 #define HASH_THREAD
3 /* sha1 related params and structures*/
4 #define DIGEST_NWORDS ISAL_SHA1_DIGEST_NWORDS
5 #define MB_BUFS       ISAL_SHA1_MAX_LANES
6 #define HASH_CTX_MGR  ISAL_SHA1_HASH_CTX_MGR
7 #define HASH_CTX      ISAL_SHA1_HASH_CTX
8 
9 #define OSSL_THREAD_FUNC sha1_ossl_func
10 #define OSSL_HASH_FUNC   SHA1
11 #define MB_THREAD_FUNC   sha1_mb_func
12 #define CTX_MGR_INIT     isal_sha1_ctx_mgr_init
13 #define CTX_MGR_SUBMIT   isal_sha1_ctx_mgr_submit
14 #define CTX_MGR_FLUSH    isal_sha1_ctx_mgr_flush
15 
16 #define rounds_buf ISAL_SHA1_MAX_LANES
17 
18 #include "md5_thread.c"
19 
20 #undef HASH_THREAD
21