X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=hmac-sha1.h;h=90c32cd07cd3dc5cb0212793b26dffdefd40aecf;hp=2fdb2432cb7b38769751dc9b40a16dcb1d710301;hb=83d0614d8b17eac97f891f7de2bb3ef265751dea;hpb=fa7a41a129697b6e7dce363060d2265f5fdb93a6 diff --git a/hmac-sha1.h b/hmac-sha1.h index 2fdb243..90c32cd 100644 --- a/hmac-sha1.h +++ b/hmac-sha1.h @@ -1,4 +1,4 @@ -/* hmac-sha256.h */ +/* hmac-sha1.h */ /* This file is part of the AVR-Crypto-Lib. Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) @@ -22,14 +22,14 @@ #include "sha1.h" #define HMACSHA1_BITS SHA1_HASH_BITS -#define HMACSHA1_BYTES ((HMAC_BITS+7)/8) +#define HMACSHA1_BYTES ((HMACSHA1_BITS+7)/8) typedef sha1_ctx_t hmac_sha1_ctx_t; void hmac_sha1_init(hmac_sha1_ctx_t *s, void* key, uint16_t keylength_b); void hmac_sha1_final(hmac_sha1_ctx_t *s, void* key, uint16_t keylength_b); -void hmac_sha1(void* dest, void* key, uint16_t keylength_b, void* msg, uint64_t msglength_b); +void hmac_sha1(void* dest, void* key, uint16_t keylength_b, void* msg, uint32_t msglength_b); #endif /*HMACSHA1_H_*/