Line | Source | Count |
1 | | - |
2 | static int tls1_prf_alg(const EVP_MD *md, | - |
3 | const unsigned char *sec, size_t slen, | - |
4 | const unsigned char *seed, size_t seed_len, | - |
5 | unsigned char *out, size_t olen); | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | typedef struct { | - |
12 | | - |
13 | const EVP_MD *md; | - |
14 | | - |
15 | unsigned char *sec; | - |
16 | size_t seclen; | - |
17 | | - |
18 | unsigned char seed[1024]; | - |
19 | size_t seedlen; | - |
20 | } TLS1_PRF_PKEY_CTX; | - |
21 | | - |
22 | static int pkey_tls1_prf_init(EVP_PKEY_CTX *ctx) | - |
23 | { | - |
24 | TLS1_PRF_PKEY_CTX *kctx; | - |
25 | | - |
26 | if ((TRUE | never evaluated | FALSE | evaluated 9913 times by 1 test |
kctx = CRYPTO_zalloc(sizeof(*kctx), __FILE__, 40)) == TRUE | never evaluated | FALSE | evaluated 9913 times by 1 test |
| 0-9913 |
27 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 9913 times by 1 test |
| 0-9913 |
28 | ) { | - |
29 | ERR_put_error(52,(110),((1|64)),__FILE__,41); | - |
30 | return never executed: return 0; 0;never executed: return 0; | 0 |
31 | } | - |
32 | ctx->data = kctx; | - |
33 | | - |
34 | returnexecuted 9913 times by 1 test: return 1; 1;executed 9913 times by 1 test: return 1; | 9913 |
35 | } | - |
36 | | - |
37 | static void pkey_tls1_prf_cleanup(EVP_PKEY_CTX *ctx) | - |
38 | { | - |
39 | TLS1_PRF_PKEY_CTX *kctx = ctx->data; | - |
40 | CRYPTO_clear_free(kctx->sec, kctx->seclen, __FILE__, 52); | - |
41 | OPENSSL_cleanse(kctx->seed, kctx->seedlen); | - |
42 | CRYPTO_free(kctx, __FILE__, 54); | - |
43 | }executed 9913 times by 1 test: end of block | 9913 |
44 | | - |
45 | static int pkey_tls1_prf_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) | - |
46 | { | - |
47 | TLS1_PRF_PKEY_CTX *kctx = ctx->data; | - |
48 | switch (type) { | - |
49 | caseexecuted 9906 times by 1 test: case (0x1000): (0x1000):executed 9906 times by 1 test: case (0x1000): | 9906 |
50 | kctx->md = p2; | - |
51 | returnexecuted 9906 times by 1 test: return 1; 1;executed 9906 times by 1 test: return 1; | 9906 |
52 | | - |
53 | caseexecuted 9912 times by 1 test: case (0x1000 + 1): (0x1000 + 1):executed 9912 times by 1 test: case (0x1000 + 1): | 9912 |
54 | if (p1 < 0TRUE | never evaluated | FALSE | evaluated 9912 times by 1 test |
) | 0-9912 |
55 | return never executed: return 0; 0;never executed: return 0; | 0 |
56 | if (kctx->sec != TRUE | never evaluated | FALSE | evaluated 9912 times by 1 test |
| 0-9912 |
57 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 9912 times by 1 test |
| 0-9912 |
58 | ) | - |
59 | CRYPTO_clear_free(kctx->sec, kctx->seclen, __FILE__, 69); never executed: CRYPTO_clear_free(kctx->sec, kctx->seclen, __FILE__, 69); | 0 |
60 | OPENSSL_cleanse(kctx->seed, kctx->seedlen); | - |
61 | kctx->seedlen = 0; | - |
62 | kctx->sec = CRYPTO_memdup((p2), p1, __FILE__, 72); | - |
63 | if (kctx->sec == TRUE | never evaluated | FALSE | evaluated 9912 times by 1 test |
| 0-9912 |
64 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 9912 times by 1 test |
| 0-9912 |
65 | ) | - |
66 | return never executed: return 0; 0;never executed: return 0; | 0 |
67 | kctx->seclen = p1; | - |
68 | returnexecuted 9912 times by 1 test: return 1; 1;executed 9912 times by 1 test: return 1; | 9912 |
69 | | - |
70 | caseexecuted 49539 times by 1 test: case (0x1000 + 2): (0x1000 + 2):executed 49539 times by 1 test: case (0x1000 + 2): | 49539 |
71 | if (p1 == 0TRUE | evaluated 26654 times by 1 test | FALSE | evaluated 22885 times by 1 test |
|| p2 == TRUE | never evaluated | FALSE | evaluated 22885 times by 1 test |
| 0-26654 |
72 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 22885 times by 1 test |
| 0-22885 |
73 | ) | - |
74 | returnexecuted 26654 times by 1 test: return 1; 1;executed 26654 times by 1 test: return 1; | 26654 |
75 | if (p1 < 0TRUE | never evaluated | FALSE | evaluated 22885 times by 1 test |
|| p1 > (int)(1024 - kctx->seedlen)TRUE | never evaluated | FALSE | evaluated 22885 times by 1 test |
) | 0-22885 |
76 | return never executed: return 0; 0;never executed: return 0; | 0 |
77 | memcpy(kctx->seed + kctx->seedlen, p2, p1); | - |
78 | kctx->seedlen += p1; | - |
79 | returnexecuted 22885 times by 1 test: return 1; 1;executed 22885 times by 1 test: return 1; | 22885 |
80 | | - |
81 | default never executed: default: :never executed: default: | 0 |
82 | return never executed: return -2; -2;never executed: return -2; | 0 |
83 | | - |
84 | } | - |
85 | } | - |
86 | | - |
87 | static int pkey_tls1_prf_ctrl_str(EVP_PKEY_CTX *ctx, | - |
88 | const char *type, const char *value) | - |
89 | { | - |
90 | if (value == TRUE | never evaluated | FALSE | evaluated 29 times by 1 test |
| 0-29 |
91 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 29 times by 1 test |
| 0-29 |
92 | ) { | - |
93 | ERR_put_error(52,(100),(102),__FILE__,97); | - |
94 | return never executed: return 0; 0;never executed: return 0; | 0 |
95 | } | - |
96 | if ( | - |
97 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
98 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
99 | ) && __builtin_constant_p (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
100 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
101 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
102 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
103 | ), __s2_len = __builtin_strlen (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
104 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
105 | ), (!((size_t)(const void *)((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
106 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
107 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
108 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
109 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
110 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
111 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
112 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
113 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
114 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
115 | , TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
116 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
117 | ) : (__builtin_constant_p (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
118 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
119 | ) && ((size_t)(const void *)((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
120 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
121 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
122 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
123 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
124 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
125 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
126 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
127 | ) && ((size_t)(const void *)((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
128 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
129 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
130 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
131 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
132 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
133 | , TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
134 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
135 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
136 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
137 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
138 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
139 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 0-23 |
140 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
141 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 0-23 |
142 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
143 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 0-23 |
144 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); | 0-23 |
145 | ))[3] - __s2[3]);TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 0-23 |
146 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
147 | ) && ((size_t)(const void *)((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
148 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
149 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
150 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
151 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
152 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
153 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
154 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
155 | ) && ((size_t)(const void *)((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
156 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
157 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
158 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
159 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
160 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
161 | , TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
162 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
163 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
164 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
165 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
166 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
167 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | evaluated 29 times by 1 test | FALSE | never evaluated |
&& __result == 0TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 0-29 |
168 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
169 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
&& __result == 0TRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 0-23 |
170 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
171 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | evaluated 6 times by 1 test |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "md" ))[3] - __s2[3]); TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 0-23 |
172 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "md" ))[3] - __s2[3]); | 0-23 |
173 | ))[3] - __s2[3]);TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "md" ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 0-23 |
174 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
175 | , TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
176 | "md"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
177 | )))); }) TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 6-23 |
178 | == 0TRUE | evaluated 6 times by 1 test | FALSE | evaluated 23 times by 1 test |
) { | 6-23 |
179 | TLS1_PRF_PKEY_CTX *kctx = ctx->data; | - |
180 | | - |
181 | const EVP_MD *md = EVP_get_digestbyname(value); | - |
182 | if (md == TRUE | never evaluated | FALSE | evaluated 6 times by 1 test |
| 0-6 |
183 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 6 times by 1 test |
| 0-6 |
184 | ) { | - |
185 | ERR_put_error(52,(100),(100),__FILE__,105); | - |
186 | return never executed: return 0; 0;never executed: return 0; | 0 |
187 | } | - |
188 | kctx->md = md; | - |
189 | returnexecuted 6 times by 1 test: return 1; 1;executed 6 times by 1 test: return 1; | 6 |
190 | } | - |
191 | if ( | - |
192 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
193 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
194 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
195 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
196 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
197 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
198 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
199 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
200 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
201 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
202 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
203 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
204 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
205 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
206 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
207 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
208 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
209 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
210 | , TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
211 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
212 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
213 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
214 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
215 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
216 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
217 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
218 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
219 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
220 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
221 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
222 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
223 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
224 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
225 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
226 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
227 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
228 | , TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
229 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
230 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
231 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
232 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
233 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
234 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
235 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
236 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
237 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
238 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
239 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); | 0-23 |
240 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
241 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
242 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
243 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
244 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
245 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
246 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
247 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
248 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
249 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
250 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
251 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
252 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
253 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
254 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
255 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
256 | , TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
257 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
258 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
259 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
260 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
261 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
262 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
263 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
264 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
265 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
266 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "secret" ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
267 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "secret" ))[3] - __s2[3]); | 0-23 |
268 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "secret" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
269 | typeTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
270 | , TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
271 | "secret"TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
272 | )))); }) TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
| 0-23 |
273 | == 0TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
) | 0-23 |
274 | return never executed: return EVP_PKEY_CTX_str2ctrl(ctx, (0x1000 + 1), value); EVP_PKEY_CTX_str2ctrl(ctx, (0x1000 + 1), value);never executed: return EVP_PKEY_CTX_str2ctrl(ctx, (0x1000 + 1), value); | 0 |
275 | if ( | - |
276 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
277 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
278 | ) && __builtin_constant_p (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
279 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
280 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
281 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
282 | ), __s2_len = __builtin_strlen (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
283 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
284 | ), (!((size_t)(const void *)((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
285 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
286 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
287 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
288 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
289 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
290 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
291 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
292 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
293 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
294 | , TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
295 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
296 | ) : (__builtin_constant_p (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
297 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
298 | ) && ((size_t)(const void *)((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
299 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
300 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
301 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
302 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
303 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
304 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
305 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
306 | ) && ((size_t)(const void *)((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
307 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
308 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
309 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
310 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
311 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
312 | , TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
313 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
314 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
315 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
316 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
317 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
318 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 0-17 |
319 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
320 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 0-17 |
321 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
322 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 0-17 |
323 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); | 0-17 |
324 | ))[3] - __s2[3]);TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 0-17 |
325 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
326 | ) && ((size_t)(const void *)((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
327 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
328 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
329 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
330 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
331 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
332 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
333 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
334 | ) && ((size_t)(const void *)((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
335 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
336 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
337 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
338 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
339 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
340 | , TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
341 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
342 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
343 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
344 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
345 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
346 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 0-17 |
347 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
348 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 0-17 |
349 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
350 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "hexsecret" ))[3] - __s2[3]); TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 0-17 |
351 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "hexsecret" ))[3] - __s2[3]); | 0-17 |
352 | ))[3] - __s2[3]);TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "hexsecret" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 0-17 |
353 | typeTRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
354 | , TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
355 | "hexsecret"TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
356 | )))); }) TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 6-17 |
357 | == 0TRUE | evaluated 6 times by 1 test | FALSE | evaluated 17 times by 1 test |
) | 6-17 |
358 | returnexecuted 6 times by 1 test: return EVP_PKEY_CTX_hex2ctrl(ctx, (0x1000 + 1), value); EVP_PKEY_CTX_hex2ctrl(ctx, (0x1000 + 1), value);executed 6 times by 1 test: return EVP_PKEY_CTX_hex2ctrl(ctx, (0x1000 + 1), value); | 6 |
359 | if ( | - |
360 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
361 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
362 | ) && __builtin_constant_p (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
363 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
364 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
365 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
366 | ), __s2_len = __builtin_strlen (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
367 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
368 | ), (!((size_t)(const void *)((TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
369 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
370 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
371 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
372 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
373 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
374 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
375 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
376 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
377 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
378 | , TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
379 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
380 | ) : (__builtin_constant_p (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
381 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
382 | ) && ((size_t)(const void *)((TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
383 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
384 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
385 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
386 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
387 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
388 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
389 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
390 | ) && ((size_t)(const void *)((TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
391 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
392 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
393 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
394 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
395 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
396 | , TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
397 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
398 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
399 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
400 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
401 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
402 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 0-12 |
403 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
404 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 0-12 |
405 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
406 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 0-12 |
407 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); | 0-12 |
408 | ))[3] - __s2[3]);TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 0-12 |
409 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
410 | ) && ((size_t)(const void *)((TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
411 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
412 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
413 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
414 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
415 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
416 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
417 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
418 | ) && ((size_t)(const void *)((TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
419 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
420 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
421 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
422 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
423 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
424 | , TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
425 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
426 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
427 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
428 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
429 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
430 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 0-12 |
431 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
432 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 0-12 |
433 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
434 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "seed" ))[3] - __s2[3]); TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 0-12 |
435 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "seed" ))[3] - __s2[3]); | 0-12 |
436 | ))[3] - __s2[3]);TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "seed" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 0-12 |
437 | typeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
438 | , TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
439 | "seed"TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
440 | )))); }) TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
| 5-12 |
441 | == 0TRUE | evaluated 5 times by 1 test | FALSE | evaluated 12 times by 1 test |
) | 5-12 |
442 | returnexecuted 5 times by 1 test: return EVP_PKEY_CTX_str2ctrl(ctx, (0x1000 + 2), value); EVP_PKEY_CTX_str2ctrl(ctx, (0x1000 + 2), value);executed 5 times by 1 test: return EVP_PKEY_CTX_str2ctrl(ctx, (0x1000 + 2), value); | 5 |
443 | if ( | - |
444 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
445 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
446 | ) && __builtin_constant_p (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
447 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
448 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
449 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
450 | ), __s2_len = __builtin_strlen (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
451 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
452 | ), (!((size_t)(const void *)((TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
453 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
454 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
455 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
456 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
457 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
458 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
459 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
460 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
461 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
462 | , TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
463 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
464 | ) : (__builtin_constant_p (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
465 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
466 | ) && ((size_t)(const void *)((TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
467 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
468 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
469 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
470 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
471 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
472 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
473 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
474 | ) && ((size_t)(const void *)((TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
475 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
476 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
477 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
478 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
479 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
480 | , TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
481 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
482 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
483 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
484 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
485 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
486 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
487 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
488 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
489 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
490 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
491 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); | 0-12 |
492 | ))[3] - __s2[3]);TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( type ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
493 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
494 | ) && ((size_t)(const void *)((TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
495 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
496 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
497 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
498 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
499 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
500 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
501 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
502 | ) && ((size_t)(const void *)((TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
503 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
504 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
505 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
506 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
507 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
508 | , TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
509 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
510 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
511 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
512 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
513 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
514 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
515 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
516 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
517 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
518 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "hexseed" ))[3] - __s2[3]); TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
519 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "hexseed" ))[3] - __s2[3]); | 0-12 |
520 | ))[3] - __s2[3]);TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "hexseed" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
521 | typeTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
522 | , TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
523 | "hexseed"TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
524 | )))); }) TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
525 | == 0TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
) | 0-12 |
526 | returnexecuted 12 times by 1 test: return EVP_PKEY_CTX_hex2ctrl(ctx, (0x1000 + 2), value); EVP_PKEY_CTX_hex2ctrl(ctx, (0x1000 + 2), value);executed 12 times by 1 test: return EVP_PKEY_CTX_hex2ctrl(ctx, (0x1000 + 2), value); | 12 |
527 | | - |
528 | ERR_put_error(52,(100),(103),__FILE__,120); | - |
529 | return never executed: return -2; -2;never executed: return -2; | 0 |
530 | } | - |
531 | | - |
532 | static int pkey_tls1_prf_derive(EVP_PKEY_CTX *ctx, unsigned char *key, | - |
533 | size_t *keylen) | - |
534 | { | - |
535 | TLS1_PRF_PKEY_CTX *kctx = ctx->data; | - |
536 | if (kctx->md == TRUE | evaluated 1 time by 1 test | FALSE | evaluated 9912 times by 1 test |
| 1-9912 |
537 | ((void *)0)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 9912 times by 1 test |
| 1-9912 |
538 | ) { | - |
539 | ERR_put_error(52,(101),(105),__FILE__,129); | - |
540 | returnexecuted 1 time by 1 test: return 0; 0;executed 1 time by 1 test: return 0; | 1 |
541 | } | - |
542 | if (kctx->sec == TRUE | evaluated 1 time by 1 test | FALSE | evaluated 9911 times by 1 test |
| 1-9911 |
543 | ((void *)0)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 9911 times by 1 test |
| 1-9911 |
544 | ) { | - |
545 | ERR_put_error(52,(101),(107),__FILE__,133); | - |
546 | returnexecuted 1 time by 1 test: return 0; 0;executed 1 time by 1 test: return 0; | 1 |
547 | } | - |
548 | if (kctx->seedlen == 0TRUE | never evaluated | FALSE | evaluated 9911 times by 1 test |
) { | 0-9911 |
549 | ERR_put_error(52,(101),(106),__FILE__,137); | - |
550 | return never executed: return 0; 0;never executed: return 0; | 0 |
551 | } | - |
552 | returnexecuted 9911 times by 1 test: return tls1_prf_alg(kctx->md, kctx->sec, kctx->seclen, kctx->seed, kctx->seedlen, key, *keylen); tls1_prf_alg(kctx->md, kctx->sec, kctx->seclen,executed 9911 times by 1 test: return tls1_prf_alg(kctx->md, kctx->sec, kctx->seclen, kctx->seed, kctx->seedlen, key, *keylen); | 9911 |
553 | kctx->seed, kctx->seedlen,executed 9911 times by 1 test: return tls1_prf_alg(kctx->md, kctx->sec, kctx->seclen, kctx->seed, kctx->seedlen, key, *keylen); | 9911 |
554 | key, *keylen);executed 9911 times by 1 test: return tls1_prf_alg(kctx->md, kctx->sec, kctx->seclen, kctx->seed, kctx->seedlen, key, *keylen); | 9911 |
555 | } | - |
556 | | - |
557 | const EVP_PKEY_METHOD tls1_prf_pkey_meth = { | - |
558 | 1021, | - |
559 | 0, | - |
560 | pkey_tls1_prf_init, | - |
561 | 0, | - |
562 | pkey_tls1_prf_cleanup, | - |
563 | | - |
564 | 0, 0, | - |
565 | 0, 0, | - |
566 | | - |
567 | 0, | - |
568 | 0, | - |
569 | | - |
570 | 0, | - |
571 | 0, | - |
572 | | - |
573 | 0, 0, | - |
574 | | - |
575 | 0, 0, 0, 0, | - |
576 | | - |
577 | 0, 0, | - |
578 | | - |
579 | 0, 0, | - |
580 | | - |
581 | 0, | - |
582 | pkey_tls1_prf_derive, | - |
583 | pkey_tls1_prf_ctrl, | - |
584 | pkey_tls1_prf_ctrl_str | - |
585 | }; | - |
586 | | - |
587 | static int tls1_prf_P_hash(const EVP_MD *md, | - |
588 | const unsigned char *sec, size_t sec_len, | - |
589 | const unsigned char *seed, size_t seed_len, | - |
590 | unsigned char *out, size_t olen) | - |
591 | { | - |
592 | int chunk; | - |
593 | EVP_MD_CTX *ctx = | - |
594 | ((void *)0) | - |
595 | , *ctx_tmp = | - |
596 | ((void *)0) | - |
597 | , *ctx_init = | - |
598 | ((void *)0) | - |
599 | ; | - |
600 | EVP_PKEY *mac_key = | - |
601 | ((void *)0) | - |
602 | ; | - |
603 | unsigned char A1[64]; | - |
604 | size_t A1_len; | - |
605 | int ret = 0; | - |
606 | | - |
607 | chunk = EVP_MD_size(md); | - |
608 | if (!((chunk > 0) != 0)TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
) | 0-13505 |
609 | goto never executed: goto err; err;never executed: goto err; | 0 |
610 | | - |
611 | ctx = EVP_MD_CTX_new(); | - |
612 | ctx_tmp = EVP_MD_CTX_new(); | - |
613 | ctx_init = EVP_MD_CTX_new(); | - |
614 | if (ctx == TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
| 0-13505 |
615 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
| 0-13505 |
616 | || ctx_tmp == TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
| 0-13505 |
617 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
| 0-13505 |
618 | || ctx_init == TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
| 0-13505 |
619 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
| 0-13505 |
620 | ) | - |
621 | goto never executed: goto err; err;never executed: goto err; | 0 |
622 | EVP_MD_CTX_set_flags(ctx_init, 0x0008); | - |
623 | mac_key = EVP_PKEY_new_raw_private_key(855, | - |
624 | ((void *)0) | - |
625 | , sec, sec_len); | - |
626 | if (mac_key == TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
| 0-13505 |
627 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
| 0-13505 |
628 | ) | - |
629 | goto never executed: goto err; err;never executed: goto err; | 0 |
630 | if (!EVP_DigestSignInit(ctx_init, TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
| 0-13505 |
631 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
| 0-13505 |
632 | , md, TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
| 0-13505 |
633 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
| 0-13505 |
634 | , mac_key)TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
) | 0-13505 |
635 | goto never executed: goto err; err;never executed: goto err; | 0 |
636 | if (!EVP_MD_CTX_copy_ex(ctx, ctx_init)TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
) | 0-13505 |
637 | goto never executed: goto err; err;never executed: goto err; | 0 |
638 | if (seed != TRUE | evaluated 13505 times by 1 test | FALSE | never evaluated |
| 0-13505 |
639 | ((void *)0)TRUE | evaluated 13505 times by 1 test | FALSE | never evaluated |
| 0-13505 |
640 | && !EVP_DigestUpdate(ctx,seed,seed_len)TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
) | 0-13505 |
641 | goto never executed: goto err; err;never executed: goto err; | 0 |
642 | if (!EVP_DigestSignFinal(ctx, A1, &A1_len)TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
) | 0-13505 |
643 | goto never executed: goto err; err;never executed: goto err; | 0 |
644 | | - |
645 | for (;;) { | - |
646 | | - |
647 | if (!EVP_MD_CTX_copy_ex(ctx, ctx_init)TRUE | never evaluated | FALSE | evaluated 33408 times by 1 test |
) | 0-33408 |
648 | goto never executed: goto err; err;never executed: goto err; | 0 |
649 | if (!EVP_DigestUpdate(ctx,A1,A1_len)TRUE | never evaluated | FALSE | evaluated 33408 times by 1 test |
) | 0-33408 |
650 | goto never executed: goto err; err;never executed: goto err; | 0 |
651 | if (olen > (size_t)chunkTRUE | evaluated 19903 times by 1 test | FALSE | evaluated 13505 times by 1 test |
&& !EVP_MD_CTX_copy_ex(ctx_tmp, ctx)TRUE | never evaluated | FALSE | evaluated 19903 times by 1 test |
) | 0-19903 |
652 | goto never executed: goto err; err;never executed: goto err; | 0 |
653 | if (seedTRUE | evaluated 33408 times by 1 test | FALSE | never evaluated |
&& !EVP_DigestUpdate(ctx,seed,seed_len)TRUE | never evaluated | FALSE | evaluated 33408 times by 1 test |
) | 0-33408 |
654 | goto never executed: goto err; err;never executed: goto err; | 0 |
655 | | - |
656 | if (olen > (size_t)chunkTRUE | evaluated 19903 times by 1 test | FALSE | evaluated 13505 times by 1 test |
) { | 13505-19903 |
657 | size_t mac_len; | - |
658 | if (!EVP_DigestSignFinal(ctx, out, &mac_len)TRUE | never evaluated | FALSE | evaluated 19903 times by 1 test |
) | 0-19903 |
659 | goto never executed: goto err; err;never executed: goto err; | 0 |
660 | out += mac_len; | - |
661 | olen -= mac_len; | - |
662 | | - |
663 | if (!EVP_DigestSignFinal(ctx_tmp, A1, &A1_len)TRUE | never evaluated | FALSE | evaluated 19903 times by 1 test |
) | 0-19903 |
664 | goto never executed: goto err; err;never executed: goto err; | 0 |
665 | }executed 19903 times by 1 test: end of block else { | 19903 |
666 | | - |
667 | if (!EVP_DigestSignFinal(ctx, A1, &A1_len)TRUE | never evaluated | FALSE | evaluated 13505 times by 1 test |
) | 0-13505 |
668 | goto never executed: goto err; err;never executed: goto err; | 0 |
669 | memcpy(out, A1, olen); | - |
670 | break;executed 13505 times by 1 test: break; | 13505 |
671 | } | - |
672 | } | - |
673 | ret = 1; | - |
674 | err:code before this statement executed 13505 times by 1 test: err: | 13505 |
675 | EVP_PKEY_free(mac_key); | - |
676 | EVP_MD_CTX_free(ctx); | - |
677 | EVP_MD_CTX_free(ctx_tmp); | - |
678 | EVP_MD_CTX_free(ctx_init); | - |
679 | OPENSSL_cleanse(A1, sizeof(A1)); | - |
680 | returnexecuted 13505 times by 1 test: return ret; ret;executed 13505 times by 1 test: return ret; | 13505 |
681 | } | - |
682 | | - |
683 | static int tls1_prf_alg(const EVP_MD *md, | - |
684 | const unsigned char *sec, size_t slen, | - |
685 | const unsigned char *seed, size_t seed_len, | - |
686 | unsigned char *out, size_t olen) | - |
687 | { | - |
688 | | - |
689 | if (EVP_MD_type(md) == 114TRUE | evaluated 3594 times by 1 test | FALSE | evaluated 6317 times by 1 test |
) { | 3594-6317 |
690 | size_t i; | - |
691 | unsigned char *tmp; | - |
692 | if (!tls1_prf_P_hash(EVP_md5(), sec, slen/2 + (slen & 1),TRUE | never evaluated | FALSE | evaluated 3594 times by 1 test |
| 0-3594 |
693 | seed, seed_len, out, olen)TRUE | never evaluated | FALSE | evaluated 3594 times by 1 test |
) | 0-3594 |
694 | return never executed: return 0; 0;never executed: return 0; | 0 |
695 | | - |
696 | if ((TRUE | never evaluated | FALSE | evaluated 3594 times by 1 test |
tmp = CRYPTO_malloc(olen, __FILE__, 260)) == TRUE | never evaluated | FALSE | evaluated 3594 times by 1 test |
| 0-3594 |
697 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 3594 times by 1 test |
| 0-3594 |
698 | ) { | - |
699 | ERR_put_error(52,(111),((1|64)),__FILE__,261); | - |
700 | return never executed: return 0; 0;never executed: return 0; | 0 |
701 | } | - |
702 | if (!tls1_prf_P_hash(EVP_sha1(), sec + slen/2, slen/2 + (slen & 1),TRUE | never evaluated | FALSE | evaluated 3594 times by 1 test |
| 0-3594 |
703 | seed, seed_len, tmp, olen)TRUE | never evaluated | FALSE | evaluated 3594 times by 1 test |
) { | 0-3594 |
704 | CRYPTO_clear_free(tmp, olen, __FILE__, 266); | - |
705 | return never executed: return 0; 0;never executed: return 0; | 0 |
706 | } | - |
707 | for (i = 0; i < olenTRUE | evaluated 186972 times by 1 test | FALSE | evaluated 3594 times by 1 test |
; i++) | 3594-186972 |
708 | out[i] ^= tmp[i];executed 186972 times by 1 test: out[i] ^= tmp[i]; | 186972 |
709 | CRYPTO_clear_free(tmp, olen, __FILE__, 271); | - |
710 | returnexecuted 3594 times by 1 test: return 1; 1;executed 3594 times by 1 test: return 1; | 3594 |
711 | } | - |
712 | if (!tls1_prf_P_hash(md, sec, slen, seed, seed_len, out, olen)TRUE | never evaluated | FALSE | evaluated 6317 times by 1 test |
) | 0-6317 |
713 | return never executed: return 0; 0;never executed: return 0; | 0 |
714 | | - |
715 | returnexecuted 6317 times by 1 test: return 1; 1;executed 6317 times by 1 test: return 1; | 6317 |
716 | } | - |
| | |