diff --git a/include/openssl/base.h b/include/openssl/base.h index cdb7130e6a..220256a277 100644 --- a/include/openssl/base.h +++ b/include/openssl/base.h @@ -114,7 +114,7 @@ extern "C" { // A consumer may use this symbol in the preprocessor to temporarily build // against multiple revisions of BoringSSL at the same time. It is not // recommended to do so for longer than is necessary. -#define AWSLC_API_VERSION 29 +#define AWSLC_API_VERSION 30 // This string tracks the most current production release version on Github // https://github.com/aws/aws-lc/releases. diff --git a/tool/speed.cc b/tool/speed.cc index 9e11803ac1..d71359ac0a 100644 --- a/tool/speed.cc +++ b/tool/speed.cc @@ -851,7 +851,13 @@ static bool SpeedSingleKEM(const std::string &name, int nid, const std::string & } static bool SpeedKEM(std::string selected) { - return SpeedSingleKEM("Kyber512_R3", NID_KYBER512_R3, selected) && + return +#if AWSLC_API_VERSION >= 30 + SpeedSingleKEM("ML-KEM-512", NID_MLKEM512, selected) && + SpeedSingleKEM("ML-KEM-768", NID_MLKEM768, selected) && + SpeedSingleKEM("ML-KEM-1024", NID_MLKEM1024, selected) && +#endif + SpeedSingleKEM("Kyber512_R3", NID_KYBER512_R3, selected) && SpeedSingleKEM("Kyber768_R3", NID_KYBER768_R3, selected) && SpeedSingleKEM("Kyber1024_R3", NID_KYBER1024_R3, selected); }