OpenCoverage

qud_cksm.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/des/qud_cksm.c
Switch to Source codePreprocessed file
LineSourceCount
1unsigned int DES_quad_cksum(const unsigned char *input, DES_cblock output[],-
2 long length, int out_count, DES_cblock *seed)-
3 {-
4 unsigned int z0,z1,t0,t1;-
5 int i;-
6 long l;-
7 const unsigned char *cp;-
8 unsigned int *lp;-
9-
10 if (out_count < 1
out_count < 1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • destest
) out_count=1;
never executed: out_count=1;
0-1
11 lp = (unsigned int *) &(output[0])[0];-
12-
13 z0=(((unsigned int)((*seed)[0])))|(((unsigned int)((*seed)[1]))<<8)|(((unsigned int)((*seed)[2]))<<16)|(((unsigned int)((*seed)[3]))<<24);-
14 z1=(((unsigned int)((*seed)[4])))|(((unsigned int)((*seed)[5]))<<8)|(((unsigned int)((*seed)[6]))<<16)|(((unsigned int)((*seed)[7]))<<24);-
15-
16 for (i=0; ((
(i<4)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • destest
FALSEnever evaluated
i<4)
(i<4)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • destest
FALSEnever evaluated
&&(
(i<out_count)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • destest
FALSEevaluated 1 time by 1 test
Evaluated by:
  • destest
i<out_count)
(i<out_count)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • destest
FALSEevaluated 1 time by 1 test
Evaluated by:
  • destest
); i++)
0-3
17 {-
18 cp=input;-
19 l=length;-
20 while (l > 0
l > 0Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • destest
FALSEevaluated 2 times by 1 test
Evaluated by:
  • destest
)
2-28
21 {-
22 if (l > 1
l > 1Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • destest
FALSEnever evaluated
)
0-28
23 {-
24 t0= (unsigned int)(*(cp++));-
25 t0|=(unsigned int)(((unsigned int)(*(cp++)))<<8);-
26 l--;-
27 }
executed 28 times by 1 test: end of block
Executed by:
  • destest
28
28 else-
29 t0= (unsigned int)(*(cp++));
never executed: t0= (unsigned int)(*(cp++));
0
30 l--;-
31-
32 t0+=z0;-
33 t0&=0xffffffffL;-
34 t1=z1;-
35-
36 z0=((((t0*t0)&0xffffffffL)+((t1*t1)&0xffffffffL))-
37 &0xffffffffL)%0x7fffffffL;-
38 z1=((t0*((t1+((unsigned int)83653421L))&0xffffffffL))&0xffffffffL)%0x7fffffffL;-
39 }
executed 28 times by 1 test: end of block
Executed by:
  • destest
28
40 if (lp !=
lp != ((void *)0)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • destest
FALSEnever evaluated
0-2
41 ((void *)0)
lp != ((void *)0)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • destest
FALSEnever evaluated
0-2
42 )-
43 {-
44-
45-
46 *lp++ = z0;-
47 *lp++ = z1;-
48 }
executed 2 times by 1 test: end of block
Executed by:
  • destest
2
49 }
executed 2 times by 1 test: end of block
Executed by:
  • destest
2
50 return
executed 1 time by 1 test: return(z0);
Executed by:
  • destest
(z0);
executed 1 time by 1 test: return(z0);
Executed by:
  • destest
1
51 }-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2