Re: safety of blindly truncating hashes (Re: TEA)

New Message Reply About this list Date view Thread view Subject view Author view

Adam Back (aba@dcs.ex.ac.uk)
Fri, 3 Jul 1998 09:55:01 +0100


> Adam Back wrote:
> > I think discarding from the right is as good as mixing the bits back
> > in with xor for SHA1. The right is where people would I think
> > normally remove bits from anyway, because it is easier to code.
>
> Eh? OK, memcpy(x,y,n) is marginally easier than memcpy(x,y+m,n) but not
> enough of a difference that anyone is going to seriously make a choice
> on that basis, surely?

I was thinking of memcmp(x,y,n) -- would you code that memcmp(x,y+m,n)?

I think it is probably more that normally to "truncate" means to
remove from the end, so people would be more likely to do this.
Neither is hard to code.

Adam


New Message Reply About this list Date view Thread view Subject view Author view

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

The following archive was created by hippie-mail 7.98617-22 on Fri Aug 21 1998 - 17:20:05 ADT