Article View: news.software.nntp
Article #87609Re: New draft for Cancel-Lock
From: Michael Bäuerle
Date: Thu, 09 Mar 2017 16:43
Date: Thu, 09 Mar 2017 16:43
82 lines
3972 bytes
3972 bytes
Julien ÉLIE wrote:
>
> Hi Michael,
>
> First of all, thanks for your document and having taken time to write
> it. Here is my review:
>
>
> Questions or technical issues
> -----------------------------
>
> - Section 2:
> code-string = 1*base64-octet
> base64-octet = ALPHA / DIGIT / "+" / "/" / "="
>
> Shouldn't something like RFC 3977 specifies be used?
>
> base64 = *(4base64-char) [base64-terminal]
> base64-char = UPPER / LOWER / DIGIT / "+" / "/"
^^^^^^^^^^^^^
Is there a particular reason to not use ALPHA here?
In RFC3977 I found the following local definitions:
|
| LOWER = %x61-7A
| UPPER = %x41-5A
I compared them to RFC5234 core rules (Appendix B.1):
|
| ALPHA = %x41-5A / %x61-7A
Looks similar, this means syntactically both options should be
equivalent.
But because UPPER and LOWER are not ABNF core rules from RFC5234, I
would need to define them locally (as in RFC3977) to use your suggestion
above. Was it your intention that it should be done this way?
Like this:
base64-char = ALPHA / DIGIT / "+" / "/"
the normative reference to RFC5234 (that is already present) should be
sufficient.
> base64-terminal = 2base64-char "==" / 3base64-char "="
At all it is obviously a definition that matches Base64 much closer than
the one I copied from Simons draft.
In general I agree that it would be better to define it as you have
suggested above (if we use "base64" to create names for the syntax
definition, the defined thing should be Base64).
But from the formal point of view there is a possibility to break the
backward compatibility:
In Simons draft (on which all current implementations are based) it is
sufficient that a Cancel-Key code string "looks like Base64", it must
not be real Base64. Simon has defined this as an example (I have simply
copied it):
|
| Cancel-Key: sha1:aaaBBBcccDDDeeeFFF
| | | | |
This is obviously crafted and not calculated, the point is that it's
*not* Base64 because the padding is wrong (I have marked the quad block
boundaries above, the required Base64 padding would be "==").
By using it as an example, Simon must have considered this as allowed,
but it doesn't match the more strict syntax definition you suggested
above.
I prefer to nevertheless switch over to the more strict syntax, but in
this case I think we should preserve the current syntax for the SHA1
scheme to ensure backward compatibility. What do you think about this:
Move the current syntax to section 6 (and bind it to the deprecated SHA1
scheme) and define the new syntax only for the new SHA2 scheme?
Not to forget: Thanks for your detailed review!
I will check your other points later to make this article not too long
and to avoid mixing different topics.
Technical Details
Message-ID:
<AABYwYYoBNgAAAJq.A1.flnews@WStation5.stz-e.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<AABYvbRwKe8AABT3.A1.flnews@WStation5.stz-e.de> <o9pu2k$759$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <AABYwYYoBNgAAAJq.A1.flnews@WStation5.stz-e.de> Subject: Re: New draft for Cancel-Lock Date: Thu, 9 Mar 2017 17:43:20 +0100 From: Michael Bäuerle <michael.baeuerle@stz-e.de> References: <AABYvbRwKe8AABT3.A1.flnews@WStation5.stz-e.de> <o9pu2k$759$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Lines: 80 Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=fixed Content-Transfer-Encoding: 8bit X-Trace: individual.net 39gowEJjaHFwkwdShkZRCww4A4VA0w84tXssHMqzIF+9W27d4y X-Orig-Path: not-for-mail Cancel-Lock: sha1:7OgZLjmiPUpKqNghqe0FsBMVtAk= sha1:DeteVKENg5ZsubGOuNh1xgdCXRA= Injection-Date: Thu, 9 Mar 2017 16:43:20 -0000 User-Agent: flnews/0.15pre8 (for NetBSD) X-Received-Body-CRC: 3632447492 X-Received-Bytes: 3863