EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
hash.h
Go to the documentation of this file.
1 
11 #include <stddef.h>
12 #include <stdint.h>
13 
14 #ifndef HASH_H
15 #define HASH_H
16 
24 uint32_t md_hash(const char *msg, size_t length);
25 
34 uint32_t sdbm_hash(const uint8_t *msg, size_t length);
35 #endif
uint32_t sdbm_hash(const uint8_t *msg, size_t length)
Computes the sdbm (a public-domain reimplementation of ndbm) http://www.cse.yorku....
Definition: hash.c:39
uint32_t md_hash(const char *msg, size_t length)
Computes the Merkle–Damgård construction hash for a message.
Definition: hash.c:17