From Wikipedia, the free encyclopedia
This is a list of hash functions, including cyclic redundancy checks, checksum functions, and cryptographic hash functions.
[edit] Cyclic redundancy checks
-
Adler-32 is often classified as a CRC, but it uses a different algorithm. For more details, see the Adler-32 article.
[edit] Checksums
-
Name |
Length |
Type |
sum8 |
8 bits |
sum |
sum16 |
16 bits |
sum |
sum24 |
24 bits |
sum |
sum32 |
32 bits |
sum |
xor8 |
8 bits |
sum |
Luhn algorithm |
4 bits |
sum |
[edit] Non-cryptographic hash functions
[edit] Cryptographic hash functions
-
[edit] Computational costs of CRCs vs Hashes
A benchmark of hashes from the free Crypto++ library follows.
There is considerable variation in these numbers depending on CPU type and memory usage. MD4 is considerably slower on big-endian processors than little-endian, whereas CRCs are endian agnostic. CRC algorithms also readily scale in speed with additional memory. CRC32 with 4kb of tables runs in approximately 44% of the time that CRC32 does with 1kb of tables. Most hashes can also have their code unrolled to improve speed at expense of code size, but the effects are less dramatic.