Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/idea/i_ecb.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | const char *idea_options(void) | - | ||||||
3 | { | - | ||||||
4 | if (sizeof(short) != sizeof(unsigned int)
| 0 | ||||||
5 | return never executed: ("idea(int)");return("idea(int)"); never executed: return("idea(int)"); | 0 | ||||||
6 | else | - | ||||||
7 | return never executed: ("idea(short)");return("idea(short)"); never executed: return("idea(short)"); | 0 | ||||||
8 | } | - | ||||||
9 | - | |||||||
10 | void 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:
| 2 | ||||||
Switch to Source code | Preprocessed file |