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