OpenCoverage

m_streebog.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/m_streebog.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6static int-
7streebog_init256(EVP_MD_CTX *ctx)-
8{-
9 return
executed 1283 times by 2 tests: return STREEBOG256_Init(ctx->md_data);
Executed by:
  • evptest
  • tls_prf
STREEBOG256_Init(ctx->md_data);
executed 1283 times by 2 tests: return STREEBOG256_Init(ctx->md_data);
Executed by:
  • evptest
  • tls_prf
1283
10}-
11-
12static int-
13streebog_update256(EVP_MD_CTX *ctx, const void *data, size_t count)-
14{-
15 return
executed 4675 times by 2 tests: return STREEBOG256_Update(ctx->md_data, data, count);
Executed by:
  • evptest
  • tls_prf
STREEBOG256_Update(ctx->md_data, data, count);
executed 4675 times by 2 tests: return STREEBOG256_Update(ctx->md_data, data, count);
Executed by:
  • evptest
  • tls_prf
4675
16}-
17-
18static int-
19streebog_final256(EVP_MD_CTX *ctx, unsigned char *md)-
20{-
21 return
executed 1283 times by 2 tests: return STREEBOG256_Final(md, ctx->md_data);
Executed by:
  • evptest
  • tls_prf
STREEBOG256_Final(md, ctx->md_data);
executed 1283 times by 2 tests: return STREEBOG256_Final(md, ctx->md_data);
Executed by:
  • evptest
  • tls_prf
1283
22}-
23-
24static int-
25streebog_init512(EVP_MD_CTX *ctx)-
26{-
27 return
executed 3 times by 1 test: return STREEBOG512_Init(ctx->md_data);
Executed by:
  • evptest
STREEBOG512_Init(ctx->md_data);
executed 3 times by 1 test: return STREEBOG512_Init(ctx->md_data);
Executed by:
  • evptest
3
28}-
29-
30static int-
31streebog_update512(EVP_MD_CTX *ctx, const void *data, size_t count)-
32{-
33 return
executed 3 times by 1 test: return STREEBOG512_Update(ctx->md_data, data, count);
Executed by:
  • evptest
STREEBOG512_Update(ctx->md_data, data, count);
executed 3 times by 1 test: return STREEBOG512_Update(ctx->md_data, data, count);
Executed by:
  • evptest
3
34}-
35-
36static int-
37streebog_final512(EVP_MD_CTX *ctx, unsigned char *md)-
38{-
39 return
executed 3 times by 1 test: return STREEBOG512_Final(md, ctx->md_data);
Executed by:
  • evptest
STREEBOG512_Final(md, ctx->md_data);
executed 3 times by 1 test: return STREEBOG512_Final(md, ctx->md_data);
Executed by:
  • evptest
3
40}-
41-
42static 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-
54static 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-
66const EVP_MD *-
67EVP_streebog256(void)-
68{-
69 return
executed 753 times by 33 tests: return (&streebog256_md);
Executed by:
  • asn1test
  • base64test
  • bnaddsub
  • bntest
  • cipher_list
  • cipherstest
  • clienttest
  • configtest
  • dhtest
  • dsatest
  • ecdhtest
  • ecdsatest
  • ectest
  • enginetest
  • evptest
  • exptest
  • gost2814789t
  • hkdftest
  • keypairtest
  • libcrypto.so.44.0.1
  • mont
  • pbkdf2
  • pkcs7test
  • rc4test
  • rsa_test
  • ...
(&streebog256_md);
executed 753 times by 33 tests: return (&streebog256_md);
Executed by:
  • asn1test
  • base64test
  • bnaddsub
  • bntest
  • cipher_list
  • cipherstest
  • clienttest
  • configtest
  • dhtest
  • dsatest
  • ecdhtest
  • ecdsatest
  • ectest
  • enginetest
  • evptest
  • exptest
  • gost2814789t
  • hkdftest
  • keypairtest
  • libcrypto.so.44.0.1
  • mont
  • pbkdf2
  • pkcs7test
  • rc4test
  • rsa_test
  • ...
753
70}-
71-
72const EVP_MD *-
73EVP_streebog512(void)-
74{-
75 return
executed 666 times by 33 tests: return (&streebog512_md);
Executed by:
  • asn1test
  • base64test
  • bnaddsub
  • bntest
  • cipher_list
  • cipherstest
  • clienttest
  • configtest
  • dhtest
  • dsatest
  • ecdhtest
  • ecdsatest
  • ectest
  • enginetest
  • evptest
  • exptest
  • gost2814789t
  • hkdftest
  • keypairtest
  • libcrypto.so.44.0.1
  • mont
  • pbkdf2
  • pkcs7test
  • rc4test
  • rsa_test
  • ...
(&streebog512_md);
executed 666 times by 33 tests: return (&streebog512_md);
Executed by:
  • asn1test
  • base64test
  • bnaddsub
  • bntest
  • cipher_list
  • cipherstest
  • clienttest
  • configtest
  • dhtest
  • dsatest
  • ecdhtest
  • ecdsatest
  • ectest
  • enginetest
  • evptest
  • exptest
  • gost2814789t
  • hkdftest
  • keypairtest
  • libcrypto.so.44.0.1
  • mont
  • pbkdf2
  • pkcs7test
  • rc4test
  • rsa_test
  • ...
666
76}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2