| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/bf/bf_ecb.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | - | |||||||
| 5 | - | |||||||
| 6 | - | |||||||
| 7 | const char *BF_options(void) | - | ||||||
| 8 | { | - | ||||||
| 9 | - | |||||||
| 10 | - | |||||||
| 11 | - | |||||||
| 12 | - | |||||||
| 13 | - | |||||||
| 14 | return never executed: ("blowfish(idx)");return("blowfish(idx)");never executed: return("blowfish(idx)"); | 0 | ||||||
| 15 | - | |||||||
| 16 | } | - | ||||||
| 17 | - | |||||||
| 18 | void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, | - | ||||||
| 19 | const BF_KEY *key, int encrypt) | - | ||||||
| 20 | { | - | ||||||
| 21 | unsigned int l,d[2]; | - | ||||||
| 22 | - | |||||||
| 23 | (l =((unsigned long)(*((in)++)))<<24L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))); d[0]=l; | - | ||||||
| 24 | (l =((unsigned long)(*((in)++)))<<24L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))); d[1]=l; | - | ||||||
| 25 | if (encrypt
| 258-282 | ||||||
| 26 | BF_encrypt(d,key); executed 282 times by 2 tests: BF_encrypt(d,key);Executed by:
| 282 | ||||||
| 27 | else | - | ||||||
| 28 | BF_decrypt(d,key); executed 258 times by 2 tests: BF_decrypt(d,key);Executed by:
| 258 | ||||||
| 29 | l=d[0]; (*((out)++)=(unsigned char)(((l)>>24L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l) )&0xff)); | - | ||||||
| 30 | l=d[1]; (*((out)++)=(unsigned char)(((l)>>24L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l) )&0xff)); | - | ||||||
| 31 | l=d[0]=d[1]=0; | - | ||||||
| 32 | } executed 540 times by 2 tests: end of blockExecuted by:
| 540 | ||||||
| Switch to Source code | Preprocessed file |