[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Hash filename for index



Hi!

On Thu, Jun 08, 2000 at 12:42:17AM +0200, Guido Flohr wrote:
> Comments? Which hash algorithm would be a good choice?

As both MD5 and SHA-1 are already part of the kernel source, one of them
could be used to calculate the hash, taking the first 32 bits of the 128
(160 for SHA-1) bits of the hash for the index.

I don´t know though, how fast these two algorithms actually are, but as
SHA-1 is used frequently for /dev/random to add random data to the
entropy pool, it can´t be that slow.


Ciao

Thomas


-- 
Thomas Binder (Gryf @ IRCNet)  gryf@hrzpub.tu-darmstadt.de
PGP-key available on request!  binder@rbg.informatik.tu-darmstadt.de
Vote against SPAM:             http://www.politik-digital.de/spam/

Attachment: pgpnBM56FWVl9.pgp
Description: PGP signature