Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/evp/e_camellia.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||
2 | - | |||||||||||||
3 | - | |||||||||||||
4 | - | |||||||||||||
5 | - | |||||||||||||
6 | static int camellia_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, | - | ||||||||||||
7 | const unsigned char *iv, int enc); | - | ||||||||||||
8 | - | |||||||||||||
9 | - | |||||||||||||
10 | typedef struct { | - | ||||||||||||
11 | CAMELLIA_KEY ks; | - | ||||||||||||
12 | block128_f block; | - | ||||||||||||
13 | union { | - | ||||||||||||
14 | cbc128_f cbc; | - | ||||||||||||
15 | ctr128_f ctr; | - | ||||||||||||
16 | } stream; | - | ||||||||||||
17 | } EVP_CAMELLIA_KEY; | - | ||||||||||||
18 | static int camellia_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, | - | ||||||||||||
19 | const unsigned char *iv, int enc) | - | ||||||||||||
20 | { | - | ||||||||||||
21 | int ret, mode; | - | ||||||||||||
22 | EVP_CAMELLIA_KEY *dat = ((EVP_CAMELLIA_KEY *)EVP_CIPHER_CTX_get_cipher_data(ctx)); | - | ||||||||||||
23 | - | |||||||||||||
24 | ret = Camellia_set_key(key, EVP_CIPHER_CTX_key_length(ctx) * 8, &dat->ks); | - | ||||||||||||
25 | if (ret < 0
| 0-1595 | ||||||||||||
26 | ERR_put_error(6,(159),(157),__FILE__,221); | - | ||||||||||||
27 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||
28 | } | - | ||||||||||||
29 | - | |||||||||||||
30 | mode = (EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(ctx)) & 0xF0007); | - | ||||||||||||
31 | if ((mode == 0x1
| 414-1181 | ||||||||||||
32 | && !enc
| 423-458 | ||||||||||||
33 | dat->block = (block128_f) Camellia_decrypt; | - | ||||||||||||
34 | dat->stream.cbc = mode == 0x2
| 189-234 | ||||||||||||
35 | (cbc128_f) Camellia_cbc_encrypt : | - | ||||||||||||
36 | ((void *)0) | - | ||||||||||||
37 | ; | - | ||||||||||||
38 | } executed 423 times by 1 test: else {end of block Executed by:
| 423 | ||||||||||||
39 | dat->block = (block128_f) Camellia_encrypt; | - | ||||||||||||
40 | dat->stream.cbc = mode == 0x2
| 233-939 | ||||||||||||
41 | (cbc128_f) Camellia_cbc_encrypt : | - | ||||||||||||
42 | ((void *)0) | - | ||||||||||||
43 | ; | - | ||||||||||||
44 | } executed 1172 times by 1 test: end of block Executed by:
| 1172 | ||||||||||||
45 | - | |||||||||||||
46 | return executed 1595 times by 1 test: 1;return 1; Executed by:
executed 1595 times by 1 test: return 1; Executed by:
| 1595 | ||||||||||||
47 | } | - | ||||||||||||
48 | - | |||||||||||||
49 | static int camellia_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, | - | ||||||||||||
50 | const unsigned char *in, size_t len) | - | ||||||||||||
51 | { | - | ||||||||||||
52 | EVP_CAMELLIA_KEY *dat = ((EVP_CAMELLIA_KEY *)EVP_CIPHER_CTX_get_cipher_data(ctx)); | - | ||||||||||||
53 | - | |||||||||||||
54 | if (dat->stream.cbc
| 0-1147 | ||||||||||||
55 | (* executed 1147 times by 1 test: dat->stream.cbc) (in, out, len, &dat->ks,(*dat->stream.cbc) (in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), EVP_CIPHER_CTX_encrypting(ctx)); Executed by:
executed 1147 times by 1 test: (*dat->stream.cbc) (in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), EVP_CIPHER_CTX_encrypting(ctx)); Executed by:
| 1147 | ||||||||||||
56 | EVP_CIPHER_CTX_iv_noconst(ctx), executed 1147 times by 1 test: (*dat->stream.cbc) (in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), EVP_CIPHER_CTX_encrypting(ctx)); Executed by:
| 1147 | ||||||||||||
57 | EVP_CIPHER_CTX_encrypting(ctx)); executed 1147 times by 1 test: (*dat->stream.cbc) (in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), EVP_CIPHER_CTX_encrypting(ctx)); Executed by:
| 1147 | ||||||||||||
58 | else if (EVP_CIPHER_CTX_encrypting(ctx)
| 0 | ||||||||||||
59 | CRYPTO_cbc128_encrypt(in, out, len, &dat->ks, never executed: CRYPTO_cbc128_encrypt(in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), dat->block); | 0 | ||||||||||||
60 | EVP_CIPHER_CTX_iv_noconst(ctx), dat->block); never executed: CRYPTO_cbc128_encrypt(in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), dat->block); | 0 | ||||||||||||
61 | else | - | ||||||||||||
62 | CRYPTO_cbc128_decrypt(in, out, len, &dat->ks, never executed: CRYPTO_cbc128_decrypt(in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), dat->block); | 0 | ||||||||||||
63 | EVP_CIPHER_CTX_iv_noconst(ctx), dat->block); never executed: CRYPTO_cbc128_decrypt(in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), dat->block); | 0 | ||||||||||||
64 | - | |||||||||||||
65 | return executed 1147 times by 1 test: 1;return 1; Executed by:
executed 1147 times by 1 test: return 1; Executed by:
| 1147 | ||||||||||||
66 | } | - | ||||||||||||
67 | - | |||||||||||||
68 | static int camellia_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, | - | ||||||||||||
69 | const unsigned char *in, size_t len) | - | ||||||||||||
70 | { | - | ||||||||||||
71 | size_t bl = EVP_CIPHER_CTX_block_size(ctx); | - | ||||||||||||
72 | size_t i; | - | ||||||||||||
73 | EVP_CAMELLIA_KEY *dat = ((EVP_CAMELLIA_KEY *)EVP_CIPHER_CTX_get_cipher_data(ctx)); | - | ||||||||||||
74 | - | |||||||||||||
75 | if (len < bl
| 0-789 | ||||||||||||
76 | return never executed: 1;return 1; never executed: return 1; | 0 | ||||||||||||
77 | - | |||||||||||||
78 | for (i = 0, len -= bl; i <= len
| 789-2754 | ||||||||||||
79 | (* executed 2754 times by 1 test: dat->block) (in + i, out + i, &dat->ks);(*dat->block) (in + i, out + i, &dat->ks); Executed by:
executed 2754 times by 1 test: (*dat->block) (in + i, out + i, &dat->ks); Executed by:
| 2754 | ||||||||||||
80 | - | |||||||||||||
81 | return executed 789 times by 1 test: 1;return 1; Executed by:
executed 789 times by 1 test: return 1; Executed by:
| 789 | ||||||||||||
82 | } | - | ||||||||||||
83 | - | |||||||||||||
84 | static int camellia_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, | - | ||||||||||||
85 | const unsigned char *in, size_t len) | - | ||||||||||||
86 | { | - | ||||||||||||
87 | EVP_CAMELLIA_KEY *dat = ((EVP_CAMELLIA_KEY *)EVP_CIPHER_CTX_get_cipher_data(ctx)); | - | ||||||||||||
88 | - | |||||||||||||
89 | int num = EVP_CIPHER_CTX_num(ctx); | - | ||||||||||||
90 | CRYPTO_ofb128_encrypt(in, out, len, &dat->ks, | - | ||||||||||||
91 | EVP_CIPHER_CTX_iv_noconst(ctx), &num, dat->block); | - | ||||||||||||
92 | EVP_CIPHER_CTX_set_num(ctx, num); | - | ||||||||||||
93 | return executed 582 times by 1 test: 1;return 1; Executed by:
executed 582 times by 1 test: return 1; Executed by:
| 582 | ||||||||||||
94 | } | - | ||||||||||||
95 | - | |||||||||||||
96 | static int camellia_cfb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, | - | ||||||||||||
97 | const unsigned char *in, size_t len) | - | ||||||||||||
98 | { | - | ||||||||||||
99 | EVP_CAMELLIA_KEY *dat = ((EVP_CAMELLIA_KEY *)EVP_CIPHER_CTX_get_cipher_data(ctx)); | - | ||||||||||||
100 | - | |||||||||||||
101 | int num = EVP_CIPHER_CTX_num(ctx); | - | ||||||||||||
102 | CRYPTO_cfb128_encrypt(in, out, len, &dat->ks, | - | ||||||||||||
103 | EVP_CIPHER_CTX_iv_noconst(ctx), &num, EVP_CIPHER_CTX_encrypting(ctx), dat->block); | - | ||||||||||||
104 | EVP_CIPHER_CTX_set_num(ctx, num); | - | ||||||||||||
105 | return executed 582 times by 1 test: 1;return 1; Executed by:
executed 582 times by 1 test: return 1; Executed by:
| 582 | ||||||||||||
106 | } | - | ||||||||||||
107 | - | |||||||||||||
108 | static int camellia_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, | - | ||||||||||||
109 | const unsigned char *in, size_t len) | - | ||||||||||||
110 | { | - | ||||||||||||
111 | EVP_CAMELLIA_KEY *dat = ((EVP_CAMELLIA_KEY *)EVP_CIPHER_CTX_get_cipher_data(ctx)); | - | ||||||||||||
112 | - | |||||||||||||
113 | int num = EVP_CIPHER_CTX_num(ctx); | - | ||||||||||||
114 | CRYPTO_cfb128_8_encrypt(in, out, len, &dat->ks, | - | ||||||||||||
115 | EVP_CIPHER_CTX_iv_noconst(ctx), &num, EVP_CIPHER_CTX_encrypting(ctx), dat->block); | - | ||||||||||||
116 | EVP_CIPHER_CTX_set_num(ctx, num); | - | ||||||||||||
117 | return executed 6 times by 1 test: 1;return 1; Executed by:
executed 6 times by 1 test: return 1; Executed by:
| 6 | ||||||||||||
118 | } | - | ||||||||||||
119 | - | |||||||||||||
120 | static int camellia_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, | - | ||||||||||||
121 | const unsigned char *in, size_t len) | - | ||||||||||||
122 | { | - | ||||||||||||
123 | EVP_CAMELLIA_KEY *dat = ((EVP_CAMELLIA_KEY *)EVP_CIPHER_CTX_get_cipher_data(ctx)); | - | ||||||||||||
124 | - | |||||||||||||
125 | if (EVP_CIPHER_CTX_test_flags(ctx, 0x2000)
| 0-6 | ||||||||||||
126 | int num = EVP_CIPHER_CTX_num(ctx); | - | ||||||||||||
127 | CRYPTO_cfb128_1_encrypt(in, out, len, &dat->ks, | - | ||||||||||||
128 | EVP_CIPHER_CTX_iv_noconst(ctx), &num, EVP_CIPHER_CTX_encrypting(ctx), dat->block); | - | ||||||||||||
129 | EVP_CIPHER_CTX_set_num(ctx, num); | - | ||||||||||||
130 | return never executed: 1;return 1; never executed: return 1; | 0 | ||||||||||||
131 | } | - | ||||||||||||
132 | - | |||||||||||||
133 | while (len >= ((size_t)1<<(sizeof(size_t)*8-4))
| 0-6 | ||||||||||||
134 | int num = EVP_CIPHER_CTX_num(ctx); | - | ||||||||||||
135 | CRYPTO_cfb128_1_encrypt(in, out, ((size_t)1<<(sizeof(size_t)*8-4)) * 8, &dat->ks, | - | ||||||||||||
136 | EVP_CIPHER_CTX_iv_noconst(ctx), &num, EVP_CIPHER_CTX_encrypting(ctx), dat->block); | - | ||||||||||||
137 | EVP_CIPHER_CTX_set_num(ctx, num); | - | ||||||||||||
138 | len -= ((size_t)1<<(sizeof(size_t)*8-4)); | - | ||||||||||||
139 | out += ((size_t)1<<(sizeof(size_t)*8-4)); | - | ||||||||||||
140 | in += ((size_t)1<<(sizeof(size_t)*8-4)); | - | ||||||||||||
141 | } never executed: end of block | 0 | ||||||||||||
142 | if (len
| 0-6 | ||||||||||||
143 | int num = EVP_CIPHER_CTX_num(ctx); | - | ||||||||||||
144 | CRYPTO_cfb128_1_encrypt(in, out, len * 8, &dat->ks, | - | ||||||||||||
145 | EVP_CIPHER_CTX_iv_noconst(ctx), &num, EVP_CIPHER_CTX_encrypting(ctx), dat->block); | - | ||||||||||||
146 | EVP_CIPHER_CTX_set_num(ctx, num); | - | ||||||||||||
147 | } executed 6 times by 1 test: end of block Executed by:
| 6 | ||||||||||||
148 | - | |||||||||||||
149 | return executed 6 times by 1 test: 1;return 1; Executed by:
executed 6 times by 1 test: return 1; Executed by:
| 6 | ||||||||||||
150 | } | - | ||||||||||||
151 | - | |||||||||||||
152 | static int camellia_ctr_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, | - | ||||||||||||
153 | const unsigned char *in, size_t len) | - | ||||||||||||
154 | { | - | ||||||||||||
155 | unsigned int num = EVP_CIPHER_CTX_num(ctx); | - | ||||||||||||
156 | EVP_CAMELLIA_KEY *dat = ((EVP_CAMELLIA_KEY *)EVP_CIPHER_CTX_get_cipher_data(ctx)); | - | ||||||||||||
157 | - | |||||||||||||
158 | if (dat->stream.ctr
| 0-222 | ||||||||||||
159 | CRYPTO_ctr128_encrypt_ctr32(in, out, len, &dat->ks, never executed: CRYPTO_ctr128_encrypt_ctr32(in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), EVP_CIPHER_CTX_buf_noconst(ctx), &num, dat->stream.ctr); | 0 | ||||||||||||
160 | EVP_CIPHER_CTX_iv_noconst(ctx), never executed: CRYPTO_ctr128_encrypt_ctr32(in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), EVP_CIPHER_CTX_buf_noconst(ctx), &num, dat->stream.ctr); | 0 | ||||||||||||
161 | EVP_CIPHER_CTX_buf_noconst(ctx), &num, never executed: CRYPTO_ctr128_encrypt_ctr32(in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), EVP_CIPHER_CTX_buf_noconst(ctx), &num, dat->stream.ctr); | 0 | ||||||||||||
162 | dat->stream.ctr); never executed: CRYPTO_ctr128_encrypt_ctr32(in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), EVP_CIPHER_CTX_buf_noconst(ctx), &num, dat->stream.ctr); | 0 | ||||||||||||
163 | else | - | ||||||||||||
164 | CRYPTO_ctr128_encrypt(in, out, len, &dat->ks, executed 222 times by 1 test: CRYPTO_ctr128_encrypt(in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), EVP_CIPHER_CTX_buf_noconst(ctx), &num, dat->block); Executed by:
| 222 | ||||||||||||
165 | EVP_CIPHER_CTX_iv_noconst(ctx), executed 222 times by 1 test: CRYPTO_ctr128_encrypt(in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), EVP_CIPHER_CTX_buf_noconst(ctx), &num, dat->block); Executed by:
| 222 | ||||||||||||
166 | EVP_CIPHER_CTX_buf_noconst(ctx), &num, executed 222 times by 1 test: CRYPTO_ctr128_encrypt(in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), EVP_CIPHER_CTX_buf_noconst(ctx), &num, dat->block); Executed by:
| 222 | ||||||||||||
167 | dat->block); executed 222 times by 1 test: CRYPTO_ctr128_encrypt(in, out, len, &dat->ks, EVP_CIPHER_CTX_iv_noconst(ctx), EVP_CIPHER_CTX_buf_noconst(ctx), &num, dat->block); Executed by:
| 222 | ||||||||||||
168 | EVP_CIPHER_CTX_set_num(ctx, num); | - | ||||||||||||
169 | return executed 222 times by 1 test: 1;return 1; Executed by:
executed 222 times by 1 test: return 1; Executed by:
| 222 | ||||||||||||
170 | } | - | ||||||||||||
171 | - | |||||||||||||
172 | static const EVP_CIPHER camellia_128_cbc = { 751,16,128/8,16, 0|0x1000|0x2, camellia_init_key, camellia_cbc_cipher, | - | ||||||||||||
173 | ((void *)0) | - | ||||||||||||
174 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
175 | ((void *)0) | - | ||||||||||||
176 | , | - | ||||||||||||
177 | ((void *)0) | - | ||||||||||||
178 | , | - | ||||||||||||
179 | ((void *)0) | - | ||||||||||||
180 | , | - | ||||||||||||
181 | ((void *)0) | - | ||||||||||||
182 | }; const EVP_CIPHER *EVP_camellia_128_cbc(void) { return executed 3920 times by 1 test: &camellia_128_cbc;return &camellia_128_cbc; Executed by:
executed 3920 times by 1 test: } static const EVP_CIPHER camellia_128_ecb = { 754,16,128/8,0, 0|0x1000|0x1, camellia_init_key, camellia_ecb_cipher, return &camellia_128_cbc; Executed by:
| 3920 | ||||||||||||
183 | ((void *)0) | - | ||||||||||||
184 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
185 | ((void *)0) | - | ||||||||||||
186 | , | - | ||||||||||||
187 | ((void *)0) | - | ||||||||||||
188 | , | - | ||||||||||||
189 | ((void *)0) | - | ||||||||||||
190 | , | - | ||||||||||||
191 | ((void *)0) | - | ||||||||||||
192 | }; const EVP_CIPHER *EVP_camellia_128_ecb(void) { return executed 1962 times by 1 test: &camellia_128_ecb;return &camellia_128_ecb; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_128_ofb = { 766,1,128/8,16, 0|0x1000|0x4, camellia_init_key, camellia_ofb_cipher, return &camellia_128_ecb; Executed by:
| 1962 | ||||||||||||
193 | ((void *)0) | - | ||||||||||||
194 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
195 | ((void *)0) | - | ||||||||||||
196 | , | - | ||||||||||||
197 | ((void *)0) | - | ||||||||||||
198 | , | - | ||||||||||||
199 | ((void *)0) | - | ||||||||||||
200 | , | - | ||||||||||||
201 | ((void *)0) | - | ||||||||||||
202 | }; const EVP_CIPHER *EVP_camellia_128_ofb(void) { return executed 1962 times by 1 test: &camellia_128_ofb;return &camellia_128_ofb; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_128_cfb = { 757,1,128/8,16, 0|0x1000|0x3, camellia_init_key, camellia_cfb_cipher, return &camellia_128_ofb; Executed by:
| 1962 | ||||||||||||
203 | ((void *)0) | - | ||||||||||||
204 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
205 | ((void *)0) | - | ||||||||||||
206 | , | - | ||||||||||||
207 | ((void *)0) | - | ||||||||||||
208 | , | - | ||||||||||||
209 | ((void *)0) | - | ||||||||||||
210 | , | - | ||||||||||||
211 | ((void *)0) | - | ||||||||||||
212 | }; const EVP_CIPHER *EVP_camellia_128_cfb128(void) { return executed 1962 times by 1 test: &camellia_128_cfb;return &camellia_128_cfb; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_128_cfb1 = { 760,1,128/8,16, 0|0x3, camellia_init_key, camellia_cfb1_cipher, return &camellia_128_cfb; Executed by:
| 1962 | ||||||||||||
213 | ((void *)0) | - | ||||||||||||
214 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
215 | ((void *)0) | - | ||||||||||||
216 | , | - | ||||||||||||
217 | ((void *)0) | - | ||||||||||||
218 | , | - | ||||||||||||
219 | ((void *)0) | - | ||||||||||||
220 | , | - | ||||||||||||
221 | ((void *)0) | - | ||||||||||||
222 | }; const EVP_CIPHER *EVP_camellia_128_cfb1(void) { return executed 1962 times by 1 test: &camellia_128_cfb1;return &camellia_128_cfb1; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_128_cfb8 = { 763,1,128/8,16, 0|0x3, camellia_init_key, camellia_cfb8_cipher, return &camellia_128_cfb1; Executed by:
| 1962 | ||||||||||||
223 | ((void *)0) | - | ||||||||||||
224 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
225 | ((void *)0) | - | ||||||||||||
226 | , | - | ||||||||||||
227 | ((void *)0) | - | ||||||||||||
228 | , | - | ||||||||||||
229 | ((void *)0) | - | ||||||||||||
230 | , | - | ||||||||||||
231 | ((void *)0) | - | ||||||||||||
232 | }; const EVP_CIPHER *EVP_camellia_128_cfb8(void) { return executed 1962 times by 1 test: &camellia_128_cfb8;return &camellia_128_cfb8; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_128_ctr = { 963,1,128/8,16, 0|0x5, camellia_init_key, camellia_ctr_cipher, return &camellia_128_cfb8; Executed by:
| 1962 | ||||||||||||
233 | ((void *)0) | - | ||||||||||||
234 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
235 | ((void *)0) | - | ||||||||||||
236 | , | - | ||||||||||||
237 | ((void *)0) | - | ||||||||||||
238 | , | - | ||||||||||||
239 | ((void *)0) | - | ||||||||||||
240 | , | - | ||||||||||||
241 | ((void *)0) | - | ||||||||||||
242 | }; const EVP_CIPHER *EVP_camellia_128_ctr(void) { return executed 1962 times by 1 test: &camellia_128_ctr;return &camellia_128_ctr; Executed by:
executed 1962 times by 1 test: }return &camellia_128_ctr; Executed by:
| 1962 | ||||||||||||
243 | static const EVP_CIPHER camellia_192_cbc = { 752,16,192/8,16, 0|0x1000|0x2, camellia_init_key, camellia_cbc_cipher, | - | ||||||||||||
244 | ((void *)0) | - | ||||||||||||
245 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
246 | ((void *)0) | - | ||||||||||||
247 | , | - | ||||||||||||
248 | ((void *)0) | - | ||||||||||||
249 | , | - | ||||||||||||
250 | ((void *)0) | - | ||||||||||||
251 | , | - | ||||||||||||
252 | ((void *)0) | - | ||||||||||||
253 | }; const EVP_CIPHER *EVP_camellia_192_cbc(void) { return executed 1962 times by 1 test: &camellia_192_cbc;return &camellia_192_cbc; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_192_ecb = { 755,16,192/8,0, 0|0x1000|0x1, camellia_init_key, camellia_ecb_cipher, return &camellia_192_cbc; Executed by:
| 1962 | ||||||||||||
254 | ((void *)0) | - | ||||||||||||
255 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
256 | ((void *)0) | - | ||||||||||||
257 | , | - | ||||||||||||
258 | ((void *)0) | - | ||||||||||||
259 | , | - | ||||||||||||
260 | ((void *)0) | - | ||||||||||||
261 | , | - | ||||||||||||
262 | ((void *)0) | - | ||||||||||||
263 | }; const EVP_CIPHER *EVP_camellia_192_ecb(void) { return executed 1962 times by 1 test: &camellia_192_ecb;return &camellia_192_ecb; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_192_ofb = { 767,1,192/8,16, 0|0x1000|0x4, camellia_init_key, camellia_ofb_cipher, return &camellia_192_ecb; Executed by:
| 1962 | ||||||||||||
264 | ((void *)0) | - | ||||||||||||
265 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
266 | ((void *)0) | - | ||||||||||||
267 | , | - | ||||||||||||
268 | ((void *)0) | - | ||||||||||||
269 | , | - | ||||||||||||
270 | ((void *)0) | - | ||||||||||||
271 | , | - | ||||||||||||
272 | ((void *)0) | - | ||||||||||||
273 | }; const EVP_CIPHER *EVP_camellia_192_ofb(void) { return executed 1962 times by 1 test: &camellia_192_ofb;return &camellia_192_ofb; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_192_cfb = { 758,1,192/8,16, 0|0x1000|0x3, camellia_init_key, camellia_cfb_cipher, return &camellia_192_ofb; Executed by:
| 1962 | ||||||||||||
274 | ((void *)0) | - | ||||||||||||
275 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
276 | ((void *)0) | - | ||||||||||||
277 | , | - | ||||||||||||
278 | ((void *)0) | - | ||||||||||||
279 | , | - | ||||||||||||
280 | ((void *)0) | - | ||||||||||||
281 | , | - | ||||||||||||
282 | ((void *)0) | - | ||||||||||||
283 | }; const EVP_CIPHER *EVP_camellia_192_cfb128(void) { return executed 1962 times by 1 test: &camellia_192_cfb;return &camellia_192_cfb; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_192_cfb1 = { 761,1,192/8,16, 0|0x3, camellia_init_key, camellia_cfb1_cipher, return &camellia_192_cfb; Executed by:
| 1962 | ||||||||||||
284 | ((void *)0) | - | ||||||||||||
285 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
286 | ((void *)0) | - | ||||||||||||
287 | , | - | ||||||||||||
288 | ((void *)0) | - | ||||||||||||
289 | , | - | ||||||||||||
290 | ((void *)0) | - | ||||||||||||
291 | , | - | ||||||||||||
292 | ((void *)0) | - | ||||||||||||
293 | }; const EVP_CIPHER *EVP_camellia_192_cfb1(void) { return executed 1962 times by 1 test: &camellia_192_cfb1;return &camellia_192_cfb1; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_192_cfb8 = { 764,1,192/8,16, 0|0x3, camellia_init_key, camellia_cfb8_cipher, return &camellia_192_cfb1; Executed by:
| 1962 | ||||||||||||
294 | ((void *)0) | - | ||||||||||||
295 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
296 | ((void *)0) | - | ||||||||||||
297 | , | - | ||||||||||||
298 | ((void *)0) | - | ||||||||||||
299 | , | - | ||||||||||||
300 | ((void *)0) | - | ||||||||||||
301 | , | - | ||||||||||||
302 | ((void *)0) | - | ||||||||||||
303 | }; const EVP_CIPHER *EVP_camellia_192_cfb8(void) { return executed 1962 times by 1 test: &camellia_192_cfb8;return &camellia_192_cfb8; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_192_ctr = { 967,1,192/8,16, 0|0x5, camellia_init_key, camellia_ctr_cipher, return &camellia_192_cfb8; Executed by:
| 1962 | ||||||||||||
304 | ((void *)0) | - | ||||||||||||
305 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
306 | ((void *)0) | - | ||||||||||||
307 | , | - | ||||||||||||
308 | ((void *)0) | - | ||||||||||||
309 | , | - | ||||||||||||
310 | ((void *)0) | - | ||||||||||||
311 | , | - | ||||||||||||
312 | ((void *)0) | - | ||||||||||||
313 | }; const EVP_CIPHER *EVP_camellia_192_ctr(void) { return executed 1962 times by 1 test: &camellia_192_ctr;return &camellia_192_ctr; Executed by:
executed 1962 times by 1 test: }return &camellia_192_ctr; Executed by:
| 1962 | ||||||||||||
314 | static const EVP_CIPHER camellia_256_cbc = { 753,16,256/8,16, 0|0x1000|0x2, camellia_init_key, camellia_cbc_cipher, | - | ||||||||||||
315 | ((void *)0) | - | ||||||||||||
316 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
317 | ((void *)0) | - | ||||||||||||
318 | , | - | ||||||||||||
319 | ((void *)0) | - | ||||||||||||
320 | , | - | ||||||||||||
321 | ((void *)0) | - | ||||||||||||
322 | , | - | ||||||||||||
323 | ((void *)0) | - | ||||||||||||
324 | }; const EVP_CIPHER *EVP_camellia_256_cbc(void) { return executed 3920 times by 1 test: &camellia_256_cbc;return &camellia_256_cbc; Executed by:
executed 3920 times by 1 test: } static const EVP_CIPHER camellia_256_ecb = { 756,16,256/8,0, 0|0x1000|0x1, camellia_init_key, camellia_ecb_cipher, return &camellia_256_cbc; Executed by:
| 3920 | ||||||||||||
325 | ((void *)0) | - | ||||||||||||
326 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
327 | ((void *)0) | - | ||||||||||||
328 | , | - | ||||||||||||
329 | ((void *)0) | - | ||||||||||||
330 | , | - | ||||||||||||
331 | ((void *)0) | - | ||||||||||||
332 | , | - | ||||||||||||
333 | ((void *)0) | - | ||||||||||||
334 | }; const EVP_CIPHER *EVP_camellia_256_ecb(void) { return executed 1962 times by 1 test: &camellia_256_ecb;return &camellia_256_ecb; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_256_ofb = { 768,1,256/8,16, 0|0x1000|0x4, camellia_init_key, camellia_ofb_cipher, return &camellia_256_ecb; Executed by:
| 1962 | ||||||||||||
335 | ((void *)0) | - | ||||||||||||
336 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
337 | ((void *)0) | - | ||||||||||||
338 | , | - | ||||||||||||
339 | ((void *)0) | - | ||||||||||||
340 | , | - | ||||||||||||
341 | ((void *)0) | - | ||||||||||||
342 | , | - | ||||||||||||
343 | ((void *)0) | - | ||||||||||||
344 | }; const EVP_CIPHER *EVP_camellia_256_ofb(void) { return executed 1962 times by 1 test: &camellia_256_ofb;return &camellia_256_ofb; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_256_cfb = { 759,1,256/8,16, 0|0x1000|0x3, camellia_init_key, camellia_cfb_cipher, return &camellia_256_ofb; Executed by:
| 1962 | ||||||||||||
345 | ((void *)0) | - | ||||||||||||
346 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
347 | ((void *)0) | - | ||||||||||||
348 | , | - | ||||||||||||
349 | ((void *)0) | - | ||||||||||||
350 | , | - | ||||||||||||
351 | ((void *)0) | - | ||||||||||||
352 | , | - | ||||||||||||
353 | ((void *)0) | - | ||||||||||||
354 | }; const EVP_CIPHER *EVP_camellia_256_cfb128(void) { return executed 1962 times by 1 test: &camellia_256_cfb;return &camellia_256_cfb; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_256_cfb1 = { 762,1,256/8,16, 0|0x3, camellia_init_key, camellia_cfb1_cipher, return &camellia_256_cfb; Executed by:
| 1962 | ||||||||||||
355 | ((void *)0) | - | ||||||||||||
356 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
357 | ((void *)0) | - | ||||||||||||
358 | , | - | ||||||||||||
359 | ((void *)0) | - | ||||||||||||
360 | , | - | ||||||||||||
361 | ((void *)0) | - | ||||||||||||
362 | , | - | ||||||||||||
363 | ((void *)0) | - | ||||||||||||
364 | }; const EVP_CIPHER *EVP_camellia_256_cfb1(void) { return executed 1962 times by 1 test: &camellia_256_cfb1;return &camellia_256_cfb1; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_256_cfb8 = { 765,1,256/8,16, 0|0x3, camellia_init_key, camellia_cfb8_cipher, return &camellia_256_cfb1; Executed by:
| 1962 | ||||||||||||
365 | ((void *)0) | - | ||||||||||||
366 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
367 | ((void *)0) | - | ||||||||||||
368 | , | - | ||||||||||||
369 | ((void *)0) | - | ||||||||||||
370 | , | - | ||||||||||||
371 | ((void *)0) | - | ||||||||||||
372 | , | - | ||||||||||||
373 | ((void *)0) | - | ||||||||||||
374 | }; const EVP_CIPHER *EVP_camellia_256_cfb8(void) { return executed 1962 times by 1 test: &camellia_256_cfb8;return &camellia_256_cfb8; Executed by:
executed 1962 times by 1 test: } static const EVP_CIPHER camellia_256_ctr = { 971,1,256/8,16, 0|0x5, camellia_init_key, camellia_ctr_cipher, return &camellia_256_cfb8; Executed by:
| 1962 | ||||||||||||
375 | ((void *)0) | - | ||||||||||||
376 | , sizeof(EVP_CAMELLIA_KEY), | - | ||||||||||||
377 | ((void *)0) | - | ||||||||||||
378 | , | - | ||||||||||||
379 | ((void *)0) | - | ||||||||||||
380 | , | - | ||||||||||||
381 | ((void *)0) | - | ||||||||||||
382 | , | - | ||||||||||||
383 | ((void *)0) | - | ||||||||||||
384 | }; const EVP_CIPHER *EVP_camellia_256_ctr(void) { return executed 1962 times by 1 test: &camellia_256_ctr;return &camellia_256_ctr; Executed by:
executed 1962 times by 1 test: }return &camellia_256_ctr; Executed by:
| 1962 | ||||||||||||
Switch to Source code | Preprocessed file |