Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FAlbertDev committed Jun 14, 2024
1 parent 4cad7fd commit aadcb2a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib/pubkey/ounsworth_kem_combiner/ounsworth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ std::vector<uint8_t> 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()};
Expand Down
3 changes: 2 additions & 1 deletion src/lib/pubkey/ounsworth_kem_combiner/ounsworth.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ class BOTAN_UNSTABLE_API Ounsworth_PublicKey : public virtual Hybrid_PublicKey {
Ounsworth_PublicKey(std::vector<std::unique_ptr<Public_Key>> pks, const Ounsworth::Mode& mode);
static std::unique_ptr<Ounsworth_PublicKey> from_public_keys(std::vector<std::unique_ptr<Public_Key>> 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;
Expand Down
1 change: 1 addition & 0 deletions src/lib/pubkey/ounsworth_kem_combiner/ounsworth_mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ std::unique_ptr<KDF> 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 {
Expand Down

0 comments on commit aadcb2a

Please sign in to comment.