Skip to content

Commit

Permalink
Botan3: minimum version 3.2.0; fix issue rnpgp#2247--
Browse files Browse the repository at this point in the history
  • Loading branch information
TJ-91 committed Jul 29, 2024
1 parent 6224061 commit cea8492
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ find_package(ZLIB REQUIRED)
# required packages
find_package(JSON-C 0.11 REQUIRED)
if (CRYPTO_BACKEND_BOTAN3)
find_package(Botan 3.0.0 REQUIRED)
find_package(Botan 3.2.0 REQUIRED)
elseif (CRYPTO_BACKEND_BOTAN)
find_package(Botan 2.14.0 REQUIRED)
if(BOTAN_VERSION VERSION_GREATER_EQUAL 3.0.0)
Expand Down
4 changes: 2 additions & 2 deletions src/lib/crypto/kyber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ rnp_kyber_param_to_botan_kyber_mode(kyber_parameter_e mode)
result = Botan::KyberMode::ML_KEM_768_ipd;
}
#else
Botan::KyberMode result = Botan::KyberMode::Kyber1024;
Botan::KyberMode result = Botan::KyberMode::Kyber1024_R3;
if (mode == kyber_768) {
result = Botan::KyberMode::Kyber768;
result = Botan::KyberMode::Kyber768_R3;
}
#endif
return result;
Expand Down
2 changes: 1 addition & 1 deletion src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ endif()

find_package(JSON-C 0.11 REQUIRED)
if (CRYPTO_BACKEND_BOTAN3)
find_package(Botan 3.0.0 REQUIRED)
find_package(Botan 3.2.0 REQUIRED)
elseif (CRYPTO_BACKEND_BOTAN)
find_package(Botan 2.14.0 REQUIRED)
if(BOTAN_VERSION VERSION_GREATER_EQUAL 3.0.0)
Expand Down

0 comments on commit cea8492

Please sign in to comment.