Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/idea/i_cbc.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||||||||
2 | void IDEA_cbc_encrypt(const unsigned char *in, unsigned char *out, | - | ||||||||||||||||||||||||
3 | long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv, | - | ||||||||||||||||||||||||
4 | int encrypt) | - | ||||||||||||||||||||||||
5 | { | - | ||||||||||||||||||||||||
6 | register unsigned long tin0, tin1; | - | ||||||||||||||||||||||||
7 | register unsigned long tout0, tout1, xor0, xor1; | - | ||||||||||||||||||||||||
8 | register long l = length; | - | ||||||||||||||||||||||||
9 | unsigned long tin[2]; | - | ||||||||||||||||||||||||
10 | - | |||||||||||||||||||||||||
11 | if (encrypt
| 173-349 | ||||||||||||||||||||||||
12 | (tout0 =((unsigned long)(*((iv)++)))<<24L, tout0|=((unsigned long)(*((iv)++)))<<16L, tout0|=((unsigned long)(*((iv)++)))<< 8L, tout0|=((unsigned long)(*((iv)++)))); | - | ||||||||||||||||||||||||
13 | (tout1 =((unsigned long)(*((iv)++)))<<24L, tout1|=((unsigned long)(*((iv)++)))<<16L, tout1|=((unsigned long)(*((iv)++)))<< 8L, tout1|=((unsigned long)(*((iv)++)))); | - | ||||||||||||||||||||||||
14 | iv -= 8; | - | ||||||||||||||||||||||||
15 | for (l -= 8; l >= 0
| 349-2501 | ||||||||||||||||||||||||
16 | (tin0 =((unsigned long)(*((in)++)))<<24L, tin0|=((unsigned long)(*((in)++)))<<16L, tin0|=((unsigned long)(*((in)++)))<< 8L, tin0|=((unsigned long)(*((in)++)))); | - | ||||||||||||||||||||||||
17 | (tin1 =((unsigned long)(*((in)++)))<<24L, tin1|=((unsigned long)(*((in)++)))<<16L, tin1|=((unsigned long)(*((in)++)))<< 8L, tin1|=((unsigned long)(*((in)++)))); | - | ||||||||||||||||||||||||
18 | tin0 ^= tout0; | - | ||||||||||||||||||||||||
19 | tin1 ^= tout1; | - | ||||||||||||||||||||||||
20 | tin[0] = tin0; | - | ||||||||||||||||||||||||
21 | tin[1] = tin1; | - | ||||||||||||||||||||||||
22 | IDEA_encrypt(tin, ks); | - | ||||||||||||||||||||||||
23 | tout0 = tin[0]; | - | ||||||||||||||||||||||||
24 | (*((out)++)=(unsigned char)(((tout0)>>24L)&0xff), *((out)++)=(unsigned char)(((tout0)>>16L)&0xff), *((out)++)=(unsigned char)(((tout0)>> 8L)&0xff), *((out)++)=(unsigned char)(((tout0) )&0xff)); | - | ||||||||||||||||||||||||
25 | tout1 = tin[1]; | - | ||||||||||||||||||||||||
26 | (*((out)++)=(unsigned char)(((tout1)>>24L)&0xff), *((out)++)=(unsigned char)(((tout1)>>16L)&0xff), *((out)++)=(unsigned char)(((tout1)>> 8L)&0xff), *((out)++)=(unsigned char)(((tout1) )&0xff)); | - | ||||||||||||||||||||||||
27 | } executed 2501 times by 1 test: end of block Executed by:
| 2501 | ||||||||||||||||||||||||
28 | if (l != -8
| 1-348 | ||||||||||||||||||||||||
29 | { in+=l + 8; tin0=tin1=0; switch (l + 8) { case never executed: 8:case 8: never executed: tin1 =((unsigned long)(*(--(in)))) ; casecase 8: never executed: 7:case 7: never executed: case 7: code before this statement never executed: tin1|=((unsigned long)(*(--(in))))<< 8; casecase 7: executed 1 time by 1 test: case 6: Executed by:
code before this statement never executed: case 6: executed 1 time by 1 test: 6:case 6: Executed by:
code before this statement never executed: case 6: executed 1 time by 1 test: tin1|=((unsigned long)(*(--(in))))<<16; casecase 6: Executed by:
never executed: case 5: code before this statement executed 1 time by 1 test: case 5: Executed by:
never executed: 5:case 5: code before this statement executed 1 time by 1 test: case 5: Executed by:
never executed: tin1|=((unsigned long)(*(--(in))))<<24; casecase 5: never executed: case 4: code before this statement executed 1 time by 1 test: case 4: Executed by:
never executed: 4:case 4: code before this statement executed 1 time by 1 test: case 4: Executed by:
never executed: tin0 =((unsigned long)(*(--(in)))) ; casecase 4: never executed: case 3: code before this statement executed 1 time by 1 test: case 3: Executed by:
never executed: 3:case 3: code before this statement executed 1 time by 1 test: case 3: Executed by:
never executed: tin0|=((unsigned long)(*(--(in))))<< 8; casecase 3: never executed: case 2: code before this statement executed 1 time by 1 test: case 2: Executed by:
never executed: 2:case 2: code before this statement executed 1 time by 1 test: case 2: Executed by:
never executed: tin0|=((unsigned long)(*(--(in))))<<16; casecase 2: executed 1 time by 1 test: 1:case 1: Executed by:
executed 1 time by 1 test: case 1: Executed by:
code before this statement executed 1 time by 1 test: tin0|=((unsigned long)(*(--(in))))<<24; }case 1: Executed by:
executed 1 time by 1 test: };end of block Executed by:
| 0-1 | ||||||||||||||||||||||||
30 | tin0 ^= tout0; | - | ||||||||||||||||||||||||
31 | tin1 ^= tout1; | - | ||||||||||||||||||||||||
32 | tin[0] = tin0; | - | ||||||||||||||||||||||||
33 | tin[1] = tin1; | - | ||||||||||||||||||||||||
34 | IDEA_encrypt(tin, ks); | - | ||||||||||||||||||||||||
35 | tout0 = tin[0]; | - | ||||||||||||||||||||||||
36 | (*((out)++)=(unsigned char)(((tout0)>>24L)&0xff), *((out)++)=(unsigned char)(((tout0)>>16L)&0xff), *((out)++)=(unsigned char)(((tout0)>> 8L)&0xff), *((out)++)=(unsigned char)(((tout0) )&0xff)); | - | ||||||||||||||||||||||||
37 | tout1 = tin[1]; | - | ||||||||||||||||||||||||
38 | (*((out)++)=(unsigned char)(((tout1)>>24L)&0xff), *((out)++)=(unsigned char)(((tout1)>>16L)&0xff), *((out)++)=(unsigned char)(((tout1)>> 8L)&0xff), *((out)++)=(unsigned char)(((tout1) )&0xff)); | - | ||||||||||||||||||||||||
39 | } executed 1 time by 1 test: end of block Executed by:
| 1 | ||||||||||||||||||||||||
40 | (*((iv)++)=(unsigned char)(((tout0)>>24L)&0xff), *((iv)++)=(unsigned char)(((tout0)>>16L)&0xff), *((iv)++)=(unsigned char)(((tout0)>> 8L)&0xff), *((iv)++)=(unsigned char)(((tout0) )&0xff)); | - | ||||||||||||||||||||||||
41 | (*((iv)++)=(unsigned char)(((tout1)>>24L)&0xff), *((iv)++)=(unsigned char)(((tout1)>>16L)&0xff), *((iv)++)=(unsigned char)(((tout1)>> 8L)&0xff), *((iv)++)=(unsigned char)(((tout1) )&0xff)); | - | ||||||||||||||||||||||||
42 | } executed 349 times by 1 test: else {end of block Executed by:
| 349 | ||||||||||||||||||||||||
43 | (xor0 =((unsigned long)(*((iv)++)))<<24L, xor0|=((unsigned long)(*((iv)++)))<<16L, xor0|=((unsigned long)(*((iv)++)))<< 8L, xor0|=((unsigned long)(*((iv)++)))); | - | ||||||||||||||||||||||||
44 | (xor1 =((unsigned long)(*((iv)++)))<<24L, xor1|=((unsigned long)(*((iv)++)))<<16L, xor1|=((unsigned long)(*((iv)++)))<< 8L, xor1|=((unsigned long)(*((iv)++)))); | - | ||||||||||||||||||||||||
45 | iv -= 8; | - | ||||||||||||||||||||||||
46 | for (l -= 8; l >= 0
| 173-6985 | ||||||||||||||||||||||||
47 | (tin0 =((unsigned long)(*((in)++)))<<24L, tin0|=((unsigned long)(*((in)++)))<<16L, tin0|=((unsigned long)(*((in)++)))<< 8L, tin0|=((unsigned long)(*((in)++)))); | - | ||||||||||||||||||||||||
48 | tin[0] = tin0; | - | ||||||||||||||||||||||||
49 | (tin1 =((unsigned long)(*((in)++)))<<24L, tin1|=((unsigned long)(*((in)++)))<<16L, tin1|=((unsigned long)(*((in)++)))<< 8L, tin1|=((unsigned long)(*((in)++)))); | - | ||||||||||||||||||||||||
50 | tin[1] = tin1; | - | ||||||||||||||||||||||||
51 | IDEA_encrypt(tin, ks); | - | ||||||||||||||||||||||||
52 | tout0 = tin[0] ^ xor0; | - | ||||||||||||||||||||||||
53 | tout1 = tin[1] ^ xor1; | - | ||||||||||||||||||||||||
54 | (*((out)++)=(unsigned char)(((tout0)>>24L)&0xff), *((out)++)=(unsigned char)(((tout0)>>16L)&0xff), *((out)++)=(unsigned char)(((tout0)>> 8L)&0xff), *((out)++)=(unsigned char)(((tout0) )&0xff)); | - | ||||||||||||||||||||||||
55 | (*((out)++)=(unsigned char)(((tout1)>>24L)&0xff), *((out)++)=(unsigned char)(((tout1)>>16L)&0xff), *((out)++)=(unsigned char)(((tout1)>> 8L)&0xff), *((out)++)=(unsigned char)(((tout1) )&0xff)); | - | ||||||||||||||||||||||||
56 | xor0 = tin0; | - | ||||||||||||||||||||||||
57 | xor1 = tin1; | - | ||||||||||||||||||||||||
58 | } executed 6985 times by 1 test: end of block Executed by:
| 6985 | ||||||||||||||||||||||||
59 | if (l != -8
| 1-172 | ||||||||||||||||||||||||
60 | (tin0 =((unsigned long)(*((in)++)))<<24L, tin0|=((unsigned long)(*((in)++)))<<16L, tin0|=((unsigned long)(*((in)++)))<< 8L, tin0|=((unsigned long)(*((in)++)))); | - | ||||||||||||||||||||||||
61 | tin[0] = tin0; | - | ||||||||||||||||||||||||
62 | (tin1 =((unsigned long)(*((in)++)))<<24L, tin1|=((unsigned long)(*((in)++)))<<16L, tin1|=((unsigned long)(*((in)++)))<< 8L, tin1|=((unsigned long)(*((in)++)))); | - | ||||||||||||||||||||||||
63 | tin[1] = tin1; | - | ||||||||||||||||||||||||
64 | IDEA_encrypt(tin, ks); | - | ||||||||||||||||||||||||
65 | tout0 = tin[0] ^ xor0; | - | ||||||||||||||||||||||||
66 | tout1 = tin[1] ^ xor1; | - | ||||||||||||||||||||||||
67 | { out+=l + 8; switch (l + 8) { case never executed: 8:case 8: never executed: *(--(out))=(unsigned char)(((tout1) )&0xff); casecase 8: never executed: 7:case 7: never executed: case 7: code before this statement never executed: *(--(out))=(unsigned char)(((tout1)>> 8)&0xff); casecase 7: executed 1 time by 1 test: case 6: Executed by:
code before this statement never executed: case 6: executed 1 time by 1 test: 6:case 6: Executed by:
code before this statement never executed: case 6: executed 1 time by 1 test: *(--(out))=(unsigned char)(((tout1)>>16)&0xff); casecase 6: Executed by:
never executed: case 5: code before this statement executed 1 time by 1 test: case 5: Executed by:
never executed: 5:case 5: code before this statement executed 1 time by 1 test: case 5: Executed by:
never executed: *(--(out))=(unsigned char)(((tout1)>>24)&0xff); casecase 5: never executed: case 4: code before this statement executed 1 time by 1 test: case 4: Executed by:
never executed: 4:case 4: code before this statement executed 1 time by 1 test: case 4: Executed by:
never executed: *(--(out))=(unsigned char)(((tout0) )&0xff); casecase 4: never executed: case 3: code before this statement executed 1 time by 1 test: case 3: Executed by:
never executed: 3:case 3: code before this statement executed 1 time by 1 test: case 3: Executed by:
never executed: *(--(out))=(unsigned char)(((tout0)>> 8)&0xff); casecase 3: never executed: case 2: code before this statement executed 1 time by 1 test: case 2: Executed by:
never executed: 2:case 2: code before this statement executed 1 time by 1 test: case 2: Executed by:
never executed: *(--(out))=(unsigned char)(((tout0)>>16)&0xff); casecase 2: executed 1 time by 1 test: 1:case 1: Executed by:
executed 1 time by 1 test: case 1: Executed by:
code before this statement executed 1 time by 1 test: *(--(out))=(unsigned char)(((tout0)>>24)&0xff); }case 1: Executed by:
executed 1 time by 1 test: };end of block Executed by:
| 0-1 | ||||||||||||||||||||||||
68 | xor0 = tin0; | - | ||||||||||||||||||||||||
69 | xor1 = tin1; | - | ||||||||||||||||||||||||
70 | } executed 1 time by 1 test: end of block Executed by:
| 1 | ||||||||||||||||||||||||
71 | (*((iv)++)=(unsigned char)(((xor0)>>24L)&0xff), *((iv)++)=(unsigned char)(((xor0)>>16L)&0xff), *((iv)++)=(unsigned char)(((xor0)>> 8L)&0xff), *((iv)++)=(unsigned char)(((xor0) )&0xff)); | - | ||||||||||||||||||||||||
72 | (*((iv)++)=(unsigned char)(((xor1)>>24L)&0xff), *((iv)++)=(unsigned char)(((xor1)>>16L)&0xff), *((iv)++)=(unsigned char)(((xor1)>> 8L)&0xff), *((iv)++)=(unsigned char)(((xor1) )&0xff)); | - | ||||||||||||||||||||||||
73 | } executed 173 times by 1 test: end of block Executed by:
| 173 | ||||||||||||||||||||||||
74 | tin0 = tin1 = tout0 = tout1 = xor0 = xor1 = 0; | - | ||||||||||||||||||||||||
75 | tin[0] = tin[1] = 0; | - | ||||||||||||||||||||||||
76 | } executed 522 times by 1 test: end of block Executed by:
| 522 | ||||||||||||||||||||||||
77 | - | |||||||||||||||||||||||||
78 | void IDEA_encrypt(unsigned long *d, IDEA_KEY_SCHEDULE *key) | - | ||||||||||||||||||||||||
79 | { | - | ||||||||||||||||||||||||
80 | register IDEA_INT *p; | - | ||||||||||||||||||||||||
81 | register unsigned long x1, x2, x3, x4, t0, t1, ul; | - | ||||||||||||||||||||||||
82 | - | |||||||||||||||||||||||||
83 | x2 = d[0]; | - | ||||||||||||||||||||||||
84 | x1 = (x2 >> 16); | - | ||||||||||||||||||||||||
85 | x4 = d[1]; | - | ||||||||||||||||||||||||
86 | x3 = (x4 >> 16); | - | ||||||||||||||||||||||||
87 | - | |||||||||||||||||||||||||
88 | p = &(key->data[0][0]); | - | ||||||||||||||||||||||||
89 | - | |||||||||||||||||||||||||
90 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 12445 times by 1 test: else x1=(-(int)x1-*p+1);end of block Executed by:
executed 1763 times by 1 test: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1); Executed by:
executed 12483 times by 1 test: else x4=(-(int)x4-*p+1);end of block Executed by:
executed 1725 times by 1 test: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1); Executed by:
executed 14168 times by 1 test: else t0=(-(int)t0-*p+1);end of block Executed by:
executed 40 times by 1 test: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1); Executed by:
executed 14144 times by 1 test: else t1=(-(int)t1-*p+1);end of block Executed by:
executed 64 times by 1 test: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); Executed by:
| 40-14168 | ||||||||||||||||||||||||
91 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 14196 times by 1 test: else x1=(-(int)x1-*p+1);end of block Executed by:
executed 12 times by 1 test: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1); Executed by:
executed 14185 times by 1 test: else x4=(-(int)x4-*p+1);end of block Executed by:
executed 23 times by 1 test: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1); Executed by:
executed 14192 times by 1 test: else t0=(-(int)t0-*p+1);end of block Executed by:
executed 16 times by 1 test: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1); Executed by:
executed 14164 times by 1 test: else t1=(-(int)t1-*p+1);end of block Executed by:
executed 44 times by 1 test: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); Executed by:
| 12-14196 | ||||||||||||||||||||||||
92 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 14179 times by 1 test: else x1=(-(int)x1-*p+1);end of block Executed by:
executed 29 times by 1 test: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1); Executed by:
executed 14148 times by 1 test: else x4=(-(int)x4-*p+1);end of block Executed by:
executed 60 times by 1 test: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1); Executed by:
executed 14176 times by 1 test: else t0=(-(int)t0-*p+1);end of block Executed by:
executed 32 times by 1 test: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1); Executed by:
executed 14199 times by 1 test: else t1=(-(int)t1-*p+1);end of block Executed by:
executed 9 times by 1 test: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); Executed by:
| 9-14199 | ||||||||||||||||||||||||
93 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 14197 times by 1 test: else x1=(-(int)x1-*p+1);end of block Executed by:
executed 11 times by 1 test: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1); Executed by:
executed 14197 times by 1 test: else x4=(-(int)x4-*p+1);end of block Executed by:
executed 11 times by 1 test: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1); Executed by:
executed 14159 times by 1 test: else t0=(-(int)t0-*p+1);end of block Executed by:
executed 49 times by 1 test: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1); Executed by:
executed 14148 times by 1 test: else t1=(-(int)t1-*p+1);end of block Executed by:
executed 60 times by 1 test: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); Executed by:
| 11-14197 | ||||||||||||||||||||||||
94 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 14200 times by 1 test: else x1=(-(int)x1-*p+1);end of block Executed by:
executed 8 times by 1 test: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1); Executed by:
executed 14167 times by 1 test: else x4=(-(int)x4-*p+1);end of block Executed by:
executed 41 times by 1 test: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1); Executed by:
executed 14200 times by 1 test: else t0=(-(int)t0-*p+1);end of block Executed by:
executed 8 times by 1 test: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1); Executed by:
executed 14176 times by 1 test: else t1=(-(int)t1-*p+1);end of block Executed by:
executed 32 times by 1 test: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); Executed by:
| 8-14200 | ||||||||||||||||||||||||
95 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 14182 times by 1 test: else x1=(-(int)x1-*p+1);end of block Executed by:
executed 26 times by 1 test: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1); Executed by:
executed 14197 times by 1 test: else x4=(-(int)x4-*p+1);end of block Executed by:
executed 11 times by 1 test: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1); Executed by:
executed 14142 times by 1 test: else t0=(-(int)t0-*p+1);end of block Executed by:
executed 66 times by 1 test: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1); Executed by:
executed 14149 times by 1 test: else t1=(-(int)t1-*p+1);end of block Executed by:
executed 59 times by 1 test: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); Executed by:
| 11-14197 | ||||||||||||||||||||||||
96 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 14196 times by 1 test: else x1=(-(int)x1-*p+1);end of block Executed by:
executed 12 times by 1 test: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1); Executed by:
executed 14164 times by 1 test: else x4=(-(int)x4-*p+1);end of block Executed by:
executed 44 times by 1 test: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1); Executed by:
executed 14193 times by 1 test: else t0=(-(int)t0-*p+1);end of block Executed by:
executed 15 times by 1 test: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1); Executed by:
executed 14167 times by 1 test: else t1=(-(int)t1-*p+1);end of block Executed by:
executed 41 times by 1 test: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); Executed by:
| 12-14196 | ||||||||||||||||||||||||
97 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 14202 times by 1 test: else x1=(-(int)x1-*p+1);end of block Executed by:
executed 6 times by 1 test: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1); Executed by:
executed 14187 times by 1 test: else x4=(-(int)x4-*p+1);end of block Executed by:
executed 21 times by 1 test: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1); Executed by:
executed 14142 times by 1 test: else t0=(-(int)t0-*p+1);end of block Executed by:
executed 66 times by 1 test: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1); Executed by:
executed 14156 times by 1 test: else t1=(-(int)t1-*p+1);end of block Executed by:
executed 52 times by 1 test: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); Executed by:
| 6-14202 | ||||||||||||||||||||||||
98 | - | |||||||||||||||||||||||||
99 | x1 &= 0xffff; | - | ||||||||||||||||||||||||
100 | ul=(unsigned long)x1**p; if (ul != 0
executed 14040 times by 1 test: else x1=(-(int)x1-*p+1);end of block Executed by:
executed 168 times by 1 test: ;x1=(-(int)x1-*p+1); Executed by:
| 168-14040 | ||||||||||||||||||||||||
101 | p++; | - | ||||||||||||||||||||||||
102 | - | |||||||||||||||||||||||||
103 | t0 = x3 + *(p++); | - | ||||||||||||||||||||||||
104 | t1 = x2 + *(p++); | - | ||||||||||||||||||||||||
105 | - | |||||||||||||||||||||||||
106 | x4 &= 0xffff; | - | ||||||||||||||||||||||||
107 | ul=(unsigned long)x4**p; if (ul != 0
executed 14201 times by 1 test: else x4=(-(int)x4-*p+1);end of block Executed by:
executed 7 times by 1 test: ;x4=(-(int)x4-*p+1); Executed by:
| 7-14201 | ||||||||||||||||||||||||
108 | - | |||||||||||||||||||||||||
109 | d[0] = (t0 & 0xffff) | ((x1 & 0xffff) << 16); | - | ||||||||||||||||||||||||
110 | d[1] = (x4 & 0xffff) | ((t1 & 0xffff) << 16); | - | ||||||||||||||||||||||||
111 | } executed 14208 times by 1 test: end of block Executed by:
| 14208 | ||||||||||||||||||||||||
Switch to Source code | Preprocessed file |