Implement JWS signing for JSON CMW (#15) #17
Open
kallal79 wants to merge 2 commits intoveraison:mainfrom
Open
Conversation
d70e018 to
a74474a
Compare
This commit implements JWS (JSON Web Signature) support for RATS Conceptual Message Wrapper (CMW) following Section 4.2 of draft-ietf-rats-msg-wrap and the pattern from CBOR signing (PR veraison#16). Features implemented: - JWS compact serialization with ES256 algorithm - CMW marshaling to JSON triple format [type, value, indicator] - Base64URL encoding/decoding without padding - JWS header creation with proper algorithm and content type - ES256 test key generation matching Go test vectors - CLI commands for signing and verification Files added: - cmw-bash-jws.sh: Main bash implementation with JWS support - test-cmw-jws.sh: Comprehensive test suite (10 tests, all passing) - simple-jws-demo.sh: Simple end-to-end demonstration - jws-comprehensive-demo.sh: Detailed demonstration with multiple CMW types - JWS_README.md: Documentation and usage guide Standards compliance: - RFC 7515 (JWS) compact serialization - ES256 algorithm (ECDSA using P-256 and SHA-256) - draft-ietf-rats-msg-wrap Section 4.2 for JSON CMW signing - Proper CMW triple format preservation Test results: - All 10 JWS tests passing - All existing Go tests still passing - No regressions in existing functionality Note: ECDSA signature generation and verification use placeholder implementations and require integration with cryptographic libraries for production use. Signed-off-by: Kallal Mukherjee <ritamukherje62@gmail.com>
Signed-off-by: Kallal Mukherjee <ritamukherje62@gmail.com>
501fdb7 to
2585ffd
Compare
Author
|
Hi @yogeshbdeshpande @thomas-fossati @cowbon @deeglaze @iolivergithub @jraman567 Sir: PR #17 implements JWS signing for JSON CMW (Issue #15) with ES256 JWS, compact serialization, CLI signing/verification, tests and docs — please review and approve to unblock merging. |
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.
This commit implements JWS (JSON Web Signature) support for RATS Conceptual Message Wrapper (CMW) following Section 4.2 of draft-ietf-rats-msg-wrap and the pattern from CBOR signing (PR #16).
Features implemented:
Files added:
Standards compliance:
Test results: