-
Notifications
You must be signed in to change notification settings - Fork 95
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
Adding version-conditional context string support #583
Conversation
Signed-off-by: Michael Baentsch <[email protected]>
Signed-off-by: Michael Baentsch <[email protected]>
Signed-off-by: Michael Baentsch <[email protected]>
Signed-off-by: Michael Baentsch <[email protected]>
Signed-off-by: Michael Baentsch <[email protected]>
Signed-off-by: Michael Baentsch <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks, Michael. I left a couple of picky style-related comments; feel free to ignore them if you wish.
Signed-off-by: Michael Baentsch <[email protected]>
@SWilson4 Did you provide the tool "format_code.sh" running the docker image with the same |
It looks to me like the coding style tests are passing in the Ubuntu 24 image (which is what that script uses). However, the failing tests also seem to be running clang-format in other images (Ubuntu 22 / Alpine) :( |
Hmpf; OK, just saw oqs-provider/.github/workflows/linux.yml Lines 46 to 52 in 98ec7fc
That's of course an invitation to fail -- interesting that it worked until today :-/. Objections to removing these style checks from these platforms? |
None from me—especially since those tests only run if the style checks pass on Ubuntu 24. |
OK -- then what about putting these "nothing (in terms of style) changes on regenerate" tests also into the coding style check script? The re-generate and run tests on different platforms do make sense to retain (just no coding style check then there). |
The purpose is to check idempotence under the operation of "regenerate and reformat", correct? (Similar to the I do wonder if there's value in also running the tests without regenerating on different platforms. Previously we had assurance that no code differences arose as part of the regeneration process, so it didn't matter. I'm thinking of the following scenario:
Does this seem far-fetched to you, or is it something we need to worry about? |
No, it doesn't. My approach would have been to just remove the |
Signed-off-by: Michael Baentsch <[email protected]>
Signed-off-by: Michael Baentsch <[email protected]>
So now implemented -- addressing all your concerns @SWilson4 ? |
This also acts as a test for the new
liboqs
version define feature by conditionally enabling context string support during signature operations for plain PQ algorithms supporting that feature and in openssl versions also supporting that feature.