d16ceb033e
because this is not a public function and crypt-sha1.c is the only place where it is used (It must have been that way formerly, because there was a stale prototype in crypt.h all the time.) Being here, do some RCSID and prototype cleanup, and add as much "const" as needed to compile these files with WARNS=3.
21 lines
422 B
C
21 lines
422 B
C
/* $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"
|