| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/e_null.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | static int null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, | - | ||||||
| 5 | const unsigned char *iv, int enc); | - | ||||||
| 6 | static int null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, | - | ||||||
| 7 | const unsigned char *in, size_t inl); | - | ||||||
| 8 | - | |||||||
| 9 | static 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 | - | |||||||
| 33 | const EVP_CIPHER * | - | ||||||
| 34 | EVP_enc_null(void) | - | ||||||
| 35 | { | - | ||||||
| 36 | return executed 6 times by 1 test: (&n_cipher);return (&n_cipher);Executed by:
executed 6 times by 1 test: return (&n_cipher);Executed by:
| 6 | ||||||
| 37 | } | - | ||||||
| 38 | - | |||||||
| 39 | static int | - | ||||||
| 40 | null_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: 1;return 1;Executed by:
executed 12 times by 1 test: return 1;Executed by:
| 12 | ||||||
| 45 | } | - | ||||||
| 46 | - | |||||||
| 47 | static int | - | ||||||
| 48 | null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, | - | ||||||
| 49 | const unsigned char *in, size_t inl) | - | ||||||
| 50 | { | - | ||||||
| 51 | if (in != out
| 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: 1;return 1;Executed by:
executed 30 times by 1 test: return 1;Executed by:
| 30 | ||||||
| 54 | } | - | ||||||
| Switch to Source code | Preprocessed file |