Article View: news.software.nntp
Article #87674Re: New draft for Cancel-Lock (Calculating the key data)
From: Michael Bäuerle
Date: Mon, 27 Mar 2017 16:05
Date: Mon, 27 Mar 2017 16:05
47 lines
2751 bytes
2751 bytes
Julien ÉLIE wrote: > > 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>). Yes, other people have suggested this too. > 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), '' > ); Version 3 now contain the following calculation: | | K = HMAC(uid+mid, sec) I have used <uid> instead of <login> because this looks more similar to <mid> (both are "id"entifiers). I have used concatenation with <mid> instead of <sec>, so that the local secret <sec> is still directly feeded as key into HMAC. In addition <uid> may be easily predictable, if it is e.g. the name of the user. Otherwise the length considerations below in the same section may be confusing. > 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. I have added the registry entry marked OBSOLETE, but not the entry for <obs-scheme>. I think "SHOULD still accept" should not apply to this unused algorithm.
Technical Details
Message-ID:
<AABY2TgsEuAAAAlu.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> <oajhv3$31l$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <AABY2TgsEuAAAAlu.A1.flnews@WStation5.stz-e.de> Subject: Re: New draft for Cancel-Lock (Calculating the key data) Date: Mon, 27 Mar 2017 18:05:00 +0200 From: Michael Bäuerle <michael.baeuerle@stz-e.de> References: <AABYvbRwKe8AABT3.A1.flnews@WStation5.stz-e.de> <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-mail Newsgroups: news.software.nntp Lines: 45 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 lbWvZ+tDIpR4cV3xTHXt6QnReYx9j47dMr6a1EWjm6PPXESo6N X-Orig-Path: not-for-mail Cancel-Lock: sha1:nlsIFc6ZLSABiB42cLABuejQgJk= sha1:MBjZC5CG8WhCusHNYinjj+v2iT4= Injection-Date: Mon, 27 Mar 2017 16:05:00 -0000 User-Agent: flnews/0.15pre8 (for NetBSD) X-Received-Body-CRC: 3794383701 X-Received-Bytes: 2642