Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/m_streebog.c |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | static int | - |
7 | streebog_init256(EVP_MD_CTX *ctx) | - |
8 | { | - |
9 | return executed 1283 times by 2 tests: STREEBOG256_Init(ctx->md_data);return STREEBOG256_Init(ctx->md_data); Executed by:
executed 1283 times by 2 tests: return STREEBOG256_Init(ctx->md_data); Executed by:
| 1283 |
10 | } | - |
11 | - | |
12 | static int | - |
13 | streebog_update256(EVP_MD_CTX *ctx, const void *data, size_t count) | - |
14 | { | - |
15 | return executed 4675 times by 2 tests: STREEBOG256_Update(ctx->md_data, data, count);return STREEBOG256_Update(ctx->md_data, data, count); Executed by:
executed 4675 times by 2 tests: return STREEBOG256_Update(ctx->md_data, data, count); Executed by:
| 4675 |
16 | } | - |
17 | - | |
18 | static int | - |
19 | streebog_final256(EVP_MD_CTX *ctx, unsigned char *md) | - |
20 | { | - |
21 | return executed 1283 times by 2 tests: STREEBOG256_Final(md, ctx->md_data);return STREEBOG256_Final(md, ctx->md_data); Executed by:
executed 1283 times by 2 tests: return STREEBOG256_Final(md, ctx->md_data); Executed by:
| 1283 |
22 | } | - |
23 | - | |
24 | static int | - |
25 | streebog_init512(EVP_MD_CTX *ctx) | - |
26 | { | - |
27 | return executed 3 times by 1 test: STREEBOG512_Init(ctx->md_data);return STREEBOG512_Init(ctx->md_data); Executed by:
executed 3 times by 1 test: return STREEBOG512_Init(ctx->md_data); Executed by:
| 3 |
28 | } | - |
29 | - | |
30 | static int | - |
31 | streebog_update512(EVP_MD_CTX *ctx, const void *data, size_t count) | - |
32 | { | - |
33 | return executed 3 times by 1 test: STREEBOG512_Update(ctx->md_data, data, count);return STREEBOG512_Update(ctx->md_data, data, count); Executed by:
executed 3 times by 1 test: return STREEBOG512_Update(ctx->md_data, data, count); Executed by:
| 3 |
34 | } | - |
35 | - | |
36 | static int | - |
37 | streebog_final512(EVP_MD_CTX *ctx, unsigned char *md) | - |
38 | { | - |
39 | return executed 3 times by 1 test: STREEBOG512_Final(md, ctx->md_data);return STREEBOG512_Final(md, ctx->md_data); Executed by:
executed 3 times by 1 test: return STREEBOG512_Final(md, ctx->md_data); Executed by:
| 3 |
40 | } | - |
41 | - | |
42 | static const EVP_MD streebog256_md = { | - |
43 | .type = 941, | - |
44 | .pkey_type = 0, | - |
45 | .md_size = 32, | - |
46 | .flags = 0x0004, | - |
47 | .init = streebog_init256, | - |
48 | .update = streebog_update256, | - |
49 | .final = streebog_final256, | - |
50 | .block_size = 64, | - |
51 | .ctx_size = sizeof(EVP_MD *) + sizeof(STREEBOG_CTX), | - |
52 | }; | - |
53 | - | |
54 | static const EVP_MD streebog512_md = { | - |
55 | .type = 942, | - |
56 | .pkey_type = 0, | - |
57 | .md_size = 64, | - |
58 | .flags = 0x0004, | - |
59 | .init = streebog_init512, | - |
60 | .update = streebog_update512, | - |
61 | .final = streebog_final512, | - |
62 | .block_size = 64, | - |
63 | .ctx_size = sizeof(EVP_MD *) + sizeof(STREEBOG_CTX), | - |
64 | }; | - |
65 | - | |
66 | const EVP_MD * | - |
67 | EVP_streebog256(void) | - |
68 | { | - |
69 | return executed 753 times by 33 tests: (&streebog256_md);return (&streebog256_md); Executed by:
executed 753 times by 33 tests: return (&streebog256_md); Executed by:
| 753 |
70 | } | - |
71 | - | |
72 | const EVP_MD * | - |
73 | EVP_streebog512(void) | - |
74 | { | - |
75 | return executed 666 times by 33 tests: (&streebog512_md);return (&streebog512_md); Executed by:
executed 666 times by 33 tests: return (&streebog512_md); Executed by:
| 666 |
76 | } | - |
Switch to Source code | Preprocessed file |