On 2014-12-01 14:34, Alex Elsayed wrote: > Alex Elsayed wrote: > >> * He was comparing CRC32 (a 32-bit non-cryptographic hash, *via the Crypto >> API*) against SHA-1 (a 128-bit cryptographic hash, via the Crypto API), >> and SHA-1 _still_ won. CRC32 tends to beat the pants off 128-bit non- >> cryptographic hashes simply because those require multiple registers to >> store the state if nothing else; which makes this a rather strong argument >> that _hardware matters a heck of a lot_, quite possibly _more_ than the >> algorithm. > > Ah, correction - it seems he was comparing his own implementations, rather > than the Crypto API ones - but the points still hold, seeing as the Crypto > API does provide both algorithms. Actually, I did the tests using the userspace interface to the kernel's Crypto API.