🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Snowhare Sat, 17 May 1997 00:00
Re: Authenticated cancels (was Re: Rick Buchanan is lying again (Was: Retromoderation in alt.smokers.cigars))
#17831
Author: Snowhare
Date: Sat, 17 May 1997 00:00
110 lines
6215 bytes
-----BEGIN PGP SIGNED MESSAGE-----

Nothing above this line is part of the signed message.

In article <337DC805.ED3B3A48@synapse.net>,
Evan Champion  <evanc@synapse.net> wrote:
>Howard Goldstein wrote:
>> One legitimate criticism of the authenticated cancel schemes is the
>> processing load to be borne by the newsserver.  To help ameliorate
>> this concern one or a series of central servers could be commissioned
>> to received signed cancels say by posting in an open newsgroup,
>> authenticate them, and emit a bunch collected over some smallish
>> period of time in a NoCeM article to be processed by ncmspool.  This
>> core idea was mentioned by someone else many months ago; if that
>> person is still here s/he might drop in to take credit for it.
>
>I disagree that authenticated cancel schemes would cause an unbearable
>processing load on news servers.
>
>Of course, it will cause additional work, however news servers are
>typically extremely I/O bound and have plenty of CPU available.  The
>time to verify a signature is extremely small in the grand scheme of
>things.

True. The basic 'double hash' authentication scheme should not overload a
news server - particularly since *individual's* self-cancels are a very
small fraction of the cancel traffic now and since the basic
cryptographically secure hashes under consideration are *designed* to be
very fast. With NOCEMs for spam fighting (and other specific jobs like
expiring ClariNet articles) and authenticated cancels for cancelling your
own articles, I would think the overall load would in fact drop
substantially since the number of actual *cancel messages* being accepted
would be slashed by at least one order of magnitude (maybe two orders). 

Lets see.... Just for information purposes, here is what the experts over
at sci.crypt felt would be an adequate 'keyed hash' type function for use
in authenticated cancels (quoting from an email from Jerry Leichter he
sent last year to me): 

(Begin quoted material)

        4.  Finally, what you've been considering:  Use a known, widely-
                implemented "secure hash function" and "key" it to
                produce a MAC.  The common constructions (key in front,
                key at end, key at both ends, etc.) range in security
                from terrible to poor to completely unknown (except, of
                course, in BS - Bernstein Space, an alternate reality in
                which "known, widely-implemented secure hash function" 
                is defined as "something that gives you the properties
                you want *right now*".)

                The best security guarantees known are for HMAC,
                defined as follows:

                HMAC(K,X) = H(K^OPAD + H(K^IPAD + X))

                where:

                        H is a cryptographic hash function, most
                                likely MD5 or SHA-1.
                        ^ is XOR
                        + is concatenation (lower precedence than ^)
                        OPAD, IPAD are different constants with length
                                equal to the block size of H - 512 bits
                                for both MD5 and SHA-1.  The designers
                                of HMAC (Bellare, Canetti, and Krawczyk)
                                suggest OPAD be 64 copies of Hex(36)
                                and IPAD be 64 copies of Hex(5C).       
                                (Other values will work, but don't 
                                change them without reading the paper.)
                        K is the secret key, up to one block in length,
                                padded as required to one full block by
                                adding 0 bits.

                It's not quite the case that "if MD5 (SHA-1) is secure,         
                then HMAC built upon them is secure", but the additional
                assumptions beyond the standard ones on MD5 (SHA-1)
                are weak and appear reasonable.  This puts HMAC in a
                stronger position than the other common proposals.
 
If you're going to use a MAC based on a standard cryptographic hash
function, you might as well use HMAC.  It's the current "best known"
technique along these lines, and is as easy to implement and about as
fast as any other such technique.  (*Any* technique you use will
certainly have to run the underlying hash function over the entire
message.  For all but very short messages, the additional work in HMAC -
hashing two more blocks - is minimal.  Of course, you don't actually
need to do the concatenations in the definition - just feed that data in
as additional blocks to the hash function.)

For *real* security and performance, a MAC "designed from the ground up"
is, and will almost certainly remain, the way to go.  For the purpose at
hand, however, HMAC should be quite secure enough.

(End quoted material)

Benjamin Franz

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBM33poejpikN3V52xAQH0WAP/W7NTQB8eaQYWnqTSj09QIEcwmgcMRTej
LbmofTUs9/sSMHqHLkw2LDBQ2x9sAs6HkEm/QLu6sYmSRrb2m6owTScDUZ4kTLtW
6hYGfCBJ5vjqssKnmQCyOBguQ2M6ZifC9NnnERv7kPqz4UFHgoAfL+MydxDZuIkh
Qps0KvDa/lg=
=HQFA
-----END PGP SIGNATURE-----

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads