-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch is a fix up to previous commits to update the Response struct to follow RFC7516. The work included in the commit 1. Make both serialization and deserialization of `ProtectedHeader` use base64-url-nopadding encoding. This means that the whole ProtectedHeader will be serialized into a base64 string, rather than a struct. 2. Make `encrypted_key`, `aad`, `iv`, `ciphertext`, `tag` to base64-url-nopadding encoded string when serializing. 3. Automatical deseralization logic when parsing Response from a flattened JSON JWE Serialization. Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
- Loading branch information
Showing
2 changed files
with
169 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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