OpenCoverage

bf_ecb.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bf/bf_ecb.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7const char *BF_options(void)-
8 {-
9-
10-
11-
12-
13-
14 return
never executed: return("blowfish(idx)");
("blowfish(idx)");
never executed: return("blowfish(idx)");
0
15-
16 }-
17-
18void BF_ecb_encrypt(const unsigned char *in, unsigned char *out,-
19 const BF_KEY *key, int encrypt)-
20 {-
21 unsigned int l,d[2];-
22-
23 (l =((unsigned long)(*((in)++)))<<24L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))); d[0]=l;-
24 (l =((unsigned long)(*((in)++)))<<24L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))); d[1]=l;-
25 if (encrypt
encryptDescription
TRUEevaluated 282 times by 2 tests
Evaluated by:
  • bftest
  • libcrypto.so.44.0.1
FALSEevaluated 258 times by 2 tests
Evaluated by:
  • bftest
  • libcrypto.so.44.0.1
)
258-282
26 BF_encrypt(d,key);
executed 282 times by 2 tests: BF_encrypt(d,key);
Executed by:
  • bftest
  • libcrypto.so.44.0.1
282
27 else-
28 BF_decrypt(d,key);
executed 258 times by 2 tests: BF_decrypt(d,key);
Executed by:
  • bftest
  • libcrypto.so.44.0.1
258
29 l=d[0]; (*((out)++)=(unsigned char)(((l)>>24L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l) )&0xff));-
30 l=d[1]; (*((out)++)=(unsigned char)(((l)>>24L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l) )&0xff));-
31 l=d[0]=d[1]=0;-
32 }
executed 540 times by 2 tests: end of block
Executed by:
  • bftest
  • libcrypto.so.44.0.1
540
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2