X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fnessie_hash_test.h;h=641c47dfd16b2566a4d2f20cbe38bcd99e32b2bf;hp=eb9293db6fde03f150829377af390641e7cafc21;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=572b35bb7409fb362441e0812cb62eab9f2411f0 diff --git a/test_src/nessie_hash_test.h b/test_src/nessie_hash_test.h index eb9293d..641c47d 100644 --- a/test_src/nessie_hash_test.h +++ b/test_src/nessie_hash_test.h @@ -1,7 +1,7 @@ /* nessie_hash_test.h */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,17 +21,17 @@ #include -typedef void (*nessie_hash_init_fpt)(void* ctx); -typedef void (*nessie_hash_next_fpt)(void* buffer, void* ctx); -typedef void (*nessie_hash_last_fpt)(void* buffer, uint16_t size_b, void* ctx); -typedef void (*nessie_hash_conv_fpt)(void* buffer, void* ctx); +typedef void (*nessie_hash_init_fpt)(void *ctx); +typedef void (*nessie_hash_next_fpt)(void *ctx, const void *buffer); +typedef void (*nessie_hash_last_fpt)(void *ctx, const void *buffer, uint16_t size_b); +typedef void (*nessie_hash_conv_fpt)(void *buffer, void *ctx); typedef struct nessie_hash_ctx_st{ uint16_t hashsize_b; uint16_t blocksize_B; uint16_t ctx_size_B; - char* name; + char *name; nessie_hash_init_fpt hash_init; nessie_hash_next_fpt hash_next; nessie_hash_last_fpt hash_last; @@ -40,7 +40,7 @@ typedef struct nessie_hash_ctx_st{ extern nessie_hash_ctx_t nessie_hash_ctx; - +extern uint8_t nessie_hash_quick; void nessie_hash_run(void); #endif /*NESSIE_HASH_TEST_H_*/