X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=hfal%2Fhfal-hmac.h;h=4c1c738c86558fc6b79bd99ae6dcea099d27f46d;hb=7390f9235d6bc08b7fe34a5f43a04bd3b58f6ea6;hp=7e7e45604d45036389922435bf5cdcd2f2d06750;hpb=4f19c43af8afeb3c569eb7b4aa15907832cf8e5c;p=arm-crypto-lib.git diff --git a/hfal/hfal-hmac.h b/hfal/hfal-hmac.h index 7e7e456..4c1c738 100644 --- a/hfal/hfal-hmac.h +++ b/hfal/hfal-hmac.h @@ -20,16 +20,16 @@ #ifndef HFAL_HMAC_H_ #define HFAL_HMAC_H_ -#include #include "hashfunction_descriptor.h" typedef struct { - hfdesc_t* desc; + const 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); +uint8_t hfal_hmac_ctxcopy(hfhmacgen_ctx_t* dest, hfhmacgen_ctx_t* src); 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);