Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/m_gost2814789.c |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | static int | - |
7 | gost2814789_init(EVP_MD_CTX *ctx) | - |
8 | { | - |
9 | return executed 8 times by 1 test: GOST2814789IMIT_Init(ctx->md_data,return GOST2814789IMIT_Init(ctx->md_data, 824); Executed by:
executed 8 times by 1 test: return GOST2814789IMIT_Init(ctx->md_data, 824); Executed by:
| 8 |
10 | 824); executed 8 times by 1 test: return GOST2814789IMIT_Init(ctx->md_data, 824); Executed by:
| 8 |
11 | } | - |
12 | - | |
13 | static int | - |
14 | gost2814789_update(EVP_MD_CTX *ctx, const void *data, size_t count) | - |
15 | { | - |
16 | return executed 8 times by 1 test: GOST2814789IMIT_Update(ctx->md_data, data, count);return GOST2814789IMIT_Update(ctx->md_data, data, count); Executed by:
executed 8 times by 1 test: return GOST2814789IMIT_Update(ctx->md_data, data, count); Executed by:
| 8 |
17 | } | - |
18 | - | |
19 | static int | - |
20 | gost2814789_final(EVP_MD_CTX *ctx, unsigned char *md) | - |
21 | { | - |
22 | return executed 8 times by 1 test: GOST2814789IMIT_Final(md, ctx->md_data);return GOST2814789IMIT_Final(md, ctx->md_data); Executed by:
executed 8 times by 1 test: return GOST2814789IMIT_Final(md, ctx->md_data); Executed by:
| 8 |
23 | } | - |
24 | - | |
25 | static int | - |
26 | gost2814789_md_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2) | - |
27 | { | - |
28 | GOST2814789IMIT_CTX *gctx = ctx->md_data; | - |
29 | - | |
30 | switch (cmd) { | - |
31 | case executed 8 times by 1 test: 0x3:case 0x3: Executed by:
executed 8 times by 1 test: case 0x3: Executed by:
| 8 |
32 | return executed 8 times by 1 test: Gost2814789_set_key(&gctx->cipher, p2, p1);return Gost2814789_set_key(&gctx->cipher, p2, p1); Executed by:
executed 8 times by 1 test: return Gost2814789_set_key(&gctx->cipher, p2, p1); Executed by:
| 8 |
33 | case executed 8 times by 1 test: 0x4:case 0x4: Executed by:
executed 8 times by 1 test: case 0x4: Executed by:
| 8 |
34 | return executed 8 times by 1 test: Gost2814789_set_sbox(&gctx->cipher, p1);return Gost2814789_set_sbox(&gctx->cipher, p1); Executed by:
executed 8 times by 1 test: return Gost2814789_set_sbox(&gctx->cipher, p1); Executed by:
| 8 |
35 | } | - |
36 | return never executed: -2;return -2; never executed: return -2; | 0 |
37 | } | - |
38 | - | |
39 | static const EVP_MD gost2814789imit_md = { | - |
40 | .type = 815, | - |
41 | .pkey_type = 0, | - |
42 | .md_size = 4, | - |
43 | .flags = 0, | - |
44 | .init = gost2814789_init, | - |
45 | .update = gost2814789_update, | - |
46 | .final = gost2814789_final, | - |
47 | .block_size = 8, | - |
48 | .ctx_size = sizeof(EVP_MD *) + sizeof(GOST2814789IMIT_CTX), | - |
49 | .md_ctrl = gost2814789_md_ctrl, | - |
50 | }; | - |
51 | - | |
52 | const EVP_MD * | - |
53 | EVP_gost2814789imit(void) | - |
54 | { | - |
55 | return executed 625 times by 33 tests: (&gost2814789imit_md);return (&gost2814789imit_md); Executed by:
executed 625 times by 33 tests: return (&gost2814789imit_md); Executed by:
| 625 |
56 | } | - |
Switch to Source code | Preprocessed file |