-
Notifications
You must be signed in to change notification settings - Fork 7
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
Further simplifications #172
Comments
I raised an issue (#140) before to discuss this before, and agreed not to change the special cases, since we do not want to change the syntax. In the next version (-10), the C509 certificate types 0 and 1 are increased to 2 and 3 respectively. This allows us to do more improvements, even with syntax change, e.g. removing the special cases above. |
Yes, and I think it should remain an issue pending more input.
Those new numbers were only introduced to gracefully handle early adoption of the draft. That change does not warrant any change in design, but arguments about complexity do, as may other input. |
Side notes.
|
Some of the authors discussed this issue. We don't have enough input to make a change. These special cases were introduced based on previous assessments of relevant optimizations. If we are reconsidering them then we would need more input. Please give an example how complicated this can be. Further proposals for encoding or combining these special cases are also welcome! |
Note above updated with examples:
Example:
Example: One byte gained with the current bespoke encoding. Is this sufficient motivation? The only use of "bytes" in For EUI and IP-addresses there are CBOR tags 48, 52, 54 which has more clear semantics. Do we need generic byte strings? If we replace "bytes" in the definition of "Name" with certain CBOR tagged items, we can replace the empty byte string h'' with the empty text string "". |
The current encoding mechanism is a trade-off between encoded certificate size and code complexity. It has been suggested by @xipki remove some special cases for a cleaner design:
There is no obvious right or wrong here. Comments are welcome.
The text was updated successfully, but these errors were encountered: