Skip to content
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

Merged
merged 7 commits into from
Nov 2, 2020

Conversation

mcd500
Copy link
Collaborator

@mcd500 mcd500 commented Oct 30, 2020

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.

@hannestschofenig
Copy link
Collaborator

A good idea to add a detailed example

Comment on lines 1308 to 1310
1a 77777778 # unsigned(2004318072, 0x77777778)
A1 # map(1)
Copy link
Collaborator

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

Copy link
Collaborator Author

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


### Some assumptions in examples

- TAM supports 2 versions: 0, 1
Copy link
Collaborator

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

Copy link
Collaborator Author

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

- TAM supports 2 versions: 0, 1
- OCSP stapling data = h'010203'
- TEEP Device has 2 TAs
- TA-ID: 0x010203, 0x040506
Copy link
Collaborator

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

Copy link
Collaborator Author

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 Show resolved Hide resolved
draft-ietf-teep-protocol.md Outdated Show resolved Hide resolved
draft-ietf-teep-protocol.md Outdated Show resolved Hide resolved
ERR_RESOURCE_FULL, / err-code : ERR_RESOURCE_FULL = 11 (uint) /
/ options : /
{
11 : "disk-full" / err-msg = 12 (mapkey) :
Copy link
Collaborator

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)?

Copy link
Collaborator Author

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.

@dthaler dthaler self-requested a review November 2, 2020 14:56
draft-ietf-teep-protocol.md Outdated Show resolved Hide resolved
draft-ietf-teep-protocol.md Outdated Show resolved Hide resolved
draft-ietf-teep-protocol.md Outdated Show resolved Hide resolved
draft-ietf-teep-protocol.md Outdated Show resolved Hide resolved
@dthaler dthaler self-requested a review November 2, 2020 15:12
@dthaler dthaler merged commit 13b9fe7 into ietf-teep:master Nov 2, 2020
@mcd500 mcd500 deleted the add-cbor-examples branch November 20, 2020 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants