| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | #include <openssl/opensslv.h> | - |
| 11 | #include <openssl/camellia.h> | - |
| 12 | #include "cmll_locl.h" | - |
| 13 | | - |
| 14 | int Camellia_set_key(const unsigned char *userKey, const int bits, | - |
| 15 | CAMELLIA_KEY *key) | - |
| 16 | { | - |
| 17 | if (!userKey || !key)| TRUE | never evaluated | | FALSE | evaluated 1595 times by 1 test |
| TRUE | never evaluated | | FALSE | evaluated 1595 times by 1 test |
| 0-1595 |
| 18 | return -1; never executed: return -1; | 0 |
| 19 | if (bits != 128 && bits != 192 && bits != 256)| TRUE | evaluated 1046 times by 1 test | | FALSE | evaluated 549 times by 1 test |
| TRUE | evaluated 566 times by 1 test | | FALSE | evaluated 480 times by 1 test |
| TRUE | never evaluated | | FALSE | evaluated 566 times by 1 test |
| 0-1046 |
| 20 | return -2; never executed: return -2; | 0 |
| 21 | key->grand_rounds = Camellia_Ekeygen(bits, userKey, key->u.rd_key); | - |
| 22 | return 0;executed 1595 times by 1 test: return 0; | 1595 |
| 23 | } | - |
| 24 | | - |
| 25 | void Camellia_encrypt(const unsigned char *in, unsigned char *out, | - |
| 26 | const CAMELLIA_KEY *key) | - |
| 27 | { | - |
| 28 | Camellia_EncryptBlock_Rounds(key->grand_rounds, in, key->u.rd_key, out); | - |
| 29 | }executed 110241 times by 1 test: end of block | 110241 |
| 30 | | - |
| 31 | void Camellia_decrypt(const unsigned char *in, unsigned char *out, | - |
| 32 | const CAMELLIA_KEY *key) | - |
| 33 | { | - |
| 34 | Camellia_DecryptBlock_Rounds(key->grand_rounds, in, key->u.rd_key, out); | - |
| 35 | }executed 1359 times by 1 test: end of block | 1359 |
| | |