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