Skip to content

Commit

Permalink
attempt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FAlbertDev committed Jul 23, 2024
1 parent 6359ac0 commit 9993407
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/pubkey/classic_mceliece/cmce_matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void bit_vector_insert_at(secure_bitvector& bv, size_t pos, uint64_t val) {
}

CT::Mask<uint64_t> bit_at_mask(uint64_t val, size_t pos) {
return CT::Mask<uint64_t>::expand((val >> pos) & 1);
return CT::Mask<uint64_t>::expand((1 << pos) & val);
}

/// Swaps bit i with bit j in val
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/ci_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def add_boost_support(target, target_os):
'-ex', 'bt',
'-ex', 'quit']
else:
run_test_command = test_prefix + test_cmd
run_test_command = test_prefix + test_cmd + ' cmce'

return flags, run_test_command, make_prefix

Expand Down

0 comments on commit 9993407

Please sign in to comment.