JSON Message Signing via Digest Segmentation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
JSON messages lack message integrity over communication links, relying solely on transport security which is vulnerable to malicious or accidental alterations.
Innovation Solution
A digital signature scheme is implemented using a JSON signature syntax with named elements such as reference, signature information, and signature elements, which generates a digest and signature value to provide message integrity and authentication.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If transport security (such as SSL) is used to secure JSON messages, then point-to-point message security is provided, but message integrity cannot be guaranteed against malicious or accidental alterations
Solution Approach 1:
The message is segmented into original data and a separate digest value. The digest is calculated from the original message using a hash function, creating a separate representation that can be used to verify integrity without altering the original message structure.
Solution Approach 2:
A digest value acts as an intermediary between the original message and the verification process. This digest serves as a intermediary representation that can be compared against a received message to detect alterations without exposing the original message content during verification.
2Reliability
If digital signature scheme is implemented to provide message integrity and authentication, then security is enhanced, but device complexity increases due to additional processing steps
Solution Approach 1:
Instead of requiring full cryptographic signature verification for all messages, the invention applies a lighter digest calculation approach that provides sufficient integrity checking for the specific use case, reducing computational overhead while maintaining security for the most critical function of detecting message alterations.
Solution Approach 2:
The digest value is a lightweight, computationally inexpensive object that can be quickly generated and discarded after verification. Unlike heavy cryptographic signatures, the digest provides a disposable verification mechanism that consumes minimal processing resources.
Data Source
AI summary
A machine-implemented method for signing a JSON message begins by constructing a reference element for each data object in the JSON message. The data object is identified by a reference identifier that includes a pointer to a digest method, and a digest generated by applying the digest method to the data object. Then, a signature information element is constructed for reference elements corresponding to data objects in the message. The signature information element includes a pointer to a signature method, as well as one or more reference elements, or a canonical form of the one or more reference elements. Then, a signature element is constructed that includes the signature information element, and a signature value generated by applying the signature method to the signature information element. The signature enables a sending entity to generate a digest on a JSON message and to secure the digests using a signing key.


