OpenCoverage

e_null.c

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

Generated by Squish Coco 4.2.2