Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ML-KEM to speed.cc, bump AWSLC_API_VERSION to 30 #1817

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/openssl/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 7 additions & 1 deletion tool/speed.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Loading