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