| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/camellia/cmll_misc.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||
| 2 | int | - | ||||||||||||||||||
| 3 | Camellia_set_key(const unsigned char *userKey, const int bits, | - | ||||||||||||||||||
| 4 | CAMELLIA_KEY *key) | - | ||||||||||||||||||
| 5 | { | - | ||||||||||||||||||
| 6 | if (userKey ==
| 0-129 | ||||||||||||||||||
| 7 | ((void *)0)
| 0-129 | ||||||||||||||||||
| 8 | || key ==
| 0-129 | ||||||||||||||||||
| 9 | ((void *)0)
| 0-129 | ||||||||||||||||||
| 10 | ) | - | ||||||||||||||||||
| 11 | return never executed: -1;return -1;never executed: return -1; | 0 | ||||||||||||||||||
| 12 | if (bits != 128
| 0-82 | ||||||||||||||||||
| 13 | return never executed: -2;return -2;never executed: return -2; | 0 | ||||||||||||||||||
| 14 | key->grand_rounds = Camellia_Ekeygen(bits, userKey, key->u.rd_key); | - | ||||||||||||||||||
| 15 | return executed 129 times by 2 tests: 0;return 0;Executed by:
executed 129 times by 2 tests: return 0;Executed by:
| 129 | ||||||||||||||||||
| 16 | } | - | ||||||||||||||||||
| 17 | - | |||||||||||||||||||
| 18 | void | - | ||||||||||||||||||
| 19 | Camellia_encrypt(const unsigned char *in, unsigned char *out, | - | ||||||||||||||||||
| 20 | const CAMELLIA_KEY *key) | - | ||||||||||||||||||
| 21 | { | - | ||||||||||||||||||
| 22 | Camellia_EncryptBlock_Rounds(key->grand_rounds, in, key->u.rd_key, out); | - | ||||||||||||||||||
| 23 | } executed 66 times by 1 test: end of blockExecuted by:
| 66 | ||||||||||||||||||
| 24 | - | |||||||||||||||||||
| 25 | void | - | ||||||||||||||||||
| 26 | Camellia_decrypt(const unsigned char *in, unsigned char *out, | - | ||||||||||||||||||
| 27 | const CAMELLIA_KEY *key) | - | ||||||||||||||||||
| 28 | { | - | ||||||||||||||||||
| 29 | Camellia_DecryptBlock_Rounds(key->grand_rounds, in, key->u.rd_key, out); | - | ||||||||||||||||||
| 30 | } executed 15 times by 1 test: end of blockExecuted by:
| 15 | ||||||||||||||||||
| Switch to Source code | Preprocessed file |