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

Simplification of 'name' #213

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

gselander
Copy link
Collaborator

Addresses #172. For discussion.

  • Makes use of the CBOR tag for MAC addresses which didn't exist at the time when the original text was written.

  • Does not make use of the CBOR tags for IPv4/v6 addresses, but removes the arbitrary prefix '00' for encoding of byte strings, since we can now distinguish from EUI-64 by above.

@gselander
Copy link
Collaborator Author

@cabo noted on the COSE list that CBOR tag 23 encodes upper case hex text strings. This is a possible completeness addition, but makes processing slightly more complicated, contradicting the original intent with this PR.

(Text to add:

*If the text string has an even length {{{≥}}} 2 and contains only the symbols '0'–'9' or 'A'–'H', it is encoded as a CBOR tagged byte string using the CBOR tag 23, see {{Section 3.4.5.2 of RFC8949}}.
)

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.

1 participant