Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/m_dss.c |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | - | |
7 | - | |
8 | - | |
9 | - | |
10 | static int | - |
11 | init(EVP_MD_CTX *ctx) | - |
12 | { | - |
13 | return never executed: SHA1_Init(ctx->md_data);return SHA1_Init(ctx->md_data); never executed: return SHA1_Init(ctx->md_data); | 0 |
14 | } | - |
15 | - | |
16 | static int | - |
17 | update(EVP_MD_CTX *ctx, const void *data, size_t count) | - |
18 | { | - |
19 | return never executed: SHA1_Update(ctx->md_data, data, count);return SHA1_Update(ctx->md_data, data, count); never executed: return SHA1_Update(ctx->md_data, data, count); | 0 |
20 | } | - |
21 | - | |
22 | static int | - |
23 | final(EVP_MD_CTX *ctx, unsigned char *md) | - |
24 | { | - |
25 | return never executed: SHA1_Final(md, ctx->md_data);return SHA1_Final(md, ctx->md_data); never executed: return SHA1_Final(md, ctx->md_data); | 0 |
26 | } | - |
27 | - | |
28 | static const EVP_MD dsa_md = { | - |
29 | .type = 66, | - |
30 | .pkey_type = 66, | - |
31 | .md_size = 20, | - |
32 | .flags = 0x0002, | - |
33 | .init = init, | - |
34 | .update = update, | - |
35 | .final = final, | - |
36 | .copy = | - |
37 | ((void *)0) | - |
38 | , | - |
39 | .cleanup = | - |
40 | ((void *)0) | - |
41 | , | - |
42 | - | |
43 | .sign = (evp_sign_method *)DSA_sign, | - |
44 | .verify = (evp_verify_method *)DSA_verify, | - |
45 | .required_pkey_type = { | - |
46 | 116, 66, 113, 70, 0, | - |
47 | }, | - |
48 | - | |
49 | .block_size = (16*4), | - |
50 | .ctx_size = sizeof(EVP_MD *) + sizeof(SHA_CTX), | - |
51 | }; | - |
52 | - | |
53 | const EVP_MD * | - |
54 | EVP_dss(void) | - |
55 | { | - |
56 | return executed 292 times by 33 tests: (&dsa_md);return (&dsa_md); Executed by:
executed 292 times by 33 tests: return (&dsa_md); Executed by:
| 292 |
57 | } | - |
Switch to Source code | Preprocessed file |