]> git.cryptolib.org Git - arm-crypto-lib.git/blobdiff - hfal/hfal-hmac.h
improving present
[arm-crypto-lib.git] / hfal / hfal-hmac.h
index 8c9b8991f179efe24745e2fe0245abb2360731bf..4c1c738c86558fc6b79bd99ae6dcea099d27f46d 100644 (file)
@@ -1,6 +1,6 @@
 /* hfal-hmac.h */
 /*
-    This file is part of the AVR-Crypto-Lib.
+    This file is part of the ARM-Crypto-Lib.
     Copyright (C) 2009  Daniel Otte (daniel.otte@rub.de)
 
     This program is free software: you can redistribute it and/or modify
 #ifndef HFAL_HMAC_H_
 #define HFAL_HMAC_H_
 
-#include <avr/pgmspace.h>
 #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);