| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/des/qud_cksm.c | 
| Switch to Source code | Preprocessed file | 
| Line | Source | Count | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | unsigned 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 
 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; (( 
 
 
 
 | 0-3 | ||||||||||||||||||||||||
| 17 | { | - | ||||||||||||||||||||||||
| 18 | cp=input; | - | ||||||||||||||||||||||||
| 19 | l=length; | - | ||||||||||||||||||||||||
| 20 | while (l > 0 
 | 2-28 | ||||||||||||||||||||||||
| 21 | { | - | ||||||||||||||||||||||||
| 22 | if (l > 1 
 | 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 blockExecuted by: 
 | 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 blockExecuted by: 
 | 28 | ||||||||||||||||||||||||
| 40 | if (lp != 
 | 0-2 | ||||||||||||||||||||||||
| 41 | ((void *)0) 
 | 0-2 | ||||||||||||||||||||||||
| 42 | ) | - | ||||||||||||||||||||||||
| 43 | { | - | ||||||||||||||||||||||||
| 44 | - | |||||||||||||||||||||||||
| 45 | - | |||||||||||||||||||||||||
| 46 | *lp++ = z0; | - | ||||||||||||||||||||||||
| 47 | *lp++ = z1; | - | ||||||||||||||||||||||||
| 48 | } executed 2 times by 1 test:  end of blockExecuted by: 
 | 2 | ||||||||||||||||||||||||
| 49 | } executed 2 times by 1 test:  end of blockExecuted by: 
 | 2 | ||||||||||||||||||||||||
| 50 | return executed 1 time by 1 test: (z0); return(z0);Executed by: 
 executed 1 time by 1 test:  return(z0);Executed by: 
 | 1 | ||||||||||||||||||||||||
| 51 | } | - | ||||||||||||||||||||||||
| Switch to Source code | Preprocessed file |