OpenCoverage

cmll_misc.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/camellia/cmll_misc.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2int Camellia_set_key(const unsigned char *userKey, const int bits,-
3 CAMELLIA_KEY *key)-
4{-
5 if (!userKey
!userKeyDescription
TRUEnever evaluated
FALSEevaluated 1595 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
|| !key
!keyDescription
TRUEnever evaluated
FALSEevaluated 1595 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-1595
6 return
never executed: return -1;
-1;
never executed: return -1;
0
7 if (bits != 128
bits != 128Description
TRUEevaluated 1046 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 549 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
&& bits != 192
bits != 192Description
TRUEevaluated 566 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 480 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
&& bits != 256
bits != 256Description
TRUEnever evaluated
FALSEevaluated 566 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-1046
8 return
never executed: return -2;
-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: return 0;
Executed by:
  • libcrypto.so.1.1
0;
executed 1595 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
1595
11}-
12-
13void 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 block
Executed by:
  • libcrypto.so.1.1
110241
18-
19void 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 block
Executed by:
  • libcrypto.so.1.1
1359
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2