OpenCoverage

ecb3_enc.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/des/ecb3_enc.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output,-
3 DES_key_schedule *ks1, DES_key_schedule *ks2,-
4 DES_key_schedule *ks3, int enc)-
5{-
6 register DES_LONG l0, l1;-
7 DES_LONG ll[2];-
8 const unsigned char *in = &(*input)[0];-
9 unsigned char *out = &(*output)[0];-
10-
11 (l0 =((DES_LONG)(*((in)++))) , l0|=((DES_LONG)(*((in)++)))<< 8L, l0|=((DES_LONG)(*((in)++)))<<16L, l0|=((DES_LONG)(*((in)++)))<<24L);-
12 (l1 =((DES_LONG)(*((in)++))) , l1|=((DES_LONG)(*((in)++)))<< 8L, l1|=((DES_LONG)(*((in)++)))<<16L, l1|=((DES_LONG)(*((in)++)))<<24L);-
13 ll[0] = l0;-
14 ll[1] = l1;-
15 if (enc
encDescription
TRUEevaluated 2096 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 2096 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
2096
16 DES_encrypt3(ll, ks1, ks2, ks3);
executed 2096 times by 1 test: DES_encrypt3(ll, ks1, ks2, ks3);
Executed by:
  • libcrypto.so.1.1
2096
17 else-
18 DES_decrypt3(ll, ks1, ks2, ks3);
executed 2096 times by 1 test: DES_decrypt3(ll, ks1, ks2, ks3);
Executed by:
  • libcrypto.so.1.1
2096
19 l0 = ll[0];-
20 l1 = ll[1];-
21 (*((out)++)=(unsigned char)(((l0) )&0xff), *((out)++)=(unsigned char)(((l0)>> 8L)&0xff), *((out)++)=(unsigned char)(((l0)>>16L)&0xff), *((out)++)=(unsigned char)(((l0)>>24L)&0xff));-
22 (*((out)++)=(unsigned char)(((l1) )&0xff), *((out)++)=(unsigned char)(((l1)>> 8L)&0xff), *((out)++)=(unsigned char)(((l1)>>16L)&0xff), *((out)++)=(unsigned char)(((l1)>>24L)&0xff));-
23}
executed 4192 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
4192
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2