OpenCoverage

e_null.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_null.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4static int null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,-
5 const unsigned char *iv, int enc);-
6static int null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,-
7 const unsigned char *in, size_t inl);-
8-
9static const EVP_CIPHER n_cipher = {-
10 0,-
11 1, 0, 0,-
12 0,-
13 null_init_key,-
14 null_cipher,-
15 -
16((void *)0)-
17 ,-
18 0,-
19 -
20((void *)0)-
21 ,-
22 -
23((void *)0)-
24 ,-
25 -
26((void *)0)-
27 ,-
28 -
29((void *)0)-
30-
31};-
32-
33const EVP_CIPHER *-
34EVP_enc_null(void)-
35{-
36 return
executed 6 times by 1 test: return (&n_cipher);
Executed by:
  • ssltest
(&n_cipher);
executed 6 times by 1 test: return (&n_cipher);
Executed by:
  • ssltest
6
37}-
38-
39static int-
40null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,-
41 const unsigned char *iv, int enc)-
42{-
43-
44 return
executed 12 times by 1 test: return 1;
Executed by:
  • ssltest
1;
executed 12 times by 1 test: return 1;
Executed by:
  • ssltest
12
45}-
46-
47static int-
48null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,-
49 const unsigned char *in, size_t inl)-
50{-
51 if (in != out
in != outDescription
TRUEnever evaluated
FALSEevaluated 30 times by 1 test
Evaluated by:
  • ssltest
)
0-30
52 memcpy((char *)out, (const char *)in, inl);
never executed: memcpy((char *)out, (const char *)in, inl);
0
53 return
executed 30 times by 1 test: return 1;
Executed by:
  • ssltest
1;
executed 30 times by 1 test: return 1;
Executed by:
  • ssltest
30
54}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2