X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=twister-small.h;h=ebc27b579cd64b86aa43eacd7d3c01beee611df4;hb=0076b72ccd398bf7571c5144ba36eda8a24f6c70;hp=ca68e359be2fc475c57adf7dfa86e42d0d3b2221;hpb=4469def3e210fc904cfefc5b158fc6d4dc5f6e47;p=avr-crypto-lib.git diff --git a/twister-small.h b/twister-small.h index ca68e35..ebc27b5 100644 --- a/twister-small.h +++ b/twister-small.h @@ -3,6 +3,7 @@ #ifndef TWISTER_SMALL_H_ #define TWISTER_SMALL_H_ +#include #include "twister.h" typedef uint8_t twister256_hash_t[256/8]; @@ -11,10 +12,10 @@ typedef uint8_t twister224_hash_t[224/8]; typedef twister_state_t twister256_ctx_t; typedef twister_state_t twister224_ctx_t; -void twister_small_nextBlock(twister_state_t* ctx, void* msg); void twister_small_init(twister_state_t* ctx, uint16_t hashsize_b); void twister_small_lastBlock(twister_state_t* ctx, void* msg, uint16_t length_b); -void twister_small_ctx2hash(void* dest, twister256_ctx_t* ctx, uint16_t hashsize_b); +void twister_small_ctx2hash(void* dest, twister_state_t* ctx, uint16_t hashsize_b); +void twister_small_nextBlock(twister_state_t* ctx, void* msg); void twister256_init(twister256_ctx_t* ctx);