OpenCoverage

m_gost2814789.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/m_gost2814789.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6static int-
7gost2814789_init(EVP_MD_CTX *ctx)-
8{-
9 return
executed 8 times by 1 test: return GOST2814789IMIT_Init(ctx->md_data, 824);
Executed by:
  • gost2814789t
GOST2814789IMIT_Init(ctx->md_data,
executed 8 times by 1 test: return GOST2814789IMIT_Init(ctx->md_data, 824);
Executed by:
  • gost2814789t
8
10 824);
executed 8 times by 1 test: return GOST2814789IMIT_Init(ctx->md_data, 824);
Executed by:
  • gost2814789t
8
11}-
12-
13static int-
14gost2814789_update(EVP_MD_CTX *ctx, const void *data, size_t count)-
15{-
16 return
executed 8 times by 1 test: return GOST2814789IMIT_Update(ctx->md_data, data, count);
Executed by:
  • gost2814789t
GOST2814789IMIT_Update(ctx->md_data, data, count);
executed 8 times by 1 test: return GOST2814789IMIT_Update(ctx->md_data, data, count);
Executed by:
  • gost2814789t
8
17}-
18-
19static int-
20gost2814789_final(EVP_MD_CTX *ctx, unsigned char *md)-
21{-
22 return
executed 8 times by 1 test: return GOST2814789IMIT_Final(md, ctx->md_data);
Executed by:
  • gost2814789t
GOST2814789IMIT_Final(md, ctx->md_data);
executed 8 times by 1 test: return GOST2814789IMIT_Final(md, ctx->md_data);
Executed by:
  • gost2814789t
8
23}-
24-
25static int-
26gost2814789_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: case 0x3:
Executed by:
  • gost2814789t
0x3:
executed 8 times by 1 test: case 0x3:
Executed by:
  • gost2814789t
8
32 return
executed 8 times by 1 test: return Gost2814789_set_key(&gctx->cipher, p2, p1);
Executed by:
  • gost2814789t
Gost2814789_set_key(&gctx->cipher, p2, p1);
executed 8 times by 1 test: return Gost2814789_set_key(&gctx->cipher, p2, p1);
Executed by:
  • gost2814789t
8
33 case
executed 8 times by 1 test: case 0x4:
Executed by:
  • gost2814789t
0x4:
executed 8 times by 1 test: case 0x4:
Executed by:
  • gost2814789t
8
34 return
executed 8 times by 1 test: return Gost2814789_set_sbox(&gctx->cipher, p1);
Executed by:
  • gost2814789t
Gost2814789_set_sbox(&gctx->cipher, p1);
executed 8 times by 1 test: return Gost2814789_set_sbox(&gctx->cipher, p1);
Executed by:
  • gost2814789t
8
35 }-
36 return
never executed: return -2;
-2;
never executed: return -2;
0
37}-
38-
39static 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-
52const EVP_MD *-
53EVP_gost2814789imit(void)-
54{-
55 return
executed 625 times by 33 tests: return (&gost2814789imit_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
  • ...
(&gost2814789imit_md);
executed 625 times by 33 tests: return (&gost2814789imit_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
  • ...
625
56}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2