summaryrefslogtreecommitdiff
path: root/lib/libcrypt/hmac_sha1.c
blob: 2fd463a72aa7ef52a683597f038dc2cf303bac34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* $NetBSD: hmac_sha1.c,v 1.1 2006/10/27 18:22:56 drochner Exp $ */

/*
 * hmac_sha1 - using HMAC from RFC 2104
 */

#include <sha1.h> /* XXX */
#include "crypt.h"

#define HMAC_HASH SHA1
#define HMAC_FUNC __hmac_sha1
#define HMAC_KAT  hmac_kat_sha1

#define HASH_LENGTH SHA1_DIGEST_LENGTH
#define HASH_CTX SHA1_CTX
#define HASH_Init SHA1Init
#define HASH_Update SHA1Update
#define HASH_Final SHA1Final

#include "hmac.c"