X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=hfal%2Fhfal-hmac.h;h=62bfca033a0f03c5043cf81caafa69b804f5d54e;hb=b8aa8d06134ce687993cb3148d66ebd86dbf1d6f;hp=8c9b8991f179efe24745e2fe0245abb2360731bf;hpb=924aa320bef6f192feecdb67d209c790bd49ea49;p=avr-crypto-lib.git diff --git a/hfal/hfal-hmac.h b/hfal/hfal-hmac.h index 8c9b899..62bfca0 100644 --- a/hfal/hfal-hmac.h +++ b/hfal/hfal-hmac.h @@ -1,7 +1,7 @@ /* hfal-hmac.h */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,18 +24,18 @@ #include "hashfunction_descriptor.h" typedef struct { - hfdesc_t* desc; + hfdesc_t *desc; void* ctx; void* finctx; } hfhmacgen_ctx_t; -uint8_t hfal_hmac_init(const hfdesc_t* hash_descriptor, hfhmacgen_ctx_t* ctx, const void* key, uint16_t keylength_b); -void hfal_hmac_nextBlock(hfhmacgen_ctx_t* ctx, const void* block); -void hfal_hmac_lastBlock(hfhmacgen_ctx_t* ctx, const void* block, uint16_t length_b); -void hfal_hmac_ctx2mac(void* dest, hfhmacgen_ctx_t* ctx); -void hfal_hmac_free(hfhmacgen_ctx_t* ctx); -void hfal_hmac_mem(const hfdesc_t* hash_descriptor, const void* key, uint16_t keylength_b, void* dest, const void* msg, uint32_t length_b); -uint16_t hfal_hmac_getBlocksize(const hfdesc_t* hash_descriptor); -uint16_t hfal_hmac_getMACsize(const hfdesc_t* hash_descriptor); +uint8_t hfal_hmac_init(const hfdesc_t *hash_descriptor, hfhmacgen_ctx_t *ctx, const void *key, uint16_t keylength_b); +void hfal_hmac_nextBlock(hfhmacgen_ctx_t *ctx, const void *block); +void hfal_hmac_lastBlock(hfhmacgen_ctx_t *ctx, const void *block, uint16_t length_b); +void hfal_hmac_ctx2mac(void *dest, hfhmacgen_ctx_t *ctx); +void hfal_hmac_free(hfhmacgen_ctx_t *ctx); +void hfal_hmac_mem(const hfdesc_t *hash_descriptor, const void *key, uint16_t keylength_b, void *dest, const void *msg, uint32_t length_b); +uint16_t hfal_hmac_getBlocksize(const hfdesc_t *hash_descriptor); +uint16_t hfal_hmac_getMACsize(const hfdesc_t *hash_descriptor); #endif /* HFAL_HMAC_H_ */