OpenCoverage

m_sm3.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/sm3/m_sm3.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4static int init(EVP_MD_CTX *ctx)-
5{-
6 return
executed 29 times by 2 tests: return sm3_init(EVP_MD_CTX_md_data(ctx));
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
sm3_init(EVP_MD_CTX_md_data(ctx));
executed 29 times by 2 tests: return sm3_init(EVP_MD_CTX_md_data(ctx));
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
29
7}-
8-
9static int update(EVP_MD_CTX *ctx, const void *data, size_t count)-
10{-
11 return
executed 96 times by 2 tests: return sm3_update(EVP_MD_CTX_md_data(ctx), data, count);
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
sm3_update(EVP_MD_CTX_md_data(ctx), data, count);
executed 96 times by 2 tests: return sm3_update(EVP_MD_CTX_md_data(ctx), data, count);
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
96
12}-
13-
14static int final(EVP_MD_CTX *ctx, unsigned char *md)-
15{-
16 return
executed 29 times by 2 tests: return sm3_final(md, EVP_MD_CTX_md_data(ctx));
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
sm3_final(md, EVP_MD_CTX_md_data(ctx));
executed 29 times by 2 tests: return sm3_final(md, EVP_MD_CTX_md_data(ctx));
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
29
17}-
18-
19static const EVP_MD sm3_md = {-
20 1143,-
21 1144,-
22 32,-
23 0,-
24 init,-
25 update,-
26 final,-
27 -
28 ((void *)0)-
29 ,-
30 -
31 ((void *)0)-
32 ,-
33 64,-
34 sizeof(EVP_MD *) + sizeof(SM3_CTX),-
35};-
36-
37const EVP_MD *EVP_sm3(void)-
38{-
39 return
executed 1979 times by 2 tests: return &sm3_md;
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
&sm3_md;
executed 1979 times by 2 tests: return &sm3_md;
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
1979
40}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2