Repository navigation
Conversation
Add ML-DSA-87 (FIPS 204) as an allowed signing algorithm in both formats: JWS alg "ML-DSA-87" and CoRIM COSE_Sign1 alg -50, both registered by RFC 9964. The change is additive. The existing algorithms, published reports and SRP keys are untouched. - JWS: a private PyJWS instance carries an ML-DSA-87 algorithm class, so PyJWT's module-level state is unchanged. - CoRIM: cwt has no ML-DSA, so the COSE_Sign1 is built and checked directly, following RFC 9052 section 4.4. - ML-DSA-87 needs cryptography 48.0.0 or later. On older versions the import falls back and every other algorithm still works. - Tests: round trips and negative controls in both formats, run from test_corim_generation.py, and skipped on cryptography below 48.0.0. - Sample: samples/example_mldsa87.jws signs the report from example_gen_sign_verify.py, with its public key. Signed-off-by: Shayne Heffernan <shayne@knightsbridgelaw.com>
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Withdrawn by KXCO.