-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev/robin/10150 cwt claims label change (#35)
* feat: 10150 support for draft-ietf-cose-cwt-claims-in-headers-10#section-2 The cwt_claims label in the scitt headers is now 15 rather than 13 statements are always created with the new label. The old label is a fall back case when retrieving the claims from the headers using `cnf_key_from_phdr` * feat: temporary support for legacy header to ease integration --------- Co-authored-by: Robin Bryce <[email protected]>
- Loading branch information
1 parent
c115e91
commit ddc439a
Showing
10 changed files
with
103 additions
and
24 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from datatrails_scitt_samples.statement_creation import OPTION_USE_DRAFT_04_LABELS | ||
from datatrails_scitt_samples.cbor_header_labels import ( | ||
HEADER_LABEL_CWT, | ||
HEADER_LABEL_CWT_SCITT_DRAFT_04, | ||
) | ||
|
||
# Use this until the backend support for cwt label 15 is available | ||
create_options = {OPTION_USE_DRAFT_04_LABELS: True} | ||
|
||
|
||
def get_cwt_phdr(phdr): | ||
return phdr.get(HEADER_LABEL_CWT) or phdr.get(HEADER_LABEL_CWT_SCITT_DRAFT_04) |
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
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