Article View: news.software.nntp
Article #87643New draft for Cancel-Lock (Calculating the key data) (was: New draft for Cancel-Lock)
From: Julien ÉLIE
Date: Sat, 18 Mar 2017 15:00
Date: Sat, 18 Mar 2017 15:00
33 lines
2286 bytes
2286 bytes
Hi Michael,
When calculating the key data (Section 4), only the use of the
Message-ID and the secret key is suggested.
In the case of injecting agents, wouldn't it be good to suggest to also
use the login of the authenticated user?
K = HMAC(mid, login+sec)
for instance (where HMAC is computed over the data <mid>, using as the
secret key the concatenation of <login> [if known] and <sec>).
I took the idea from Alexander's implementation:
http://svn.schnuerpel.eu/viewvc.cgi/trunk/lib/Schnuerpel/INN/CancelLock.pm?view=markup&root=schnuerpel
MIME::Base64::encode(
Digest::HMAC_SHA1::hmac_sha1($message_id, $user . CANCEL_LOCK), ''
);
Incidentally, I see that md5 is supported in his implementation.
I therefore believe that md5 should be mentioned in <obs-scheme> and
added in the registry, marked as OBSOLETE.
--
Julien ÉLIE
« La femme ne voit jamais ce que l'on fait pour elle ; elle ne voit
que ce que l'on ne fait pas. » (Georges Courteline)
Technical Details
Message-ID:
<oajhv3$31l$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-mailReferences:
<AABYvbRwKe8AABT3.A1.flnews@WStation5.stz-e.de>Show Full Headers
Complete Article Headers
Message-ID: <oajhv3$31l$1@news.trigofacile.com> Subject: New draft for Cancel-Lock (Calculating the key data) (was: New draft for Cancel-Lock) Date: Sat, 18 Mar 2017 16:00:05 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <AABYvbRwKe8AABT3.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-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 18 Mar 2017 14:58:43 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb08012ff800d5a147f5361f7d5a.ipv6.abo.wanadoo.fr:2a01:cb08:12f:f800:d5a1:47f5:361f:7d5a"; logging-data="3125"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: <AABYvbRwKe8AABT3.A1.flnews@WStation5.stz-e.de> X-Received-Bytes: 2246 X-Received-Body-CRC: 781027639