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