OpenCoverage

i_ecb.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/idea/i_ecb.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2const char *idea_options(void)-
3 {-
4 if (sizeof(short) != sizeof(unsigned int)
sizeof(short) ...(unsigned int)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
5 return
never executed: return("idea(int)");
("idea(int)");
never executed: return("idea(int)");
0
6 else-
7 return
never executed: return("idea(short)");
("idea(short)");
never executed: return("idea(short)");
0
8 }-
9-
10void idea_ecb_encrypt(const unsigned char *in, unsigned char *out,-
11 IDEA_KEY_SCHEDULE *ks)-
12 {-
13 unsigned long l0,l1,d[2];-
14-
15 (l0 =((unsigned long)(*((in)++)))<<24L, l0|=((unsigned long)(*((in)++)))<<16L, l0|=((unsigned long)(*((in)++)))<< 8L, l0|=((unsigned long)(*((in)++)))); d[0]=l0;-
16 (l1 =((unsigned long)(*((in)++)))<<24L, l1|=((unsigned long)(*((in)++)))<<16L, l1|=((unsigned long)(*((in)++)))<< 8L, l1|=((unsigned long)(*((in)++)))); d[1]=l1;-
17 idea_encrypt(d,ks);-
18 l0=d[0]; (*((out)++)=(unsigned char)(((l0)>>24L)&0xff), *((out)++)=(unsigned char)(((l0)>>16L)&0xff), *((out)++)=(unsigned char)(((l0)>> 8L)&0xff), *((out)++)=(unsigned char)(((l0) )&0xff));-
19 l1=d[1]; (*((out)++)=(unsigned char)(((l1)>>24L)&0xff), *((out)++)=(unsigned char)(((l1)>>16L)&0xff), *((out)++)=(unsigned char)(((l1)>> 8L)&0xff), *((out)++)=(unsigned char)(((l1) )&0xff));-
20 l0=l1=d[0]=d[1]=0;-
21 }
executed 2 times by 1 test: end of block
Executed by:
  • ideatest
2
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2