X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;ds=sidebyside;f=bcal-cfb_bit.h;h=df62e174ba5dabbfa4f8b3383b2630b4c5c7c647;hb=b3be51454f16d582e7a8c7b7468fc2d600177f06;hp=01cc69fc017243a57ec43a94c153e88a2098091a;hpb=3790ef3b40efb6649a517144f3089aba564ca541;p=avr-crypto-lib.git
diff --git a/bcal-cfb_bit.h b/bcal-cfb_bit.h
index 01cc69f..df62e17 100644
--- a/bcal-cfb_bit.h
+++ b/bcal-cfb_bit.h
@@ -17,6 +17,10 @@
along with this program. If not, see .
*/
+
+#ifndef BCALCFB_BIT_H_
+#define BCALCFB_BIT_H_
+
#include
#include "bcal-basic.h"
#include "blockcipher_descriptor.h"
@@ -31,7 +35,7 @@ typedef struct{
} bcal_cfb_b_ctx_t;
-uint8_t bcal_cfb_b_init(const bcdesc_t* desc, const void* key, uint16_t keysize, uint16_t size_b, bcal_cfb_b_ctx_t* ctx);
+uint8_t bcal_cfb_b_init(const bcdesc_t* desc, const void* key, uint16_t keysize_b, uint16_t size_b, bcal_cfb_b_ctx_t* ctx);
void bcal_cfb_b_free(bcal_cfb_b_ctx_t* ctx);
void bcal_cfb_b_loadIV(const void* iv, bcal_cfb_b_ctx_t* ctx);
void bcal_cfb_b_encNext(void* block, uint8_t offset, bcal_cfb_b_ctx_t* ctx);
@@ -39,3 +43,5 @@ void bcal_cfb_b_decNext(void* block, uint8_t offset, bcal_cfb_b_ctx_t* ctx);
void bcal_cfb_b_encMsg(const void* iv, void* msg, uint8_t offset, uint32_t msg_blocks, bcal_cfb_b_ctx_t* ctx);
void bcal_cfb_b_decMsg(const void* iv, void* msg, uint8_t offset, uint32_t msg_blocks, bcal_cfb_b_ctx_t* ctx);
+
+#endif /* BCALCFB_BIT_H_ */