X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=hfal%2Fhfal-hmac.h;fp=hfal%2Fhfal-hmac.h;h=4b70b993f388cff986d21374f7c41ba8fc957305;hp=8c9b8991f179efe24745e2fe0245abb2360731bf;hb=3a9f9d918fb95474996af535c225a7e187d88372;hpb=33d65e8032f77c1cbec1bc99e898affc96966c3c diff --git a/hfal/hfal-hmac.h b/hfal/hfal-hmac.h index 8c9b899..4b70b99 100644 --- a/hfal/hfal-hmac.h +++ b/hfal/hfal-hmac.h @@ -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_ */