diff options
author | Josh Bailey <joshb@google.com> | 2012-03-21 10:22:19 -0700 |
---|---|---|
committer | Avneesh Sachdev <avneesh@opensourcerouting.org> | 2012-04-07 13:53:22 -0700 |
commit | bed930fd70742af5ae138e0a5ee629dda296ea36 (patch) | |
tree | 38d107117db56d60ce8d136507cc1d79ac2e22dc /lib/md5.h | |
parent | 54dd61227352dd1dd4db4fe76dbf7d2e92522e74 (diff) |
lib: add support for keyed-hashing with MD5
* lib/md5.[ch] Add implementation of HMAC-MD5 from RFC 2104.
From: Josh Bailey <joshb@google.com>
Signed-off-by: Avneesh Sachdev <avneesh@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/md5.h')
-rw-r--r-- | lib/md5.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -82,4 +82,8 @@ do { \ md5_result((x), (y)); \ } while (0) +/* From RFC 2104 */ +void hmac_md5(unsigned char* text, int text_len, unsigned char* key, + int key_len, caddr_t digest); + #endif /* ! _LIBZEBRA_MD5_H_*/ |