OpenCoverage

c_ecb.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/cast/c_ecb.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out,-
3 const CAST_KEY *ks, int enc)-
4 {-
5 unsigned int l,d[2];-
6-
7 (l =((unsigned long)(*((in)++)))<<24L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))); d[0]=l;-
8 (l =((unsigned long)(*((in)++)))<<24L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))); d[1]=l;-
9 if (enc
encDescription
TRUEevaluated 4000227 times by 2 tests
Evaluated by:
  • casttest
  • libcrypto.so.44.0.1
FALSEevaluated 227 times by 2 tests
Evaluated by:
  • casttest
  • libcrypto.so.44.0.1
)
227-4000227
10 CAST_encrypt(d,ks);
executed 4000227 times by 2 tests: CAST_encrypt(d,ks);
Executed by:
  • casttest
  • libcrypto.so.44.0.1
4000227
11 else-
12 CAST_decrypt(d,ks);
executed 227 times by 2 tests: CAST_decrypt(d,ks);
Executed by:
  • casttest
  • libcrypto.so.44.0.1
227
13 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));-
14 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));-
15 l=d[0]=d[1]=0;-
16 }
executed 4000454 times by 2 tests: end of block
Executed by:
  • casttest
  • libcrypto.so.44.0.1
4000454
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2