-
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.
Signed-off-by: Thomas Fossati <thomas.fossati@linaro.org>
- Loading branch information
1 parent
6004317
commit 5ec0fc9
Showing
5 changed files
with
68 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'json_pure' | ||
gem 'cddl', ['>=0.9.1', '!=0.10.5' ] | ||
gem 'cbor-diag', '=0.8.1' | ||
gem 'cddlc' |
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,10 @@ | ||
%.cddl: %.cddlc ; cddlc -2tcddl $< > $@ | ||
|
||
CDDL := measured-component.cddl | ||
|
||
all: check | ||
|
||
check: $(CDDL) ; cddl $< g 10 | ||
.PHONY: check | ||
|
||
clean: ; -rm -f $(CDDL) |
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,28 @@ | ||
measured-component = [ | ||
id: component-id | ||
measurement: corim.digest | ||
signer: ckt | ||
? countersigners: [ + ckt ] | ||
] | ||
|
||
; COSE Key Thumbprint | ||
ckt = bytes | ||
|
||
component-id = [ | ||
name: text | ||
? version: version | ||
] | ||
|
||
;# import $version-scheme from rfc9393 as coswid | ||
|
||
version = [ | ||
val: text | ||
? scheme: coswid.$version-scheme | ||
] | ||
|
||
; eventually: ";#import digest from rfcxxxx as corim" | ||
|
||
corim.digest = [ | ||
alg: (int / text) | ||
val: bytes | ||
] |
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