Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/sm3/m_sm3.c |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | static int init(EVP_MD_CTX *ctx) | - |
5 | { | - |
6 | return executed 29 times by 2 tests: sm3_init(EVP_MD_CTX_md_data(ctx));return sm3_init(EVP_MD_CTX_md_data(ctx)); Executed by:
executed 29 times by 2 tests: return sm3_init(EVP_MD_CTX_md_data(ctx)); Executed by:
| 29 |
7 | } | - |
8 | - | |
9 | static int update(EVP_MD_CTX *ctx, const void *data, size_t count) | - |
10 | { | - |
11 | return executed 96 times by 2 tests: sm3_update(EVP_MD_CTX_md_data(ctx), data, count);return sm3_update(EVP_MD_CTX_md_data(ctx), data, count); Executed by:
executed 96 times by 2 tests: return sm3_update(EVP_MD_CTX_md_data(ctx), data, count); Executed by:
| 96 |
12 | } | - |
13 | - | |
14 | static int final(EVP_MD_CTX *ctx, unsigned char *md) | - |
15 | { | - |
16 | return executed 29 times by 2 tests: sm3_final(md, EVP_MD_CTX_md_data(ctx));return sm3_final(md, EVP_MD_CTX_md_data(ctx)); Executed by:
executed 29 times by 2 tests: return sm3_final(md, EVP_MD_CTX_md_data(ctx)); Executed by:
| 29 |
17 | } | - |
18 | - | |
19 | static 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 | - | |
37 | const EVP_MD *EVP_sm3(void) | - |
38 | { | - |
39 | return executed 1979 times by 2 tests: &sm3_md;return &sm3_md; Executed by:
executed 1979 times by 2 tests: return &sm3_md; Executed by:
| 1979 |
40 | } | - |
Switch to Source code | Preprocessed file |