agent.smith
agent.smith

Reputation: 9436

cryptographic functions for 4kB of memory

I am trying to create a checksum for one page of memory. Can anyone suggest a checksum function which is fast and accurate. Surprisingly, I am finding it difficult to find on google. I need to write the function in C.

Thanks

Upvotes: 0

Views: 109

Answers (2)

thkala
thkala

Reputation: 86353

MurmurHash3 is very fast and it has a relatively low collision rate. That said, it's not suitable for the production of cryptography-quality hashes, due to its simplicity.

Upvotes: 0

Chocks
Chocks

Reputation: 26

You could try md5 (http://www.fourmilab.ch/md5/) which is most commonly used or SHA-1 (http://md5deep.sourceforge.net/) which is considered better than md5

Upvotes: 1

Related Questions