Skip to content

Enable ntruprime sntrup761#180

Merged
thomwiggers merged 3 commits intoopen-quantum-safe:mainfrom
cyberstormdotmu:main
Feb 6, 2023
Merged

Enable ntruprime sntrup761#180
thomwiggers merged 3 commits intoopen-quantum-safe:mainfrom
cyberstormdotmu:main

Conversation

@loganaden
Copy link
Copy Markdown
Contributor

No description provided.

@dstebila dstebila requested a review from thomwiggers February 1, 2023 21:11
dstebila
dstebila previously approved these changes Feb 1, 2023
Copy link
Copy Markdown
Contributor

@thomwiggers thomwiggers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You missed a feature which is required for this to build correctly. Once that's added, this should be ready to be merged.

Comment thread oqs/Cargo.toml
@loganaden
Copy link
Copy Markdown
Contributor Author

It appears that the branch needs to be merged with the latest commit from @thomwiggers before it's merged automatically ?I've done this. Waiting for the next CI run to be allowed.

@thomwiggers
Copy link
Copy Markdown
Contributor

I wish "approve and run" would stick, but alas. Okay, this should finally go through when CI passes now.

@thomwiggers thomwiggers merged commit 5f7e528 into open-quantum-safe:main Feb 6, 2023
@thomwiggers
Copy link
Copy Markdown
Contributor

Thanks :)

@Sculas
Copy link
Copy Markdown

Sculas commented Aug 26, 2023

I was taking a look at the codebase, and I noticed that NTRU Prime was missing from here:

// KEMs
// BIKE is not supported on Windows or Arm32, so if either is in the mix,
// have it be opt-in explicitly except through the default kems feature.
if cfg!(feature = "kems") && !(cfg!(windows) || cfg!(target_arch = "arm")) {
println!("cargo:rustc-cfg=feature=\"bike\"");
config.define("OQS_ENABLE_KEM_BIKE", "Yes");
} else {
algorithm_feature!("KEM", "bike");
}
algorithm_feature!("KEM", "classic_mceliece");
algorithm_feature!("KEM", "frodokem");
algorithm_feature!("KEM", "hqc");
algorithm_feature!("KEM", "kyber");
// signature schemes
algorithm_feature!("SIG", "dilithium");
algorithm_feature!("SIG", "falcon");
algorithm_feature!("SIG", "sphincs");

This made me think that the NTRU Prime algorithm would always be disabled, but tests are saying otherwise.
How can it be that NTRU Prime is being linked without it being toggled on? Does it default to being linked?

@thomwiggers
Copy link
Copy Markdown
Contributor

I imagine that if the feature flags are not set, the default takes over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants