| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/cast/c_ecb.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out, | - | ||||||
| 4 | const CAST_KEY *ks, int enc) | - | ||||||
| 5 | { | - | ||||||
| 6 | unsigned int l, d[2]; | - | ||||||
| 7 | - | |||||||
| 8 | (l =((unsigned long)(*((in)++)))<<24L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))); | - | ||||||
| 9 | d[0] = l; | - | ||||||
| 10 | (l =((unsigned long)(*((in)++)))<<24L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))); | - | ||||||
| 11 | d[1] = l; | - | ||||||
| 12 | if (enc
| 789-4000789 | ||||||
| 13 | CAST_encrypt(d, ks); executed 4000789 times by 1 test: CAST_encrypt(d, ks);Executed by:
| 4000789 | ||||||
| 14 | else | - | ||||||
| 15 | CAST_decrypt(d, ks); executed 789 times by 1 test: CAST_decrypt(d, ks);Executed by:
| 789 | ||||||
| 16 | l = d[0]; | - | ||||||
| 17 | (*((out)++)=(unsigned char)(((l)>>24L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l) )&0xff)); | - | ||||||
| 18 | l = d[1]; | - | ||||||
| 19 | (*((out)++)=(unsigned char)(((l)>>24L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l) )&0xff)); | - | ||||||
| 20 | l = d[0] = d[1] = 0; | - | ||||||
| 21 | } executed 4001578 times by 1 test: end of blockExecuted by:
| 4001578 | ||||||
| Switch to Source code | Preprocessed file |