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>
diff --git a/lib/md5.h b/lib/md5.h
index 89b9a32..a03bf22 100644
--- a/lib/md5.h
+++ b/lib/md5.h
@@ -82,4 +82,8 @@
 	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_*/