Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/des/ecb3_enc.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, | - | ||||||
3 | DES_key_schedule *ks1, DES_key_schedule *ks2, | - | ||||||
4 | DES_key_schedule *ks3, | - | ||||||
5 | int enc) | - | ||||||
6 | { | - | ||||||
7 | unsigned int l0,l1; | - | ||||||
8 | unsigned int ll[2]; | - | ||||||
9 | const unsigned char *in = &(*input)[0]; | - | ||||||
10 | unsigned char *out = &(*output)[0]; | - | ||||||
11 | - | |||||||
12 | (l0 =((unsigned int)(*((in)++))) , l0|=((unsigned int)(*((in)++)))<< 8L, l0|=((unsigned int)(*((in)++)))<<16L, l0|=((unsigned int)(*((in)++)))<<24L); | - | ||||||
13 | (l1 =((unsigned int)(*((in)++))) , l1|=((unsigned int)(*((in)++)))<< 8L, l1|=((unsigned int)(*((in)++)))<<16L, l1|=((unsigned int)(*((in)++)))<<24L); | - | ||||||
14 | ll[0]=l0; | - | ||||||
15 | ll[1]=l1; | - | ||||||
16 | if (enc
| 480 | ||||||
17 | DES_encrypt3(ll,ks1,ks2,ks3); executed 480 times by 2 tests: DES_encrypt3(ll,ks1,ks2,ks3); Executed by:
| 480 | ||||||
18 | else | - | ||||||
19 | DES_decrypt3(ll,ks1,ks2,ks3); executed 480 times by 2 tests: DES_decrypt3(ll,ks1,ks2,ks3); Executed by:
| 480 | ||||||
20 | l0=ll[0]; | - | ||||||
21 | l1=ll[1]; | - | ||||||
22 | (*((out)++)=(unsigned char)(((l0) )&0xff), *((out)++)=(unsigned char)(((l0)>> 8L)&0xff), *((out)++)=(unsigned char)(((l0)>>16L)&0xff), *((out)++)=(unsigned char)(((l0)>>24L)&0xff)); | - | ||||||
23 | (*((out)++)=(unsigned char)(((l1) )&0xff), *((out)++)=(unsigned char)(((l1)>> 8L)&0xff), *((out)++)=(unsigned char)(((l1)>>16L)&0xff), *((out)++)=(unsigned char)(((l1)>>24L)&0xff)); | - | ||||||
24 | } executed 960 times by 2 tests: end of block Executed by:
| 960 | ||||||
Switch to Source code | Preprocessed file |