OpenCoverage

rc2_ecb.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/rc2/rc2_ecb.c
Switch to Source codePreprocessed file
LineSourceCount
1void RC2_ecb_encrypt(const unsigned char *in, unsigned char *out, RC2_KEY *ks,-
2 int encrypt)-
3 {-
4 unsigned long l,d[2];-
5-
6 (l =((unsigned long)(*((in)++))) , l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<<24L); d[0]=l;-
7 (l =((unsigned long)(*((in)++))) , l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<<24L); d[1]=l;-
8 if (encrypt
encryptDescription
TRUEevaluated 228 times by 2 tests
Evaluated by:
  • libcrypto.so.44.0.1
  • rc2test
FALSEevaluated 228 times by 2 tests
Evaluated by:
  • libcrypto.so.44.0.1
  • rc2test
)
228
9 RC2_encrypt(d,ks);
executed 228 times by 2 tests: RC2_encrypt(d,ks);
Executed by:
  • libcrypto.so.44.0.1
  • rc2test
228
10 else-
11 RC2_decrypt(d,ks);
executed 228 times by 2 tests: RC2_decrypt(d,ks);
Executed by:
  • libcrypto.so.44.0.1
  • rc2test
228
12 l=d[0]; (*((out)++)=(unsigned char)(((l) )&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>>24L)&0xff));-
13 l=d[1]; (*((out)++)=(unsigned char)(((l) )&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>>24L)&0xff));-
14 l=d[0]=d[1]=0;-
15 }
executed 456 times by 2 tests: end of block
Executed by:
  • libcrypto.so.44.0.1
  • rc2test
456
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2