File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1384,7 +1384,8 @@ void ecc_point_mult_shamir(const struct ecc_point *result,
1384
1384
1385
1385
num_bits = max (vli_num_bits (u1 , ndigits ), vli_num_bits (u2 , ndigits ));
1386
1386
i = num_bits - 1 ;
1387
- idx = (!!vli_test_bit (u1 , i )) | ((!!vli_test_bit (u2 , i )) << 1 );
1387
+ idx = !!vli_test_bit (u1 , i );
1388
+ idx |= (!!vli_test_bit (u2 , i )) << 1 ;
1388
1389
point = points [idx ];
1389
1390
1390
1391
vli_set (rx , point -> x , ndigits );
@@ -1394,7 +1395,8 @@ void ecc_point_mult_shamir(const struct ecc_point *result,
1394
1395
1395
1396
for (-- i ; i >= 0 ; i -- ) {
1396
1397
ecc_point_double_jacobian (rx , ry , z , curve );
1397
- idx = (!!vli_test_bit (u1 , i )) | ((!!vli_test_bit (u2 , i )) << 1 );
1398
+ idx = !!vli_test_bit (u1 , i );
1399
+ idx |= (!!vli_test_bit (u2 , i )) << 1 ;
1398
1400
point = points [idx ];
1399
1401
if (point ) {
1400
1402
u64 tx [ECC_MAX_DIGITS ];
You can’t perform that action at this time.
0 commit comments