🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Peter Fairbrother Fri, 15 Mar 2002 08:01
Re: Cancelling usenet messages in a reliable way (a proposal) - Final :)
#57239
Author: Peter Fairbrother
Date: Fri, 15 Mar 2002 08:01
120 lines
5944 bytes
Sorry to top-post, but I can't make out what you're doing. Can you explain
simply, without all the details? At a glance this protocol seems flawed, but
maybe I missed something.

What's wrong with relying on the difficulty of finding hash collisions? You
obviously aren't a cryptographer, that's ok, but most if not all of us would
say that can be about as secure as you can get (anent otp, which isn't
relevant here), and is certainly secure enough for this use if properly
implemented (I don't know anything about cancel-locks though).

I also don't understand why you would want to cancel Usenet messages (ok,
I've posted messages and within seconds of doing so realised I making a
fool/pest of myself, but they have been seen and archived by then). Further,
are you going to ask Usenet servers to add code to do this? I can't see why
they would.

Please cc any replies, as I don't read this newsgroup.

-- Peter Fairbrother


Alex Birj  wrote

> I thought that another modification of the original scheme also makes sense
> since enforcing using message-id may be not acceptable (e.g. some servers may
> want to generate message-ids themselves).
>
> I'm not sure there are no flaws in the scheme so I crossposting the message to
> sci.crypt, maybe someone could check it out (the original message is appended,
> in the thread someone pointed me out to cancel-locks but I found out they are
> using different approach - relying on the difficulty to find hash collisions
> that doesn't look to me safe enough especially if we can come out with a much
> more safe method).
> 
> The only problem is keeping key for every message, that is how it can be
> avoided (no using hash algorithms at all):
> 
> First lets us use 128 bit (16 byte) ciphers. All what I had originally said
> remains true.
> 
> The small trick to avoid keeping the key.
> 
> We'll just keep reusable randomly generated 16 byte "password", so we when we
> generate random text - we just encrypt the random text with the password to
> get 
> the symmetric key).
> 
> We use the symmetric key to encrypt the random text to get the ciphertext.
> 
> When we want to issue cancel - we can easily get the key again from the random
> text (in the message) and our "password".
> 
> Probably we can use both variants of the scheme by separating headers:
> 
> Cancel-ID: <ciphertext>
> Cancel-Rand: <text>
> 
> When Cancel-Rand is present - the newsreader/server will just use it,
> otherwise 
> it will calculate it from the message-id like I described in my other message:
> 
> text=MD5(function1(message-id))
> 
> key=RC5(MD5(function2(message-id)))
> (RC5 is invoked with the 16 byte "password" as the encryption key).
> 
> function1 is message-id+padding1
> 
> function2 is message-id+padding2
> 
> padding1 and padding2 are predefined sequences 24 byte length.
> 
> Alex Birj <alexande_nospam@tx.technion.ac.il> wrote:
>> Some considerations about cancelling Usenet messages:
>> 
>> I think Usenet need simple mechanism to support verifyable cancels that will
>> force servers to cancel messages, I have a simple solution (should be
>> supported 
>> on the server side) that will be achieved by adding a relatively short header
>> field using symmetric cipher. Currently many servers don't support cancels
>> because of possible forged cancels.
>> 
>> The scheme is the following:
>> 
>> for every posted message a random symmetric key is generated and kept by
>> newsreader or written to a file.
>> 
>> random text is generated and encrypted with the key
>> 
>> length of the text=length of the key=symmetric cipher block length
>> 
>> then cancel id is generated from the base64th ciphertext+text (concatenation)
>> 
>> Cancel-ID: Base64(concatenation(ciphertext,text)) [Algorithm]
>> 
>> Default symmetric cipher algorithm may be RC5, but it would be possible to
>> add 
>> other algorithm by defining its name explicitly.
>> 
>> When we want to cancel the message we should add the header:
>> 
>> Cancel-Key: Base64(key) [Algorithm]
>> 
>> the server will decrypt the ciphertext with the key and compare with the text
>> if they coincide the cancel is approved.
>> also message-id is compared.
>> 
>> Currently it is quite safe to use 64bit key, the weakened RC5 challenge
>> stands 
>> since 1997 unsolved, it is also possible to use 128bit keys
>> that are currently used for high-grade secure connections.
>> 
>> with 64 bit key 8+8=16 bytes will be encoded to 22 bytes base-64, for 128bit
>> key - 44 bytes.
>> 
>> Alex
>> 
> 

Re: Cancelling usenet messages in a reliable way (a proposal) - Final :)
#57246
Author: Alex Birj
Date: Fri, 15 Mar 2002 11:48
75 lines
4308 bytes
ok, the last time (but I don't care, if one wants cancel locks I would agree to 
cancel locks, just we should check whether SHA is resilient to find collision 
attacks in the long term - I don't know, but I'm more sure about ciphers)  - I 
just want to see a kind of this option some time in the future.

First a random 16 byte password is generated that can be reused, it is your 
personal 128 bit RC5 symmetric key.

The idea is simple - to add to the article headers containing text and 
ciphertext, and to send a symmetric key to verify the cancel (the server will 
apply the key to the text and will compare result with the ciphertext, the task 
of breaking this would amount to breaking the cipher itself since it is one to 
one function, just a permutation, if you find a 'collision' - you have the key 
- I mean when block size=key size, just we take block size 16 bytes).

To do all that - first we generate 16 bytes of random text (on per post basis)

The question is then what symmetric key we will use to produce the ciphertext.

We just encrypt the random text with our personal symmetric key to get the 
symmetric key for this specific article.

Then we will encrypt the text with the symmetric key we've just produced and 
thus we got the ciphertext.

Now we add among posted article headers:

Cancel-Rand: our original random text
Cancel-ID: our ciphertext

Now suppose we want to cancel the article.

In the exactly same way we can easily produce the symmetric key from the random 
text from article headers with the help of our personal symmetric key.

Then among control cancel headers we will add:

Cancel-Key: the symmetric key for the specific article

Now server may apply the key, compare the result and verify that the cancel is 
genuine.

We can omit Cancel-Rand if newsserver doesn't force its message-id (so 
message-ids might be generated by newsreaders).

As the text we will take MD5 hash of message-id+24 originally random bytes that 
are predefined (always the same and known)

MD5 hash has is exactly 16 bytes, so we will use it as the random text in the 
case the Cancel-Rand header is missing (just an agreement to get rid of one 
header and reduce the overhead to only 22 base64 encoded bytes).

Peter Fairbrother <peter.fairbrother@ntlworld.com> wrote:
>Sorry to top-post, but I can't make out what you're doing. Can you explain
>simply, without all the details? At a glance this protocol seems flawed, but
>maybe I missed something.
>
>What's wrong with relying on the difficulty of finding hash collisions? You
>obviously aren't a cryptographer, that's ok, but most if not all of us would
>say that can be about as secure as you can get (anent otp, which isn't
>relevant here), and is certainly secure enough for this use if properly
>implemented (I don't know anything about cancel-locks though).
>
>I also don't understand why you would want to cancel Usenet messages (ok,
>I've posted messages and within seconds of doing so realised I making a
>fool/pest of myself, but they have been seen and archived by then). Further,
>are you going to ask Usenet servers to add code to do this? I can't see why
>they would.
>
>Please cc any replies, as I don't read this newsgroup.
>
>-- Peter Fairbrother
>

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