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

Do we need more compute on the CDDL operators for oids/sdnvseqs? #3

Closed
cabo opened this issue Jul 16, 2020 · 1 comment
Closed

Do we need more compute on the CDDL operators for oids/sdnvseqs? #3

cabo opened this issue Jul 16, 2020 · 1 comment

Comments

@cabo
Copy link
Collaborator

cabo commented Jul 16, 2020

https://mailarchive.ietf.org/arch/msg/cbor/2_qmMQ2B_o21YQVnfkhCb0-BS0U

  • Section 7 - If we do nesting behavior on these tags, then a control
    operator to make A relative to B would be useful as well.

Again, if you have an example for that, I’m all ears.

root-sha2 = bytes .sdnvseq [ 60 840 1 101 3 4 2 ]
root-sha256 = byte .sdnvseq [ 60 840 1 101 3 4 2 1 ]
rel-sha25 = root-sha256 .oidrel root-sha2

So this would be a "subtraction" operator, which by the way would work on general byte strings and not just on OID representations.

@cabo
Copy link
Collaborator Author

cabo commented Jan 15, 2021

Given that this is a more general operator, we don't really need to do it here, so I'm closing this ticket here.

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

No branches or pull requests

1 participant