Skip to content

Commit

Permalink
CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FAlbertDev committed May 23, 2024
1 parent 862a4a8 commit 9d9158d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/tls/tls13_pqc/hybrid_public_key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ std::vector<size_t> public_value_lengths_for_group(Group_Params group) {
std::vector<std::unique_ptr<Public_Key>> convert_kex_to_kem_pks(std::vector<std::unique_ptr<Public_Key>> pks) {
std::vector<std::unique_ptr<Public_Key>> result;
std::transform(pks.begin(), pks.end(), std::back_inserter(result), [](auto& key) -> std::unique_ptr<Public_Key> {
BOTAN_ASSERT_NONNULL(key);
BOTAN_ARG_CHECK(key != nullptr, "Public key list contains a nullptr");
if(key->supports_operation(PublicKeyOperation::KeyAgreement) &&
!key->supports_operation(PublicKeyOperation::KeyEncapsulation)) {
return std::make_unique<KEX_to_KEM_Adapter_PublicKey>(std::move(key));
Expand All @@ -160,7 +160,7 @@ std::vector<std::unique_ptr<Public_Key>> convert_kex_to_kem_pks(std::vector<std:
std::vector<std::unique_ptr<Private_Key>> convert_kex_to_kem_sks(std::vector<std::unique_ptr<Private_Key>> sks) {
std::vector<std::unique_ptr<Private_Key>> result;
std::transform(sks.begin(), sks.end(), std::back_inserter(result), [](auto& key) -> std::unique_ptr<Private_Key> {
BOTAN_ASSERT_NONNULL(key);
BOTAN_ARG_CHECK(key != nullptr, "Private key list contains a nullptr");
if(key->supports_operation(PublicKeyOperation::KeyAgreement) &&
!key->supports_operation(PublicKeyOperation::KeyEncapsulation)) {
auto ka_key = dynamic_cast<PK_Key_Agreement_Key*>(key.get());
Expand Down

0 comments on commit 9d9158d

Please sign in to comment.