blob: 75d99ec29068e31bccfb6bd2d3f4e5ff56a56786 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef CRYPTO_H
#define CRYPTO_H
/* mhash
*
* produce a weak 32 bit hash value from a memory block at `src'. use `len'
* bytes from it to compute the hash value. it has no strong properties, but
* is sufficient for simple stuff. the hash value is also dependant on the
* `len' parameter.
*
* XXX: the memory block to be hashed should be at least 8 bytes long for the
* hash to be sufficient !
*
* return hash value in any case
*/
unsigned int
mhash (unsigned char *src, unsigned int len);
#endif
|