OpenCoverage

ec_mult.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/ec/ec_mult.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2struct ec_pre_comp_st {-
3 const EC_GROUP *group;-
4 size_t blocksize;-
5 size_t numblocks;-
6-
7 size_t w;-
8 EC_POINT **points;-
9-
10-
11 size_t num;-
12 CRYPTO_REF_COUNT references;-
13 CRYPTO_RWLOCK *lock;-
14};-
15-
16static EC_PRE_COMP *ec_pre_comp_new(const EC_GROUP *group)-
17{-
18 EC_PRE_COMP *ret = -
19 ((void *)0)-
20 ;-
21-
22 if (!group
!groupDescription
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-45
23 return
never executed: return ((void *)0) ;
never executed: return ((void *)0) ;
0
24 ((void *)0)
never executed: return ((void *)0) ;
0
25 ;
never executed: return ((void *)0) ;
0
26-
27 ret = CRYPTO_zalloc(sizeof(*ret), __FILE__, 52);-
28 if (ret ==
ret == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
29 ((void *)0)
ret == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
30 ) {-
31 ERR_put_error(16,(196),((1|64)),__FILE__,54);-
32 return
never executed: return ret;
ret;
never executed: return ret;
0
33 }-
34-
35 ret->group = group;-
36 ret->blocksize = 8;-
37 ret->w = 4;-
38 ret->references = 1;-
39-
40 ret->lock = CRYPTO_THREAD_lock_new();-
41 if (ret->lock ==
ret->lock == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
42 ((void *)0)
ret->lock == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
43 ) {-
44 ERR_put_error(16,(196),((1|64)),__FILE__,65);-
45 CRYPTO_free(ret, __FILE__, 66);-
46 return
never executed: return ((void *)0) ;
never executed: return ((void *)0) ;
0
47 ((void *)0)
never executed: return ((void *)0) ;
0
48 ;
never executed: return ((void *)0) ;
0
49 }-
50 return
executed 45 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
ret;
executed 45 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
45
51}-
52-
53EC_PRE_COMP *EC_ec_pre_comp_dup(EC_PRE_COMP *pre)-
54{-
55 int i;-
56 if (pre !=
pre != ((void *)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-6
57 ((void *)0)
pre != ((void *)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-6
58 )-
59 CRYPTO_UP_REF(&pre->references, &i, pre->lock);
executed 6 times by 1 test: CRYPTO_UP_REF(&pre->references, &i, pre->lock);
Executed by:
  • libcrypto.so.1.1
6
60 return
executed 6 times by 1 test: return pre;
Executed by:
  • libcrypto.so.1.1
pre;
executed 6 times by 1 test: return pre;
Executed by:
  • libcrypto.so.1.1
6
61}-
62-
63void EC_ec_pre_comp_free(EC_PRE_COMP *pre)-
64{-
65 int i;-
66-
67 if (pre ==
pre == ((void *)0)Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 51 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
45-51
68 ((void *)0)
pre == ((void *)0)Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 51 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
45-51
69 )-
70 return;
executed 45 times by 1 test: return;
Executed by:
  • libcrypto.so.1.1
45
71-
72 CRYPTO_DOWN_REF(&pre->references, &i, pre->lock);-
73 ;-
74 if (i > 0
i > 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
6-45
75 return;
executed 6 times by 1 test: return;
Executed by:
  • libcrypto.so.1.1
6
76 ;-
77-
78 if (pre->points !=
pre->points != ((void *)0)Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-45
79 ((void *)0)
pre->points != ((void *)0)Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-45
80 ) {-
81 EC_POINT **pts;-
82-
83 for (pts = pre->points; *
*pts != ((void *)0)Description
TRUEevaluated 10992 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
pts !=
*pts != ((void *)0)Description
TRUEevaluated 10992 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
45-10992
84 ((void *)0)
*pts != ((void *)0)Description
TRUEevaluated 10992 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
45-10992
85 ; pts++)-
86 EC_POINT_free(*pts);
executed 10992 times by 1 test: EC_POINT_free(*pts);
Executed by:
  • libcrypto.so.1.1
10992
87 CRYPTO_free(pre->points, __FILE__, 98);-
88 }
executed 45 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
45
89 CRYPTO_THREAD_lock_free(pre->lock);-
90 CRYPTO_free(pre, __FILE__, 101);-
91}
executed 45 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
45
92int ec_scalar_mul_ladder(const EC_GROUP *group, EC_POINT *r,-
93 const BIGNUM *scalar, const EC_POINT *point,-
94 BN_CTX *ctx)-
95{-
96 int i, cardinality_bits, group_top, kbit, pbit, Z_is_one;-
97 EC_POINT *p = -
98 ((void *)0)-
99 ;-
100 EC_POINT *s = -
101 ((void *)0)-
102 ;-
103 BIGNUM *k = -
104 ((void *)0)-
105 ;-
106 BIGNUM *lambda = -
107 ((void *)0)-
108 ;-
109 BIGNUM *cardinality = -
110 ((void *)0)-
111 ;-
112 int ret = 0;-
113-
114-
115 if (point !=
point != ((void *)0)Description
TRUEevaluated 2075 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 2062 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
2062-2075
116 ((void *)0)
point != ((void *)0)Description
TRUEevaluated 2075 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 2062 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
2062-2075
117 && EC_POINT_is_at_infinity(group, point)
EC_POINT_is_at...(group, point)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 2068 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
)
7-2068
118 return
executed 7 times by 1 test: return EC_POINT_set_to_infinity(group, r);
Executed by:
  • libcrypto.so.1.1
EC_POINT_set_to_infinity(group, r);
executed 7 times by 1 test: return EC_POINT_set_to_infinity(group, r);
Executed by:
  • libcrypto.so.1.1
7
119-
120 if (BN_is_zero(group->order)
BN_is_zero(group->order)Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-4130
121 ERR_put_error(16,(284),(114),__FILE__,156);-
122 return
never executed: return 0;
0;
never executed: return 0;
0
123 }-
124 if (BN_is_zero(group->cofactor)
BN_is_zero(group->cofactor)Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-4130
125 ERR_put_error(16,(284),(164),__FILE__,160);-
126 return
never executed: return 0;
0;
never executed: return 0;
0
127 }-
128-
129 BN_CTX_start(ctx);-
130-
131 if (((
((p = EC_POINT... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
p = EC_POINT_new(group)) ==
((p = EC_POINT... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
132 ((void *)0)
((p = EC_POINT... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
133 )
((p = EC_POINT... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
134 || ((
((s = EC_POINT... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
s = EC_POINT_new(group)) ==
((s = EC_POINT... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
135 ((void *)0)
((s = EC_POINT... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
136 )
((s = EC_POINT... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-4130
137 ERR_put_error(16,(284),((1|64)),__FILE__,168);-
138 goto
never executed: goto err;
err;
never executed: goto err;
0
139 }-
140-
141 if (point ==
point == ((void *)0)Description
TRUEevaluated 2062 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 2068 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
2062-2068
142 ((void *)0)
point == ((void *)0)Description
TRUEevaluated 2062 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 2068 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
2062-2068
143 ) {-
144 if (!EC_POINT_copy(p, group->generator)
!EC_POINT_copy...up->generator)Description
TRUEnever evaluated
FALSEevaluated 2062 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-2062
145 ERR_put_error(16,(284),(16),__FILE__,174);-
146 goto
never executed: goto err;
err;
never executed: goto err;
0
147 }-
148 }
executed 2062 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
else {
2062
149 if (!EC_POINT_copy(p, point)
!EC_POINT_copy(p, point)Description
TRUEnever evaluated
FALSEevaluated 2068 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-2068
150 ERR_put_error(16,(284),(16),__FILE__,179);-
151 goto
never executed: goto err;
err;
never executed: goto err;
0
152 }-
153 }
executed 2068 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
2068
154-
155 do { BN_set_flags((p)->X, (0x04)); BN_set_flags((p)->Y, (0x04)); BN_set_flags((p)->Z, (0x04)); } while(0);-
156 do { BN_set_flags((r)->X, (0x04)); BN_set_flags((r)->Y, (0x04)); BN_set_flags((r)->Z, (0x04)); } while(0);-
157 do { BN_set_flags((s)->X, (0x04)); BN_set_flags((s)->Y, (0x04)); BN_set_flags((s)->Z, (0x04)); } while(0);-
158-
159 cardinality = BN_CTX_get(ctx);-
160 lambda = BN_CTX_get(ctx);-
161 k = BN_CTX_get(ctx);-
162 if (k ==
k == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
163 ((void *)0)
k == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
164 ) {-
165 ERR_put_error(16,(284),((1|64)),__FILE__,192);-
166 goto
never executed: goto err;
err;
never executed: goto err;
0
167 }-
168-
169 if (!BN_mul(cardinality, group->order, group->cofactor, ctx)
!BN_mul(cardin...cofactor, ctx)Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-4130
170 ERR_put_error(16,(284),(3),__FILE__,197);-
171 goto
never executed: goto err;
err;
never executed: goto err;
0
172 }-
173-
174-
175-
176-
177-
178-
179-
180 cardinality_bits = BN_num_bits(cardinality);-
181 group_top = bn_get_top(cardinality);-
182 if ((
(bn_wexpand(k,... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
bn_wexpand(k, group_top + 1) ==
(bn_wexpand(k,... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
183 ((void *)0)
(bn_wexpand(k,... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
184 )
(bn_wexpand(k,... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
185 || (
(bn_wexpand(la... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
bn_wexpand(lambda, group_top + 1) ==
(bn_wexpand(la... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
186 ((void *)0)
(bn_wexpand(la... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
187 )
(bn_wexpand(la... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-4130
188 ERR_put_error(16,(284),(3),__FILE__,211);-
189 goto
never executed: goto err;
err;
never executed: goto err;
0
190 }-
191-
192 if (!BN_copy(k, scalar)
!BN_copy(k, scalar)Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-4130
193 ERR_put_error(16,(284),(3),__FILE__,216);-
194 goto
never executed: goto err;
err;
never executed: goto err;
0
195 }-
196-
197 BN_set_flags(k, 0x04);-
198-
199 if ((
(BN_num_bits(k...dinality_bits)Description
TRUEevaluated 415 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3715 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
BN_num_bits(k) > cardinality_bits)
(BN_num_bits(k...dinality_bits)Description
TRUEevaluated 415 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3715 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
|| (
(BN_is_negative(k))Description
TRUEevaluated 194 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3521 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
BN_is_negative(k))
(BN_is_negative(k))Description
TRUEevaluated 194 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3521 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
194-3715
200-
201-
202-
203-
204 if (!BN_nnmod(k, k, cardinality, ctx)
!BN_nnmod(k, k...dinality, ctx)Description
TRUEnever evaluated
FALSEevaluated 609 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-609
205 ERR_put_error(16,(284),(3),__FILE__,228);-
206 goto
never executed: goto err;
err;
never executed: goto err;
0
207 }-
208 }
executed 609 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
609
209-
210 if (!BN_add(lambda, k, cardinality)
!BN_add(lambda..., cardinality)Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-4130
211 ERR_put_error(16,(284),(3),__FILE__,234);-
212 goto
never executed: goto err;
err;
never executed: goto err;
0
213 }-
214 BN_set_flags(lambda, 0x04);-
215 if (!BN_add(k, lambda, cardinality)
!BN_add(k, lam..., cardinality)Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-4130
216 ERR_put_error(16,(284),(3),__FILE__,239);-
217 goto
never executed: goto err;
err;
never executed: goto err;
0
218 }-
219-
220-
221-
222-
223 kbit = BN_is_bit_set(lambda, cardinality_bits);-
224 BN_consttime_swap(kbit, k, lambda, group_top + 1);-
225-
226 group_top = bn_get_top(group->field);-
227 if ((
(bn_wexpand(s-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
bn_wexpand(s->X, group_top) ==
(bn_wexpand(s-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
228 ((void *)0)
(bn_wexpand(s-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
229 )
(bn_wexpand(s-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
230 || (
(bn_wexpand(s-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
bn_wexpand(s->Y, group_top) ==
(bn_wexpand(s-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
231 ((void *)0)
(bn_wexpand(s-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
232 )
(bn_wexpand(s-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
233 || (
(bn_wexpand(s-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
bn_wexpand(s->Z, group_top) ==
(bn_wexpand(s-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
234 ((void *)0)
(bn_wexpand(s-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
235 )
(bn_wexpand(s-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
236 || (
(bn_wexpand(r-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
bn_wexpand(r->X, group_top) ==
(bn_wexpand(r-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
237 ((void *)0)
(bn_wexpand(r-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
238 )
(bn_wexpand(r-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
239 || (
(bn_wexpand(r-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
bn_wexpand(r->Y, group_top) ==
(bn_wexpand(r-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
240 ((void *)0)
(bn_wexpand(r-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
241 )
(bn_wexpand(r-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
242 || (
(bn_wexpand(r-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
bn_wexpand(r->Z, group_top) ==
(bn_wexpand(r-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
243 ((void *)0)
(bn_wexpand(r-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
244 )
(bn_wexpand(r-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
245 || (
(bn_wexpand(p-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
bn_wexpand(p->X, group_top) ==
(bn_wexpand(p-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
246 ((void *)0)
(bn_wexpand(p-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
247 )
(bn_wexpand(p-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
248 || (
(bn_wexpand(p-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
bn_wexpand(p->Y, group_top) ==
(bn_wexpand(p-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
249 ((void *)0)
(bn_wexpand(p-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
250 )
(bn_wexpand(p-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
251 || (
(bn_wexpand(p-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
bn_wexpand(p->Z, group_top) ==
(bn_wexpand(p-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
252 ((void *)0)
(bn_wexpand(p-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-4130
253 )
(bn_wexpand(p-... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-4130
254 ERR_put_error(16,(284),(3),__FILE__,259);-
255 goto
never executed: goto err;
err;
never executed: goto err;
0
256 }-
257 if (!ec_point_blind_coordinates(group, p, ctx)
!ec_point_blin...group, p, ctx)Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-4130
258 ERR_put_error(16,(284),(163),__FILE__,272);-
259 goto
never executed: goto err;
err;
never executed: goto err;
0
260 }-
261-
262-
263 if (!ec_point_ladder_pre(group, r, s, p, ctx)
!ec_point_ladd... r, s, p, ctx)Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-4130
264 ERR_put_error(16,(284),(153),__FILE__,278);-
265 goto
never executed: goto err;
err;
never executed: goto err;
0
266 }-
267-
268-
269 pbit = 1;-
270 for (i = cardinality_bits - 1; i >= 0
i >= 0Description
TRUEevaluated 1193659 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
; i--) {
4130-1193659
271 kbit = BN_is_bit_set(k, i) ^ pbit;-
272 do { BN_consttime_swap(kbit, (r)->X, (s)->X, group_top); BN_consttime_swap(kbit, (r)->Y, (s)->Y, group_top); BN_consttime_swap(kbit, (r)->Z, (s)->Z, group_top); Z_is_one = ((r)->Z_is_one ^ (s)->Z_is_one) & (kbit); (r)->Z_is_one ^= (Z_is_one); (s)->Z_is_one ^= (Z_is_one); } while(0);-
273-
274-
275 if (!ec_point_ladder_step(group, r, s, p, ctx)
!ec_point_ladd... r, s, p, ctx)Description
TRUEnever evaluated
FALSEevaluated 1193659 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-1193659
276 ERR_put_error(16,(284),(162),__FILE__,358);-
277 goto
never executed: goto err;
err;
never executed: goto err;
0
278 }-
279-
280-
281-
282-
283 pbit ^= kbit;-
284 }
executed 1193659 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
1193659
285-
286 do { BN_consttime_swap(pbit, (r)->X, (s)->X, group_top); BN_consttime_swap(pbit, (r)->Y, (s)->Y, group_top); BN_consttime_swap(pbit, (r)->Z, (s)->Z, group_top); Z_is_one = ((r)->Z_is_one ^ (s)->Z_is_one) & (pbit); (r)->Z_is_one ^= (Z_is_one); (s)->Z_is_one ^= (Z_is_one); } while(0);-
287-
288-
289-
290 if (!ec_point_ladder_post(group, r, s, p, ctx)
!ec_point_ladd... r, s, p, ctx)Description
TRUEnever evaluated
FALSEevaluated 4130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-4130
291 ERR_put_error(16,(284),(136),__FILE__,373);-
292 goto
never executed: goto err;
err;
never executed: goto err;
0
293 }-
294-
295 ret = 1;-
296-
297 err:
code before this statement executed 4130 times by 2 tests: err:
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
4130
298 EC_POINT_free(p);-
299 EC_POINT_free(s);-
300 BN_CTX_end(ctx);-
301-
302 return
executed 4130 times by 2 tests: return ret;
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
ret;
executed 4130 times by 2 tests: return ret;
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
4130
303}-
304int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,-
305 size_t num, const EC_POINT *points[], const BIGNUM *scalars[],-
306 BN_CTX *ctx)-
307{-
308 const EC_POINT *generator = -
309 ((void *)0)-
310 ;-
311 EC_POINT *tmp = -
312 ((void *)0)-
313 ;-
314 size_t totalnum;-
315 size_t blocksize = 0, numblocks = 0;-
316 size_t pre_points_per_block = 0;-
317 size_t i, j;-
318 int k;-
319 int r_is_inverted = 0;-
320 int r_is_at_infinity = 1;-
321 size_t *wsize = -
322 ((void *)0)-
323 ;-
324 signed char **wNAF = -
325 ((void *)0)-
326 ;-
327 size_t *wNAF_len = -
328 ((void *)0)-
329 ;-
330 size_t max_len = 0;-
331 size_t num_val;-
332 EC_POINT **val = -
333 ((void *)0)-
334 ;-
335 EC_POINT **v;-
336 EC_POINT ***val_sub = -
337 ((void *)0)-
338 ;-
339-
340 const EC_PRE_COMP *pre_comp = -
341 ((void *)0)-
342 ;-
343 int num_scalar = 0;-
344-
345-
346 int ret = 0;-
347-
348 if (!BN_is_zero(group->order)
!BN_is_zero(group->order)Description
TRUEevaluated 2741 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEnever evaluated
&& !BN_is_zero(group->cofactor)
!BN_is_zero(group->cofactor)Description
TRUEevaluated 2709 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 32 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-2741
349-
350-
351-
352-
353-
354 if ((
(scalar != ((void *)0) )Description
TRUEevaluated 1461 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 1248 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
scalar !=
(scalar != ((void *)0) )Description
TRUEevaluated 1461 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 1248 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
1248-1461
355 ((void *)0)
(scalar != ((void *)0) )Description
TRUEevaluated 1461 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 1248 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
1248-1461
356 )
(scalar != ((void *)0) )Description
TRUEevaluated 1461 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 1248 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
&& (
(num == 0)Description
TRUEevaluated 1157 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 304 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
num == 0)
(num == 0)Description
TRUEevaluated 1157 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 304 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
304-1461
357 return
executed 1157 times by 2 tests: return ec_scalar_mul_ladder(group, r, scalar, ((void *)0) , ctx);
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
ec_scalar_mul_ladder(group, r, scalar,
executed 1157 times by 2 tests: return ec_scalar_mul_ladder(group, r, scalar, ((void *)0) , ctx);
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
1157
358 ((void *)0)
executed 1157 times by 2 tests: return ec_scalar_mul_ladder(group, r, scalar, ((void *)0) , ctx);
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
1157
359 , ctx);
executed 1157 times by 2 tests: return ec_scalar_mul_ladder(group, r, scalar, ((void *)0) , ctx);
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
1157
360 }-
361 if ((
(scalar == ((void *)0) )Description
TRUEevaluated 1248 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 304 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
scalar ==
(scalar == ((void *)0) )Description
TRUEevaluated 1248 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 304 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
304-1248
362 ((void *)0)
(scalar == ((void *)0) )Description
TRUEevaluated 1248 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 304 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
304-1248
363 )
(scalar == ((void *)0) )Description
TRUEevaluated 1248 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 304 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
&& (
(num == 1)Description
TRUEevaluated 854 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 394 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
num == 1)
(num == 1)Description
TRUEevaluated 854 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 394 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
304-1248
364-
365-
366-
367-
368-
369-
370-
371 return
executed 854 times by 2 tests: return ec_scalar_mul_ladder(group, r, scalars[0], points[0], ctx);
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
ec_scalar_mul_ladder(group, r, scalars[0], points[0], ctx);
executed 854 times by 2 tests: return ec_scalar_mul_ladder(group, r, scalars[0], points[0], ctx);
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
854
372 }-
373 }
executed 698 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
698
374-
375 if (scalar !=
scalar != ((void *)0)Description
TRUEevaluated 336 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 394 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
336-394
376 ((void *)0)
scalar != ((void *)0)Description
TRUEevaluated 336 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 394 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
336-394
377 ) {-
378 generator = EC_GROUP_get0_generator(group);-
379 if (generator ==
generator == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 336 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-336
380 ((void *)0)
generator == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 336 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-336
381 ) {-
382 ERR_put_error(16,(187),(113),__FILE__,470);-
383 goto
never executed: goto err;
err;
never executed: goto err;
0
384 }-
385-
386-
387-
388 pre_comp = group->pre_comp.ec;-
389 if (pre_comp
pre_compDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 335 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
&& pre_comp->numblocks
pre_comp->numblocksDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-335
390 && (
(EC_POINT_cmp(...0], ctx) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
EC_POINT_cmp(group, generator, pre_comp->points[0], ctx) ==
(EC_POINT_cmp(...0], ctx) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-1
391 0)
(EC_POINT_cmp(...0], ctx) == 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
) {
0-1
392 blocksize = pre_comp->blocksize;-
393-
394-
395-
396-
397-
398 numblocks = (BN_num_bits(scalar) / blocksize) + 1;-
399-
400-
401-
402-
403 if (numblocks > pre_comp->numblocks
numblocks > pr...omp->numblocksDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-1
404 numblocks = pre_comp->numblocks;
never executed: numblocks = pre_comp->numblocks;
0
405-
406 pre_points_per_block = (size_t)1 << (pre_comp->w - 1);-
407-
408-
409 if (pre_comp->num != (pre_comp->numblocks * pre_points_per_block)
pre_comp->num ...nts_per_block)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-1
410 ERR_put_error(16,(187),((4|64)),__FILE__,498);-
411 goto
never executed: goto err;
err;
never executed: goto err;
0
412 }-
413 }
executed 1 time by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
else {
1
414-
415 pre_comp = -
416 ((void *)0)-
417 ;-
418 numblocks = 1;-
419 num_scalar = 1;-
420-
421 }
executed 335 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
335
422 }-
423-
424 totalnum = num + numblocks;-
425-
426 wsize = CRYPTO_malloc(totalnum * sizeof(wsize[0]), __FILE__, 512);-
427 wNAF_len = CRYPTO_malloc(totalnum * sizeof(wNAF_len[0]), __FILE__, 513);-
428-
429 wNAF = CRYPTO_malloc((totalnum + 1) * sizeof(wNAF[0]), __FILE__, 515);-
430 val_sub = CRYPTO_malloc(totalnum * sizeof(val_sub[0]), __FILE__, 516);-
431-
432-
433 if (wNAF !=
wNAF != ((void *)0)Description
TRUEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEnever evaluated
0-730
434 ((void *)0)
wNAF != ((void *)0)Description
TRUEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEnever evaluated
0-730
435 )-
436 wNAF[0] =
executed 730 times by 2 tests: wNAF[0] = ((void *)0) ;
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
730
437 ((void *)0)
executed 730 times by 2 tests: wNAF[0] = ((void *)0) ;
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
730
438 ;
executed 730 times by 2 tests: wNAF[0] = ((void *)0) ;
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
730
439-
440 if (wsize ==
wsize == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-730
441 ((void *)0)
wsize == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-730
442 || wNAF_len ==
wNAF_len == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-730
443 ((void *)0)
wNAF_len == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-730
444 || wNAF ==
wNAF == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-730
445 ((void *)0)
wNAF == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-730
446 || val_sub ==
val_sub == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-730
447 ((void *)0)
val_sub == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-730
448 ) {-
449 ERR_put_error(16,(187),((1|64)),__FILE__,523);-
450 goto
never executed: goto err;
err;
never executed: goto err;
0
451 }-
452-
453-
454-
455-
456 num_val = 0;-
457-
458 for (i = 0; i < num + num_scalar
i < num + num_scalarDescription
TRUEevaluated 2208 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
; i++) {
730-2208
459 size_t bits;-
460-
461 bits = i < num
i < numDescription
TRUEevaluated 1873 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 335 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
? BN_num_bits(scalars[i]) : BN_num_bits(scalar);
335-1873
462 wsize[i] = ((size_t) ((
(bits) >= 2000Description
TRUEnever evaluated
FALSEevaluated 2208 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
bits) >= 2000
(bits) >= 2000Description
TRUEnever evaluated
FALSEevaluated 2208 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
? 6 : (
(bits) >= 800Description
TRUEevaluated 78 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 2130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
bits) >= 800
(bits) >= 800Description
TRUEevaluated 78 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 2130 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
? 5 : (
(bits) >= 300Description
TRUEevaluated 825 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1305 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
bits) >= 300
(bits) >= 300Description
TRUEevaluated 825 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1305 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
? 4 : (
(bits) >= 70Description
TRUEevaluated 848 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 457 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
bits) >= 70
(bits) >= 70Description
TRUEevaluated 848 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 457 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
? 3 : (
(bits) >= 20Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 454 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
bits) >= 20
(bits) >= 20Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 454 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
? 2 : 1));
0-2208
463 num_val += (size_t)1 << (wsize[i] - 1);-
464 wNAF[i + 1] = -
465 ((void *)0)-
466 ;-
467 wNAF[i] =-
468 bn_compute_wNAF((i < num ? scalars[i] : scalar), wsize[i],-
469 &wNAF_len[i]);-
470 if (wNAF[i] ==
wNAF[i] == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 2208 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-2208
471 ((void *)0)
wNAF[i] == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 2208 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-2208
472 )-
473 goto
never executed: goto err;
err;
never executed: goto err;
0
474 if (wNAF_len[i] > max_len
wNAF_len[i] > max_lenDescription
TRUEevaluated 1096 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 1112 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
1096-1112
475 max_len = wNAF_len[i];
executed 1096 times by 2 tests: max_len = wNAF_len[i];
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
1096
476 }
executed 2208 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
2208
477-
478 if (numblocks
numblocksDescription
TRUEevaluated 336 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 394 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
336-394
479-
480-
481 if (pre_comp ==
pre_comp == ((void *)0)Description
TRUEevaluated 335 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
1-335
482 ((void *)0)
pre_comp == ((void *)0)Description
TRUEevaluated 335 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
1-335
483 ) {-
484 if (num_scalar != 1
num_scalar != 1Description
TRUEnever evaluated
FALSEevaluated 335 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-335
485 ERR_put_error(16,(187),((4|64)),__FILE__,553);-
486 goto
never executed: goto err;
err;
never executed: goto err;
0
487 }-
488-
489 }
executed 335 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
else {
335
490 signed char *tmp_wNAF = -
491 ((void *)0)-
492 ;-
493 size_t tmp_len = 0;-
494-
495 if (num_scalar != 0
num_scalar != 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-1
496 ERR_put_error(16,(187),((4|64)),__FILE__,562);-
497 goto
never executed: goto err;
err;
never executed: goto err;
0
498 }-
499-
500-
501-
502-
503 wsize[num] = pre_comp->w;-
504 tmp_wNAF = bn_compute_wNAF(scalar, wsize[num], &tmp_len);-
505 if (!tmp_wNAF
!tmp_wNAFDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-1
506 goto
never executed: goto err;
err;
never executed: goto err;
0
507-
508 if (tmp_len <= max_len
tmp_len <= max_lenDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-1
509-
510-
511-
512-
513-
514-
515 numblocks = 1;-
516 totalnum = num + 1;-
517 wNAF[num] = tmp_wNAF;-
518 wNAF[num + 1] = -
519 ((void *)0)-
520 ;-
521 wNAF_len[num] = tmp_len;-
522-
523-
524-
525 val_sub[num] = pre_comp->points;-
526 }
never executed: end of block
else {
0
527-
528-
529-
530-
531-
532 signed char *pp;-
533 EC_POINT **tmp_points;-
534-
535 if (tmp_len < numblocks * blocksize
tmp_len < numb...ks * blocksizeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
) {
0-1
536-
537-
538-
539 numblocks = (tmp_len + blocksize - 1) / blocksize;-
540 if (numblocks > pre_comp->numblocks
numblocks > pr...omp->numblocksDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-1
541 ERR_put_error(16,(187),((4|64)),__FILE__,605);-
542 CRYPTO_free(tmp_wNAF, __FILE__, 606);-
543 goto
never executed: goto err;
err;
never executed: goto err;
0
544 }-
545 totalnum = num + numblocks;-
546 }
executed 1 time by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
1
547-
548-
549 pp = tmp_wNAF;-
550 tmp_points = pre_comp->points;-
551-
552 for (i = num; i < totalnum
i < totalnumDescription
TRUEevaluated 66 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
; i++) {
1-66
553 if (i < totalnum - 1
i < totalnum - 1Description
TRUEevaluated 65 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1 time by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
1-65
554 wNAF_len[i] = blocksize;-
555 if (tmp_len < blocksize
tmp_len < blocksizeDescription
TRUEnever evaluated
FALSEevaluated 65 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-65
556 ERR_put_error(16,(187),((4|64)),__FILE__,620);-
557 CRYPTO_free(tmp_wNAF, __FILE__, 621);-
558 goto
never executed: goto err;
err;
never executed: goto err;
0
559 }-
560 tmp_len -= blocksize;-
561 }
executed 65 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
else
65
562-
563-
564-
565-
566 wNAF_len[i] = tmp_len;
executed 1 time by 1 test: wNAF_len[i] = tmp_len;
Executed by:
  • libcrypto.so.1.1
1
567-
568 wNAF[i + 1] = -
569 ((void *)0)-
570 ;-
571 wNAF[i] = CRYPTO_malloc(wNAF_len[i], __FILE__, 633);-
572 if (wNAF[i] ==
wNAF[i] == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 66 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-66
573 ((void *)0)
wNAF[i] == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 66 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-66
574 ) {-
575 ERR_put_error(16,(187),((1|64)),__FILE__,635);-
576 CRYPTO_free(tmp_wNAF, __FILE__, 636);-
577 goto
never executed: goto err;
err;
never executed: goto err;
0
578 }-
579 memcpy(wNAF[i], pp, wNAF_len[i]);-
580 if (wNAF_len[i] > max_len
wNAF_len[i] > max_lenDescription
TRUEnever evaluated
FALSEevaluated 66 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-66
581 max_len = wNAF_len[i];
never executed: max_len = wNAF_len[i];
0
582-
583 if (*
*tmp_points == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 66 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
tmp_points ==
*tmp_points == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 66 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-66
584 ((void *)0)
*tmp_points == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 66 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-66
585 ) {-
586 ERR_put_error(16,(187),((4|64)),__FILE__,644);-
587 CRYPTO_free(tmp_wNAF, __FILE__, 645);-
588 goto
never executed: goto err;
err;
never executed: goto err;
0
589 }-
590 val_sub[i] = tmp_points;-
591 tmp_points += pre_points_per_block;-
592 pp += blocksize;-
593 }
executed 66 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
66
594 CRYPTO_free(tmp_wNAF, __FILE__, 652);-
595 }
executed 1 time by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
1
596 }-
597 }-
598-
599-
600-
601-
602-
603-
604 val = CRYPTO_malloc((num_val + 1) * sizeof(val[0]), __FILE__, 662);-
605 if (val ==
val == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-730
606 ((void *)0)
val == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-730
607 ) {-
608 ERR_put_error(16,(187),((1|64)),__FILE__,664);-
609 goto
never executed: goto err;
err;
never executed: goto err;
0
610 }-
611 val[num_val] = -
612 ((void *)0)-
613 ;-
614-
615-
616 v = val;-
617 for (i = 0; i < num + num_scalar
i < num + num_scalarDescription
TRUEevaluated 2208 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
; i++) {
730-2208
618 val_sub[i] = v;-
619 for (j = 0; j < ((size_t)1 << (wsize[i] - 1))
j < ((size_t)1...wsize[i] - 1))Description
TRUEevaluated 11700 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 2208 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
; j++) {
2208-11700
620 *v = EC_POINT_new(group);-
621 if (*
*v == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 11700 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
v ==
*v == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 11700 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-11700
622 ((void *)0)
*v == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 11700 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-11700
623 )-
624 goto
never executed: goto err;
err;
never executed: goto err;
0
625 v++;-
626 }
executed 11700 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
11700
627 }
executed 2208 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
2208
628 if (!(v == val + num_val)
!(v == val + num_val)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
0-730
629 ERR_put_error(16,(187),((4|64)),__FILE__,681);-
630 goto
never executed: goto err;
err;
never executed: goto err;
0
631 }-
632-
633 if ((
(tmp = EC_POIN...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
tmp = EC_POINT_new(group)) ==
(tmp = EC_POIN...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-730
634 ((void *)0)
(tmp = EC_POIN...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-730
635 )-
636 goto
never executed: goto err;
err;
never executed: goto err;
0
637 for (i = 0; i < num + num_scalar
i < num + num_scalarDescription
TRUEevaluated 2208 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
; i++) {
730-2208
638 if (i < num
i < numDescription
TRUEevaluated 1873 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 335 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
335-1873
639 if (!EC_POINT_copy(val_sub[i][0], points[i])
!EC_POINT_copy...0], points[i])Description
TRUEnever evaluated
FALSEevaluated 1873 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
)
0-1873
640 goto
never executed: goto err;
err;
never executed: goto err;
0
641 }
executed 1873 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
else {
1873
642 if (!EC_POINT_copy(val_sub[i][0], generator)
!EC_POINT_copy...0], generator)Description
TRUEnever evaluated
FALSEevaluated 335 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
)
0-335
643 goto
never executed: goto err;
err;
never executed: goto err;
0
644 }
executed 335 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
335
645-
646 if (wsize[i] > 1
wsize[i] > 1Description
TRUEevaluated 1754 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 454 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
454-1754
647 if (!EC_POINT_dbl(group, tmp, val_sub[i][0], ctx)
!EC_POINT_dbl(...ub[i][0], ctx)Description
TRUEnever evaluated
FALSEevaluated 1754 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
)
0-1754
648 goto
never executed: goto err;
err;
never executed: goto err;
0
649 for (j = 1; j < ((size_t)1 << (wsize[i] - 1))
j < ((size_t)1...wsize[i] - 1))Description
TRUEevaluated 9492 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 1754 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
; j++) {
1754-9492
650 if (!EC_POINT_add
!EC_POINT_add ... 1], tmp, ctx)Description
TRUEnever evaluated
FALSEevaluated 9492 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-9492
651 (group, val_sub[i][j], val_sub[i][j - 1], tmp, ctx)
!EC_POINT_add ... 1], tmp, ctx)Description
TRUEnever evaluated
FALSEevaluated 9492 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
)
0-9492
652 goto
never executed: goto err;
err;
never executed: goto err;
0
653 }
executed 9492 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
9492
654 }
executed 1754 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
1754
655 }
executed 2208 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
2208
656-
657 if (!EC_POINTs_make_affine(group, num_val, val, ctx)
!EC_POINTs_mak...val, val, ctx)Description
TRUEnever evaluated
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
)
0-730
658 goto
never executed: goto err;
err;
never executed: goto err;
0
659-
660 r_is_at_infinity = 1;-
661-
662 for (k = max_len - 1; k >= 0
k >= 0Description
TRUEevaluated 190855 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
; k--) {
730-190855
663 if (!r_is_at_infinity
!r_is_at_infinityDescription
TRUEevaluated 190125 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
730-190125
664 if (!EC_POINT_dbl(group, r, r, ctx)
!EC_POINT_dbl(...up, r, r, ctx)Description
TRUEnever evaluated
FALSEevaluated 190125 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
)
0-190125
665 goto
never executed: goto err;
err;
never executed: goto err;
0
666 }
executed 190125 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
190125
667-
668 for (i = 0; i < totalnum
i < totalnumDescription
TRUEevaluated 799546 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 190855 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
; i++) {
190855-799546
669 if (wNAF_len[i] > (size_t)k
wNAF_len[i] > (size_t)kDescription
TRUEevaluated 610225 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 189321 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
189321-610225
670 int digit = wNAF[i][k];-
671 int is_neg;-
672-
673 if (digit
digitDescription
TRUEevaluated 89410 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 520815 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
89410-520815
674 is_neg = digit < 0;-
675-
676 if (is_neg
is_negDescription
TRUEevaluated 43884 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 45526 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
)
43884-45526
677 digit = -digit;
executed 43884 times by 2 tests: digit = -digit;
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
43884
678-
679 if (is_neg != r_is_inverted
is_neg != r_is_invertedDescription
TRUEevaluated 26339 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 63071 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
26339-63071
680 if (!r_is_at_infinity
!r_is_at_infinityDescription
TRUEevaluated 26337 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 2 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
2-26337
681 if (!EC_POINT_invert(group, r, ctx)
!EC_POINT_inve...group, r, ctx)Description
TRUEnever evaluated
FALSEevaluated 26337 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
)
0-26337
682 goto
never executed: goto err;
err;
never executed: goto err;
0
683 }
executed 26337 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
26337
684 r_is_inverted = !r_is_inverted;-
685 }
executed 26339 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
26339
686-
687-
688-
689 if (r_is_at_infinity
r_is_at_infinityDescription
TRUEevaluated 727 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 88683 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
727-88683
690 if (!EC_POINT_copy(r, val_sub[i][digit >> 1])
!EC_POINT_copy...][digit >> 1])Description
TRUEnever evaluated
FALSEevaluated 727 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
)
0-727
691 goto
never executed: goto err;
err;
never executed: goto err;
0
692 r_is_at_infinity = 0;-
693 }
executed 727 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
else {
727
694 if (!EC_POINT_add
!EC_POINT_add ...it >> 1], ctx)Description
TRUEnever evaluated
FALSEevaluated 88683 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
0-88683
695 (group, r, r, val_sub[i][digit >> 1], ctx)
!EC_POINT_add ...it >> 1], ctx)Description
TRUEnever evaluated
FALSEevaluated 88683 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
)
0-88683
696 goto
never executed: goto err;
err;
never executed: goto err;
0
697 }
executed 88683 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
88683
698 }-
699 }
executed 610225 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
610225
700 }
executed 799546 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
799546
701 }
executed 190855 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
190855
702-
703 if (r_is_at_infinity
r_is_at_infinityDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 727 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
) {
3-727
704 if (!EC_POINT_set_to_infinity(group, r)
!EC_POINT_set_...nity(group, r)Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-3
705 goto
never executed: goto err;
err;
never executed: goto err;
0
706 }
executed 3 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
else {
3
707 if (r_is_inverted
r_is_invertedDescription
TRUEevaluated 263 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 464 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
)
263-464
708 if (!EC_POINT_invert(group, r, ctx)
!EC_POINT_inve...group, r, ctx)Description
TRUEnever evaluated
FALSEevaluated 263 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-263
709 goto
never executed: goto err;
err;
never executed: goto err;
0
710 }
executed 727 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
727
711-
712 ret = 1;-
713-
714 err:
code before this statement executed 730 times by 2 tests: err:
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
730
715 EC_POINT_free(tmp);-
716 CRYPTO_free(wsize, __FILE__, 774);-
717 CRYPTO_free(wNAF_len, __FILE__, 775);-
718 if (wNAF !=
wNAF != ((void *)0)Description
TRUEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEnever evaluated
0-730
719 ((void *)0)
wNAF != ((void *)0)Description
TRUEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEnever evaluated
0-730
720 ) {-
721 signed char **w;-
722-
723 for (w = wNAF; *
*w != ((void *)0)Description
TRUEevaluated 2274 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
w !=
*w != ((void *)0)Description
TRUEevaluated 2274 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
730-2274
724 ((void *)0)
*w != ((void *)0)Description
TRUEevaluated 2274 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
730-2274
725 ; w++)-
726 CRYPTO_free(*w, __FILE__, 780);
executed 2274 times by 2 tests: CRYPTO_free(*w, __FILE__, 780);
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
2274
727-
728 CRYPTO_free(wNAF, __FILE__, 782);-
729 }
executed 730 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
730
730 if (val !=
val != ((void *)0)Description
TRUEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEnever evaluated
0-730
731 ((void *)0)
val != ((void *)0)Description
TRUEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEnever evaluated
0-730
732 ) {-
733 for (v = val; *
*v != ((void *)0)Description
TRUEevaluated 11700 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
v !=
*v != ((void *)0)Description
TRUEevaluated 11700 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
730-11700
734 ((void *)0)
*v != ((void *)0)Description
TRUEevaluated 11700 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
FALSEevaluated 730 times by 2 tests
Evaluated by:
  • libcrypto.so.1.1
  • sm2_internal_test
730-11700
735 ; v++)-
736 EC_POINT_clear_free(*v);
executed 11700 times by 2 tests: EC_POINT_clear_free(*v);
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
11700
737-
738 CRYPTO_free(val, __FILE__, 788);-
739 }
executed 730 times by 2 tests: end of block
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
730
740 CRYPTO_free(val_sub, __FILE__, 790);-
741 return
executed 730 times by 2 tests: return ret;
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
ret;
executed 730 times by 2 tests: return ret;
Executed by:
  • libcrypto.so.1.1
  • sm2_internal_test
730
742}-
743int ec_wNAF_precompute_mult(EC_GROUP *group, BN_CTX *ctx)-
744{-
745 const EC_POINT *generator;-
746 EC_POINT *tmp_point = -
747 ((void *)0)-
748 , *base = -
749 ((void *)0)-
750 , **var;-
751 BN_CTX *new_ctx = -
752 ((void *)0)-
753 ;-
754 const BIGNUM *order;-
755 size_t i, bits, w, pre_points_per_block, blocksize, numblocks, num;-
756 EC_POINT **points = -
757 ((void *)0)-
758 ;-
759 EC_PRE_COMP *pre_comp;-
760 int ret = 0;-
761-
762-
763 EC_pre_comp_free(group);-
764 if ((
(pre_comp = ec...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
pre_comp = ec_pre_comp_new(group)) ==
(pre_comp = ec...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
765 ((void *)0)
(pre_comp = ec...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
766 )-
767 return
never executed: return 0;
0;
never executed: return 0;
0
768-
769 generator = EC_GROUP_get0_generator(group);-
770 if (generator ==
generator == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
771 ((void *)0)
generator == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
772 ) {-
773 ERR_put_error(16,(188),(113),__FILE__,832);-
774 goto
never executed: goto err;
err;
never executed: goto err;
0
775 }-
776-
777 if (ctx ==
ctx == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
778 ((void *)0)
ctx == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
779 ) {-
780 ctx = new_ctx = BN_CTX_new();-
781 if (ctx ==
ctx == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
782 ((void *)0)
ctx == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
783 )-
784 goto
never executed: goto err;
err;
never executed: goto err;
0
785 }
never executed: end of block
0
786-
787 BN_CTX_start(ctx);-
788-
789 order = EC_GROUP_get0_order(group);-
790 if (order ==
order == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
791 ((void *)0)
order == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
792 )-
793 goto
never executed: goto err;
err;
never executed: goto err;
0
794 if (BN_is_zero(order)
BN_is_zero(order)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-45
795 ERR_put_error(16,(188),(114),__FILE__,848);-
796 goto
never executed: goto err;
err;
never executed: goto err;
0
797 }-
798-
799 bits = BN_num_bits(order);-
800-
801-
802-
803-
804-
805-
806 blocksize = 8;-
807 w = 4;-
808 if (((
((size_t) ((bi... ? 2 : 1)) > wDescription
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
size_t) ((
(bits) >= 2000Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
bits) >= 2000
(bits) >= 2000Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
? 6 : (
(bits) >= 800Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
bits) >= 800
(bits) >= 800Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
? 5 : (
(bits) >= 300Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 35 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
bits) >= 300
(bits) >= 300Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 35 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
? 4 : (
(bits) >= 70Description
TRUEevaluated 35 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
bits) >= 70
(bits) >= 70Description
TRUEevaluated 35 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
? 3 : (
(bits) >= 20Description
TRUEnever evaluated
FALSEnever evaluated
bits) >= 20
(bits) >= 20Description
TRUEnever evaluated
FALSEnever evaluated
? 2 : 1)) > w
((size_t) ((bi... ? 2 : 1)) > wDescription
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-45
809-
810 w = ((size_t) ((
(bits) >= 2000Description
TRUEnever evaluated
FALSEnever evaluated
bits) >= 2000
(bits) >= 2000Description
TRUEnever evaluated
FALSEnever evaluated
? 6 : (
(bits) >= 800Description
TRUEnever evaluated
FALSEnever evaluated
bits) >= 800
(bits) >= 800Description
TRUEnever evaluated
FALSEnever evaluated
? 5 : (
(bits) >= 300Description
TRUEnever evaluated
FALSEnever evaluated
bits) >= 300
(bits) >= 300Description
TRUEnever evaluated
FALSEnever evaluated
? 4 : (
(bits) >= 70Description
TRUEnever evaluated
FALSEnever evaluated
bits) >= 70
(bits) >= 70Description
TRUEnever evaluated
FALSEnever evaluated
? 3 : (
(bits) >= 20Description
TRUEnever evaluated
FALSEnever evaluated
bits) >= 20
(bits) >= 20Description
TRUEnever evaluated
FALSEnever evaluated
? 2 : 1));
0
811 }
never executed: end of block
0
812-
813 numblocks = (bits + blocksize - 1) / blocksize;-
814-
815-
816-
817 pre_points_per_block = (size_t)1 << (w - 1);-
818 num = pre_points_per_block * numblocks;-
819-
820-
821 points = CRYPTO_malloc(sizeof(*points) * (num + 1), __FILE__, 874);-
822 if (points ==
points == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
823 ((void *)0)
points == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
824 ) {-
825 ERR_put_error(16,(188),((1|64)),__FILE__,876);-
826 goto
never executed: goto err;
err;
never executed: goto err;
0
827 }-
828-
829 var = points;-
830 var[num] = -
831 ((void *)0)-
832 ;-
833 for (i = 0; i < num
i < numDescription
TRUEevaluated 10992 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
; i++) {
45-10992
834 if ((
(var[i] = EC_P...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10992 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
var[i] = EC_POINT_new(group)) ==
(var[i] = EC_P...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10992 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-10992
835 ((void *)0)
(var[i] = EC_P...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10992 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-10992
836 ) {-
837 ERR_put_error(16,(188),((1|64)),__FILE__,884);-
838 goto
never executed: goto err;
err;
never executed: goto err;
0
839 }-
840 }
executed 10992 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
10992
841-
842 if ((
(tmp_point = E...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
tmp_point = EC_POINT_new(group)) ==
(tmp_point = E...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
843 ((void *)0)
(tmp_point = E...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
844 -
845 || (
(base = EC_POI...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
base = EC_POINT_new(group)) ==
(base = EC_POI...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
846 ((void *)0)
(base = EC_POI...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-45
847 ) {-
848 ERR_put_error(16,(188),((1|64)),__FILE__,891);-
849 goto
never executed: goto err;
err;
never executed: goto err;
0
850 }-
851-
852 if (!EC_POINT_copy(base, generator)
!EC_POINT_copy...se, generator)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-45
853 goto
never executed: goto err;
err;
never executed: goto err;
0
854-
855-
856 for (i = 0; i < numblocks
i < numblocksDescription
TRUEevaluated 1374 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
; i++) {
45-1374
857 size_t j;-
858-
859 if (!EC_POINT_dbl(group, tmp_point, base, ctx)
!EC_POINT_dbl(...nt, base, ctx)Description
TRUEnever evaluated
FALSEevaluated 1374 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-1374
860 goto
never executed: goto err;
err;
never executed: goto err;
0
861-
862 if (!EC_POINT_copy(*var++, base)
!EC_POINT_copy(*var++, base)Description
TRUEnever evaluated
FALSEevaluated 1374 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-1374
863 goto
never executed: goto err;
err;
never executed: goto err;
0
864-
865 for (j = 1; j < pre_points_per_block
j < pre_points_per_blockDescription
TRUEevaluated 9618 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1374 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
; j++, var++) {
1374-9618
866-
867-
868-
869 if (!EC_POINT_add(group, *var, tmp_point, *(var - 1), ctx)
!EC_POINT_add(...var - 1), ctx)Description
TRUEnever evaluated
FALSEevaluated 9618 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-9618
870 goto
never executed: goto err;
err;
never executed: goto err;
0
871 }
executed 9618 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
9618
872-
873 if (i < numblocks - 1
i < numblocks - 1Description
TRUEevaluated 1329 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
45-1329
874-
875-
876-
877 size_t k;-
878-
879 if (blocksize <= 2
blocksize <= 2Description
TRUEnever evaluated
FALSEevaluated 1329 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-1329
880 ERR_put_error(16,(188),((4|64)),__FILE__,923);-
881 goto
never executed: goto err;
err;
never executed: goto err;
0
882 }-
883-
884 if (!EC_POINT_dbl(group, base, tmp_point, ctx)
!EC_POINT_dbl(...mp_point, ctx)Description
TRUEnever evaluated
FALSEevaluated 1329 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-1329
885 goto
never executed: goto err;
err;
never executed: goto err;
0
886 for (k = 2; k < blocksize
k < blocksizeDescription
TRUEevaluated 7974 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1329 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
; k++) {
1329-7974
887 if (!EC_POINT_dbl(group, base, base, ctx)
!EC_POINT_dbl(...se, base, ctx)Description
TRUEnever evaluated
FALSEevaluated 7974 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-7974
888 goto
never executed: goto err;
err;
never executed: goto err;
0
889 }
executed 7974 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
7974
890 }
executed 1329 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
1329
891 }
executed 1374 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
1374
892-
893 if (!EC_POINTs_make_affine(group, num, points, ctx)
!EC_POINTs_mak..., points, ctx)Description
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-45
894 goto
never executed: goto err;
err;
never executed: goto err;
0
895-
896 pre_comp->group = group;-
897 pre_comp->blocksize = blocksize;-
898 pre_comp->numblocks = numblocks;-
899 pre_comp->w = w;-
900 pre_comp->points = points;-
901 points = -
902 ((void *)0)-
903 ;-
904 pre_comp->num = num;-
905 group->pre_comp_type = PCT_ec, group->pre_comp.ec = pre_comp;-
906 pre_comp = -
907 ((void *)0)-
908 ;-
909 ret = 1;-
910-
911 err:
code before this statement executed 45 times by 1 test: err:
Executed by:
  • libcrypto.so.1.1
45
912 if (ctx !=
ctx != ((void *)0)Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-45
913 ((void *)0)
ctx != ((void *)0)Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-45
914 )-
915 BN_CTX_end(ctx);
executed 45 times by 1 test: BN_CTX_end(ctx);
Executed by:
  • libcrypto.so.1.1
45
916 BN_CTX_free(new_ctx);-
917 EC_ec_pre_comp_free(pre_comp);-
918 if (points
pointsDescription
TRUEnever evaluated
FALSEevaluated 45 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-45
919 EC_POINT **p;-
920-
921 for (p = points; *
*p != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
p !=
*p != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
922 ((void *)0)
*p != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
923 ; p++)-
924 EC_POINT_free(*p);
never executed: EC_POINT_free(*p);
0
925 CRYPTO_free(points, __FILE__, 960);-
926 }
never executed: end of block
0
927 EC_POINT_free(tmp_point);-
928 EC_POINT_free(base);-
929 return
executed 45 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
ret;
executed 45 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
45
930}-
931-
932int ec_wNAF_have_precompute_mult(const EC_GROUP *group)-
933{-
934 return
never executed: return group->pre_comp_type == PCT_ec && group->pre_comp.ec != ((void *)0) ;
group->pre_comp_type == PCT_ec
group->pre_comp_type == PCT_ecDescription
TRUEnever evaluated
FALSEnever evaluated
&& group->pre_comp.ec !=
group->pre_com...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: return group->pre_comp_type == PCT_ec && group->pre_comp.ec != ((void *)0) ;
0
935 ((void *)0)
group->pre_com...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: return group->pre_comp_type == PCT_ec && group->pre_comp.ec != ((void *)0) ;
0
936 ;
never executed: return group->pre_comp_type == PCT_ec && group->pre_comp.ec != ((void *)0) ;
0
937}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2