OpenCoverage

c_ecb.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/cast/c_ecb.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out,-
4 const CAST_KEY *ks, int enc)-
5{-
6 unsigned int l, d[2];-
7-
8 (l =((unsigned long)(*((in)++)))<<24L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++))));-
9 d[0] = l;-
10 (l =((unsigned long)(*((in)++)))<<24L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++))));-
11 d[1] = l;-
12 if (enc
encDescription
TRUEevaluated 4000789 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 789 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
789-4000789
13 CAST_encrypt(d, ks);
executed 4000789 times by 1 test: CAST_encrypt(d, ks);
Executed by:
  • libcrypto.so.1.1
4000789
14 else-
15 CAST_decrypt(d, ks);
executed 789 times by 1 test: CAST_decrypt(d, ks);
Executed by:
  • libcrypto.so.1.1
789
16 l = d[0];-
17 (*((out)++)=(unsigned char)(((l)>>24L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l) )&0xff));-
18 l = d[1];-
19 (*((out)++)=(unsigned char)(((l)>>24L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l) )&0xff));-
20 l = d[0] = d[1] = 0;-
21}
executed 4001578 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
4001578
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2