From bed930fd70742af5ae138e0a5ee629dda296ea36 Mon Sep 17 00:00:00 2001 From: Josh Bailey Date: Wed, 21 Mar 2012 10:22:19 -0700 Subject: lib: add support for keyed-hashing with MD5 * lib/md5.[ch] Add implementation of HMAC-MD5 from RFC 2104. From: Josh Bailey Signed-off-by: Avneesh Sachdev Signed-off-by: David Lamparter --- lib/md5.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/md5.h') 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_*/ -- cgit v1.2.1