summaryrefslogtreecommitdiff
path: root/lib/md5.h
diff options
context:
space:
mode:
authorJosh Bailey <joshb@google.com>2012-03-21 10:22:19 -0700
committerAvneesh Sachdev <avneesh@opensourcerouting.org>2012-04-07 13:53:22 -0700
commitbed930fd70742af5ae138e0a5ee629dda296ea36 (patch)
tree38d107117db56d60ce8d136507cc1d79ac2e22dc /lib/md5.h
parent54dd61227352dd1dd4db4fe76dbf7d2e92522e74 (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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/md5.h b/lib/md5.h
index 89b9a320..a03bf22a 100644
--- a/lib/md5.h
+++ b/lib/md5.h
@@ -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_*/