| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/rsa/rsa_none.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | int RSA_padding_add_none(unsigned char *to, int tlen, | - | ||||||
| 3 | const unsigned char *from, int flen) | - | ||||||
| 4 | { | - | ||||||
| 5 | if (flen > tlen
| 0-1094 | ||||||
| 6 | ERR_put_error(4,(107),(110),__FILE__,18); | - | ||||||
| 7 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 8 | } | - | ||||||
| 9 | - | |||||||
| 10 | if (flen < tlen
| 0-1094 | ||||||
| 11 | ERR_put_error(4,(107),(122),__FILE__,23); | - | ||||||
| 12 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 13 | } | - | ||||||
| 14 | - | |||||||
| 15 | memcpy(to, from, (unsigned int)flen); | - | ||||||
| 16 | return executed 1094 times by 1 test: 1;return 1;Executed by:
executed 1094 times by 1 test: return 1;Executed by:
| 1094 | ||||||
| 17 | } | - | ||||||
| 18 | - | |||||||
| 19 | int RSA_padding_check_none(unsigned char *to, int tlen, | - | ||||||
| 20 | const unsigned char *from, int flen, int num) | - | ||||||
| 21 | { | - | ||||||
| 22 | - | |||||||
| 23 | if (flen > tlen
| 0 | ||||||
| 24 | ERR_put_error(4,(111),(109),__FILE__,36); | - | ||||||
| 25 | return never executed: -1;return -1;never executed: return -1; | 0 | ||||||
| 26 | } | - | ||||||
| 27 | - | |||||||
| 28 | memset(to, 0, tlen - flen); | - | ||||||
| 29 | memcpy(to + tlen - flen, from, flen); | - | ||||||
| 30 | return never executed: tlen;return tlen;never executed: return tlen; | 0 | ||||||
| 31 | } | - | ||||||
| Switch to Source code | Preprocessed file |