Article View: alt.privacy.anon-server
Article #234654Re: hsub data format size
From: Zax
Date: Thu, 27 Aug 2009 09:02
Date: Thu, 27 Aug 2009 09:02
103 lines
5973 bytes
5973 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On 26 Aug 2009 18:42:33 -0000, Juvenal wrote in
Message-Id: <T1JDE5L340052.1128819444@reece.net.au>:
> In all cases, there is a matter of what you are using, what is
> convenient to use, what you would want, and finally, what you actually
> need. They may well differ.
Absolutely agree. In this instance my main driver for replacing eSub is
not that it's broken or weaker than another solution, it's just that
it relies on IDEA and I think it's time that even old Type-I got away
from this chain around its neck.
> For reference, the current esub field size is 48 hex characters. I
> will argue that this more than suffices for future needs.
I agree, 48 hex digits is a good size. In terms of the anonymity
granted by Subject Encryption/Hashing, the greatest weakness rests with
it being symmetric. i.e. The party creating the esub/hsub has to know
the same keys as the party decrypting it. For a future system,
asymmetric encryption would be much preferable but that probably renders
the Subject field unsuitable for purpose due to the required length of
the ascii armored asymmetric output.
> For instance, take the case of:
> ( IV | HASH( IV | KEY ) )
> where | stands for concatenation. The purpose of the IV is to make
> all your subjects differ. You don't need, however, to have different
> IVs than others have, so the only issue is how many messages you send.
> If an IV repeats, then your subject repeats. This is probably not a
> disaster, but it would be nice if it did not happen too often. So I
> would suggest that you need at least 32 bits, in order to not have a
> 50% probability of a repeat more often that every 2^16 messages. It
> would take me a while to get 32K messages. Perhaps you might want
> more, like 40 bits. The current size of 64 bits is way past what I
> can imagine anyone needing for a long time.
>
> So I would advocate not expanding the IV size from 8 bytes. If even
> you need more than that as input to some other subsequent primitive,
> then one can take SHA2-512(IV), for instance.
Agree again. 64 bits of IV is sufficient to ensure two message don't
produce the same hsub within a short period of time. Even if this did
happen by some wild fluke, it doesn't really offer an attacker much
beyond knowing two message belong to the same recipient.
> The next part of an esub is IDEA( key, MD5( subject ) ), which it is
> proposed to replace with HASH( IV | key ), which I agree is a good
> thing to change to. Here one is concerned with the messages of
> others, since one will be impacted with false positives (subjects that
> seem to be yours, but are not) when someone else's hsub collides with
> yours.
Even where these false positives occur, it's not a major issue. The
recipient just discovers their keys won't decrypt the message. False
positives can be injected just by copying known Subjects in a.a.m.
> So, given the previous analysis for IV size, a problem occurs
> when the rest of the message pool on a.a.m. reaches a certain size.
> However, I'd argue that even there, a 32 bit field is sufficient for
> about 32K messages, which is about a year's worth of a.a.m. postings.
> The current field size of 32 hex characters (representing 128 bits) is
> appropriately sized for a collision every 2^64 messages, which at the
> current rate of posting would take the next 4 billion years.
>
> As I said at the beginning, I don't think that expanding this field is
> needed.
Yes, the protection afforded by 128 bits is more than sufficent.
> So if one uses, for example SHA2-256, I'd recommend truncating the
> output by taking the first 128 bits. This would avoid any partitioning
> issues that would arise from changing from the esub output format.
I think the implementation can easily allow some flexibility here. The
hsub generation process for Type-I messages should truncate the hash to
128 bits. On the validation side, the number of bits checked should
match however many bits are in the hsub being validated. This allows
for future systems to generate longer output that can be checked with
the same client.
> Finally, its a nit, but I would not call the new construct esha, for
> there is no "e" in it. I'd call it hsub.
Yup, hsub is my preference. I started off calling it esha but that's
quite unsuitable.
Many thanks for your input.
I think that leaves me with the question of 160 bit SHA1 truncated to
128 bits, SHA2-256 truncated to 128 bits or SHA2-512 truncated to 128
bits. As a good compromise between them, my preference is SHA2-256
which grants reasonable future-proofing without the added overhead of
generating SHA2-512 hashes.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEAREKAAYFAkqWS58ACgkQlKZ6CY7Vd0M53gCgs0g4byFsMfzNz0sYHLq8UHfH
VvUAnjFVd8zlRj6KU6jftqqhphYg7hMe
=VGM6
-----END PGP SIGNATURE-----
--
pub 1024D/8ED57743 2003-07-08 Bananasplit Operator
Key fingerprint = 796F 67E0 E890 A0BB BDAE EBB4 94A6 7A09 8ED5 7743
uid Admin <admin.bananasplit.info>
Technical Details
Message-ID:
<slrnh9cisv.qde.admin@fleegle.mixmin.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news.bananasplit.info!not-for-mailReferences:
<T1JDE5L340052.1128819444@reece.net.au>Show Full Headers
Complete Article Headers
Message-ID: <slrnh9cisv.qde.admin@fleegle.mixmin.net> Subject: Re: hsub data format size Date: Thu, 27 Aug 2009 09:02:23 +0000 From: Zax <admin@bananasplit.info> References: <T1JDE5L340052.1128819444@reece.net.au> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news.bananasplit.info!not-for-mail Newsgroups: alt.privacy.anon-server Organization: Bananasplit Lines: 103 X-Complaints-To: abuse@bananasplit.info NNTP-Posting-Date: Thu, 27 Aug 2009 09:02:23 +0000 (UTC) User-Agent: slrn/pre1.0.0-11 (Linux) X-PGP-KeyID: 0x8ED57743