-
Notifications
You must be signed in to change notification settings - Fork 640
Add build option for randomized ML-DSA signing #2298
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
7c0e326
ec7289e
f54e3f4
7193b5f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -193,6 +193,17 @@ def available_use_options_by_name(): | |
| def is_use_option_enabled_by_name(name): | ||
| return name in available_use_options_by_name() | ||
|
|
||
| def is_ml_dsa_randomized_signing_enabled(): | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This approach feels "brittle" (but I may be paranoid here): For example, would it be possible to build everything with "-DOQS_ENABLE_SIG_ML_DSA_RANDOMIZED_SIGNING" (passed to the compiler during a re-build)? If so, this function will fail to return the right value. And/or would it be sensible to have |
||
| header = os.path.join(get_current_build_dir_name(), 'include', 'oqs', 'oqsconfig.h') | ||
| try: | ||
| with open(header) as fh: | ||
| for line in fh: | ||
| if line.strip() == "#define OQS_ENABLE_SIG_ML_DSA_RANDOMIZED_SIGNING": | ||
| return True | ||
| except Exception: | ||
| pass | ||
| return False | ||
|
|
||
| def get_kats(t): | ||
| if kats[t] is None: | ||
| with open(os.path.join('tests', 'KATs', t, 'kats.json'), 'r') as fp: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.