| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/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); d[0]=l; | - | ||||||
| 7 | (l =((unsigned long)(*((in)++))) , l|=((unsigned long)(*((in)++)))<< 8L, l|=((unsigned long)(*((in)++)))<<16L, l|=((unsigned long)(*((in)++)))<<24L); d[1]=l; | - | ||||||
| 8 | if (encrypt
| 228 | ||||||
| 9 | RC2_encrypt(d,ks); executed 228 times by 2 tests: RC2_encrypt(d,ks);Executed by:
| 228 | ||||||
| 10 | else | - | ||||||
| 11 | RC2_decrypt(d,ks); executed 228 times by 2 tests: RC2_decrypt(d,ks);Executed by:
| 228 | ||||||
| 12 | l=d[0]; (*((out)++)=(unsigned char)(((l) )&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>>24L)&0xff)); | - | ||||||
| 13 | l=d[1]; (*((out)++)=(unsigned char)(((l) )&0xff), *((out)++)=(unsigned char)(((l)>> 8L)&0xff), *((out)++)=(unsigned char)(((l)>>16L)&0xff), *((out)++)=(unsigned char)(((l)>>24L)&0xff)); | - | ||||||
| 14 | l=d[0]=d[1]=0; | - | ||||||
| 15 | } executed 456 times by 2 tests: end of blockExecuted by:
| 456 | ||||||
| Switch to Source code | Preprocessed file |