| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/rc2/rc2_ecb.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | void RC2_ecb_encrypt(const unsigned char *in, unsigned char *out, RC2_KEY *ks, | - | ||||||
| 2 | int encrypt) | - | ||||||
| 3 | { | - | ||||||
| 4 | unsigned long l, d[2]; | - | ||||||
| 5 | - | |||||||
| 6 | (l =((unsigned long)(*((in)++))) , l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<<24L); | - | ||||||
| 7 | d[0] = l; | - | ||||||
| 8 | (l =((unsigned long)(*((in)++))) , l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<<24L); | - | ||||||
| 9 | d[1] = l; | - | ||||||
| 10 | if (encrypt
| 790 | ||||||
| 11 | RC2_encrypt(d, ks); executed 790 times by 1 test: RC2_encrypt(d, ks);Executed by:
| 790 | ||||||
| 12 | else | - | ||||||
| 13 | RC2_decrypt(d, ks); executed 790 times by 1 test: RC2_decrypt(d, ks);Executed by:
| 790 | ||||||
| 14 | l = d[0]; | - | ||||||
| 15 | (*((out)++)=(unsigned char)(((l) )&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>>24L)&0xff)); | - | ||||||
| 16 | l = d[1]; | - | ||||||
| 17 | (*((out)++)=(unsigned char)(((l) )&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>>24L)&0xff)); | - | ||||||
| 18 | l = d[0] = d[1] = 0; | - | ||||||
| 19 | } executed 1580 times by 1 test: end of blockExecuted by:
| 1580 | ||||||
| Switch to Source code | Preprocessed file |