diff --git a/src/lib/pubkey/classic_mceliece/cmce_matrix.cpp b/src/lib/pubkey/classic_mceliece/cmce_matrix.cpp index 021bfb029a4..b6810fa0b86 100644 --- a/src/lib/pubkey/classic_mceliece/cmce_matrix.cpp +++ b/src/lib/pubkey/classic_mceliece/cmce_matrix.cpp @@ -33,7 +33,7 @@ void bit_vector_insert_at(secure_bitvector& bv, size_t pos, uint64_t val) { } CT::Mask bit_at_mask(uint64_t val, size_t pos) { - return CT::Mask::expand((val >> pos) & 1); + return CT::Mask::expand((1 << pos) & val); } /// Swaps bit i with bit j in val diff --git a/src/scripts/ci_build.py b/src/scripts/ci_build.py index 49ce8f43461..89b0c216109 100755 --- a/src/scripts/ci_build.py +++ b/src/scripts/ci_build.py @@ -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