X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=twister%2Ftwister-small.h;h=e0b10fb16fc0cd5d1d0e9787d6fd0d874020cda3;hp=ca5511950042b11feff207643479b96a374205e2;hb=3a9f9d918fb95474996af535c225a7e187d88372;hpb=33d65e8032f77c1cbec1bc99e898affc96966c3c diff --git a/twister/twister-small.h b/twister/twister-small.h index ca55119..e0b10fb 100644 --- a/twister/twister-small.h +++ b/twister/twister-small.h @@ -12,22 +12,22 @@ 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_init(twister_state_t* ctx, uint16_t hashsize_b); -void twister_small_lastBlock(twister_state_t* ctx, const void* msg, uint16_t length_b); -void twister_small_ctx2hash(void* dest, twister_state_t* ctx, uint16_t hashsize_b); -void twister_small_nextBlock(twister_state_t* ctx, const void* msg); - - -void twister256_init(twister256_ctx_t* ctx); -void twister256_nextBlock(twister256_ctx_t* ctx, const void* msg); -void twister256_lastBlock(twister256_ctx_t* ctx, const void* msg, uint16_t length_b); -void twister256_ctx2hash(void* dest, twister_state_t* ctx); -void twister256(void* dest, const void* msg, uint32_t msg_length_b); - -void twister224_init(twister224_ctx_t* ctx); -void twister224_nextBlock(twister224_ctx_t* ctx, const void* msg); -void twister224_lastBlock(twister224_ctx_t* ctx, const void* msg, uint16_t length_b); -void twister224_ctx2hash(void* dest, twister224_ctx_t* ctx); -void twister224(void* dest, const void* msg, uint32_t msg_length_b); +void twister_small_init(twister_state_t *ctx, uint16_t hashsize_b); +void twister_small_lastBlock(twister_state_t *ctx, const void *msg, uint16_t length_b); +void twister_small_ctx2hash(void *dest, twister_state_t *ctx, uint16_t hashsize_b); +void twister_small_nextBlock(twister_state_t *ctx, const void *msg); + + +void twister256_init(twister256_ctx_t *ctx); +void twister256_nextBlock(twister256_ctx_t *ctx, const void *msg); +void twister256_lastBlock(twister256_ctx_t *ctx, const void *msg, uint16_t length_b); +void twister256_ctx2hash(void *dest, twister_state_t *ctx); +void twister256(void *dest, const void *msg, uint32_t msg_length_b); + +void twister224_init(twister224_ctx_t *ctx); +void twister224_nextBlock(twister224_ctx_t *ctx, const void *msg); +void twister224_lastBlock(twister224_ctx_t *ctx, const void *msg, uint16_t length_b); +void twister224_ctx2hash(void *dest, twister224_ctx_t *ctx); +void twister224(void *dest, const void *msg, uint32_t msg_length_b); #endif /* TWISTER_SMALL_H_ */