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
-
[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 |
[edit] Cryptographic hash functions
-
[edit] Computational costs of CRCs vs Hashes
Checksum Algorithm |
Relative Cost |
32-bit Adler |
1.00 |
32-bit CRC (IEEE) |
1.46 |
64-bit CRC (ISO) |
2.23 |
128-bit CRC |
2.29 |
128-bit MD4 |
4.48 |
128-bit MD5 |
4.51 |
Note that 128-bit MD4 is 1.96 times as expensive as 128-bit CRC.
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.