Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/bf/bf_ecb.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | const char *BF_options(void) | - | ||||||
2 | { | - | ||||||
3 | return never executed: "blowfish(ptr)";return "blowfish(ptr)"; never executed: return "blowfish(ptr)"; | 0 | ||||||
4 | } | - | ||||||
5 | - | |||||||
6 | void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, | - | ||||||
7 | const BF_KEY *key, int encrypt) | - | ||||||
8 | { | - | ||||||
9 | unsigned int l, d[2]; | - | ||||||
10 | - | |||||||
11 | (l =((unsigned long)(*((in)++)))<<24L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))); | - | ||||||
12 | d[0] = l; | - | ||||||
13 | (l =((unsigned long)(*((in)++)))<<24L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))); | - | ||||||
14 | d[1] = l; | - | ||||||
15 | if (encrypt
| 820-844 | ||||||
16 | BF_encrypt(d, key); executed 844 times by 1 test: BF_encrypt(d, key); Executed by:
| 844 | ||||||
17 | else | - | ||||||
18 | BF_decrypt(d, key); executed 820 times by 1 test: BF_decrypt(d, key); Executed by:
| 820 | ||||||
19 | l = d[0]; | - | ||||||
20 | (*((out)++)=(unsigned char)(((l)>>24L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l) )&0xff)); | - | ||||||
21 | l = d[1]; | - | ||||||
22 | (*((out)++)=(unsigned char)(((l)>>24L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l) )&0xff)); | - | ||||||
23 | l = d[0] = d[1] = 0; | - | ||||||
24 | } executed 1664 times by 1 test: end of block Executed by:
| 1664 | ||||||
Switch to Source code | Preprocessed file |