X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fnessie_mac_test.h;h=82baea84bde9c8d1724d40fe01b5f6e0ffa6d647;hp=571c0325d4f00542b932fb37479f4546b8585020;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=17332291e15183d71d88ed868275e3cb53917180 diff --git a/test_src/nessie_mac_test.h b/test_src/nessie_mac_test.h index 571c032..82baea8 100644 --- a/test_src/nessie_mac_test.h +++ b/test_src/nessie_mac_test.h @@ -1,7 +1,7 @@ /* nessie_mac_test.h */ /* - This file is part of the This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + This file is part of the AVR-Crypto-Lib. + 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,10 +21,10 @@ #include -typedef void (*nessie_mac_init_fpt)(void* key, uint16_t keysize_b, void* ctx); -typedef void (*nessie_mac_next_fpt)(void* buffer, void* ctx); -typedef void (*nessie_mac_last_fpt)(void* buffer, uint16_t size_b, void* key, uint16_t keysize_b, void* ctx); -typedef void (*nessie_mac_conv_fpt)(void* buffer, void* ctx); +typedef void (*nessie_mac_init_fpt)(void *ctx, const void *key, uint16_t keysize_b); +typedef void (*nessie_mac_next_fpt)(void *ctx, const void *buffer); +typedef void (*nessie_mac_last_fpt)(void *ctx, const void *buffer, uint16_t size_b); +typedef void (*nessie_mac_conv_fpt)(void *buffer, void *ctx); typedef struct nessie_mac_ctx_st{ @@ -32,7 +32,7 @@ typedef struct nessie_mac_ctx_st{ uint16_t keysize_b; uint16_t blocksize_B; uint16_t ctx_size_B; - char* name; + char *name; nessie_mac_init_fpt mac_init; nessie_mac_next_fpt mac_next; nessie_mac_last_fpt mac_last;