-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding examples of CBOR Diagnostic and Binary Representation #65
Conversation
A good idea to add a detailed example |
draft-ietf-teep-protocol.md
Outdated
1a 77777778 # unsigned(2004318072, 0x77777778) | ||
A1 # map(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is 'a' lower case in 1308 but upper case 'A' in 1309 and 1310? Seems like it should be consistent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, resolved with adding commit b649453
draft-ietf-teep-protocol.md
Outdated
|
||
### Some assumptions in examples | ||
|
||
- TAM supports 2 versions: 0, 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since version 1 is not defined, I don't think any example should use it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to use only version 0 at 51e792b
draft-ietf-teep-protocol.md
Outdated
- TAM supports 2 versions: 0, 1 | ||
- OCSP stapling data = h'010203' | ||
- TEEP Device has 2 TAs | ||
- TA-ID: 0x010203, 0x040506 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with PR #53 the TA IDs should be 16 bytes long
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I revised the TA ID to be 16 bytes b0dd2fc
draft-ietf-teep-protocol.md
Outdated
ERR_RESOURCE_FULL, / err-code : ERR_RESOURCE_FULL = 11 (uint) / | ||
/ options : / | ||
{ | ||
11 : "disk-full" / err-msg = 12 (mapkey) : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should "11" be "12" (err-msg is 12)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed it with 9efff10 thanks.
220d458
to
9efff10
Compare
This is adding examples of CBOR Diagnostic Notations and Binary representation for following each teep messages.
QueryRequest
QueryResponse
TrustedAppInstall
TeepSuccess
TeepError
It is meant to be clarifying representations and improve compatibilities among different implementations.