xref: /netbsd/lib/libcrypt/hmac_sha1.c (revision 6550d01e)
1 /* $NetBSD: hmac_sha1.c,v 1.1 2006/10/27 18:22:56 drochner Exp $ */
2 
3 /*
4  * hmac_sha1 - using HMAC from RFC 2104
5  */
6 
7 #include <sha1.h> /* XXX */
8 #include "crypt.h"
9 
10 #define HMAC_HASH SHA1
11 #define HMAC_FUNC __hmac_sha1
12 #define HMAC_KAT  hmac_kat_sha1
13 
14 #define HASH_LENGTH SHA1_DIGEST_LENGTH
15 #define HASH_CTX SHA1_CTX
16 #define HASH_Init SHA1Init
17 #define HASH_Update SHA1Update
18 #define HASH_Final SHA1Final
19 
20 #include "hmac.c"
21