From aadcb2a3634a5876a2acd619851a4894fe0d3ec1 Mon Sep 17 00:00:00 2001 From: Fabian Albert Date: Fri, 14 Jun 2024 09:14:29 +0200 Subject: [PATCH] CI fixes --- src/lib/pubkey/ounsworth_kem_combiner/ounsworth.cpp | 1 + src/lib/pubkey/ounsworth_kem_combiner/ounsworth.h | 3 ++- src/lib/pubkey/ounsworth_kem_combiner/ounsworth_mode.cpp | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/pubkey/ounsworth_kem_combiner/ounsworth.cpp b/src/lib/pubkey/ounsworth_kem_combiner/ounsworth.cpp index 4069f2dd5dd..a15d84b4d69 100644 --- a/src/lib/pubkey/ounsworth_kem_combiner/ounsworth.cpp +++ b/src/lib/pubkey/ounsworth_kem_combiner/ounsworth.cpp @@ -103,6 +103,7 @@ std::vector get_mac_big_k(const Ounsworth::Mode& mode, std::string_view case Ounsworth::Kdf_Type::SHA3_512: return {}; } + BOTAN_ASSERT_UNREACHABLE(); } else { // By default K is the bytes of the input string. return {params.begin(), params.end()}; diff --git a/src/lib/pubkey/ounsworth_kem_combiner/ounsworth.h b/src/lib/pubkey/ounsworth_kem_combiner/ounsworth.h index bfa81d8bc78..7b7fba4a4c4 100644 --- a/src/lib/pubkey/ounsworth_kem_combiner/ounsworth.h +++ b/src/lib/pubkey/ounsworth_kem_combiner/ounsworth.h @@ -50,7 +50,8 @@ class BOTAN_UNSTABLE_API Ounsworth_PublicKey : public virtual Hybrid_PublicKey { Ounsworth_PublicKey(std::vector> pks, const Ounsworth::Mode& mode); static std::unique_ptr from_public_keys(std::vector> pks, const Ounsworth::Mode& mode); - Ounsworth_PublicKey(const Ounsworth::Mode& m_mode) : m_mode(m_mode){}; + + Ounsworth_PublicKey(const Ounsworth::Mode& mode) : m_mode(mode) {} private: Ounsworth::Mode m_mode; diff --git a/src/lib/pubkey/ounsworth_kem_combiner/ounsworth_mode.cpp b/src/lib/pubkey/ounsworth_kem_combiner/ounsworth_mode.cpp index 279e6585bff..4f0f0a4aff9 100644 --- a/src/lib/pubkey/ounsworth_kem_combiner/ounsworth_mode.cpp +++ b/src/lib/pubkey/ounsworth_kem_combiner/ounsworth_mode.cpp @@ -481,6 +481,7 @@ std::unique_ptr Ounsworth::Mode::kdf_instance() const { case SHA3_512: return KDF::create_or_throw("SP800-56A(SHA-3(512))"); } + BOTAN_ASSERT_UNREACHABLE(); } AlgorithmIdentifier Ounsworth::Mode::algorithm_identifier() const {