OpenCoverage

bf_ecb.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/bf/bf_ecb.c
Switch to Source codePreprocessed file
LineSourceCount
1const char *BF_options(void)-
2{-
3 return
never executed: return "blowfish(ptr)";
"blowfish(ptr)";
never executed: return "blowfish(ptr)";
0
4}-
5-
6void 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
encryptDescription
TRUEevaluated 844 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 820 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
820-844
16 BF_encrypt(d, key);
executed 844 times by 1 test: BF_encrypt(d, key);
Executed by:
  • libcrypto.so.1.1
844
17 else-
18 BF_decrypt(d, key);
executed 820 times by 1 test: BF_decrypt(d, key);
Executed by:
  • libcrypto.so.1.1
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:
  • libcrypto.so.1.1
1664
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2