diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db386c57ebb..5dbdb099286 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ permissions: on: # TODO Remove on PR push: - branches: [ master, pqc/classic_mceliece, ci/** ] + branches: [ master, pqc/classic_mceliece ] pull_request: branches: [ master ] diff --git a/src/lib/pubkey/classic_mceliece/cmce_field_ordering.cpp b/src/lib/pubkey/classic_mceliece/cmce_field_ordering.cpp index e4e7ebd4065..b9e624d9cca 100644 --- a/src/lib/pubkey/classic_mceliece/cmce_field_ordering.cpp +++ b/src/lib/pubkey/classic_mceliece/cmce_field_ordering.cpp @@ -152,7 +152,7 @@ std::vector Classic_McEliece_Field_Ordering::alphas(size_t std::vector n_alphas_vec; std::transform(m_pi.begin(), m_pi.begin() + n, std::back_inserter(n_alphas_vec), [this](uint16_t pi_elem) { - return from_pi(pi_elem, m_poly_f, Classic_McEliece_GF::log_q(m_poly_f)); + return from_pi(pi_elem, m_poly_f, Classic_McEliece_GF::log_q_from_mod(m_poly_f)); }); return n_alphas_vec; diff --git a/src/lib/pubkey/classic_mceliece/cmce_gf.h b/src/lib/pubkey/classic_mceliece/cmce_gf.h index 854f9ad007e..62cf0bed778 100644 --- a/src/lib/pubkey/classic_mceliece/cmce_gf.h +++ b/src/lib/pubkey/classic_mceliece/cmce_gf.h @@ -53,7 +53,7 @@ class BOTAN_TEST_API Classic_McEliece_GF { * @param modulus The modulus of GF(q). * @return size_t The degree log_q of the modulus (m for GF(2^m)). */ - static size_t log_q(uint16_t modulus) { return high_bit(modulus) - 1; } + static size_t log_q_from_mod(uint16_t modulus) { return high_bit(modulus) - 1; } /** * @brief Get m. @@ -64,7 +64,7 @@ class BOTAN_TEST_API Classic_McEliece_GF { * @param modulus The modulus of GF(q). * @return size_t The degree log_q of the modulus (m for GF(2^m)). */ - size_t log_q() const { return log_q(m_modulus); } + size_t log_q() const { return log_q_from_mod(m_modulus); } /** * @brief Get the GF(q) element as a uint16_t.