X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fnessie_hash_test.c;h=afcd7aeb79bad0f02ef9524ba1372e196c7aea7b;hp=f112f4c229dabb842a5aee9d0a7ad60a7cea99bf;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=a45c328791dc391e6432051ee0c7972ef7fd8d9a diff --git a/test_src/nessie_hash_test.c b/test_src/nessie_hash_test.c index f112f4c..afcd7ae 100644 --- a/test_src/nessie_hash_test.c +++ b/test_src/nessie_hash_test.c @@ -1,7 +1,7 @@ /* nessie_hash_test.c */ /* 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 @@ -19,7 +19,7 @@ /** * * author: Daniel Otte - * email: daniel.otte@rub.de + * email: bg@nerilex.org * license: GPLv3 * * a suit for running the nessie-tests for hashes @@ -112,7 +112,7 @@ void one_in512_hash(uint16_t pos){ uint8_t hash[(nessie_hash_ctx.hashsize_b+7)/8]; uint8_t block[nessie_hash_ctx.blocksize_B]; uint16_t n=512; - char* tab[8] = { "80", "40", "20", "10", + char *tab[8] = { "80", "40", "20", "10", "08", "04", "02", "01" }; pos&=511; @@ -184,7 +184,7 @@ void nessie_hash_run(void){ nessie_print_header(nessie_hash_ctx.name, 0, 0, nessie_hash_ctx.hashsize_b, 0, 0); /* test set 1 */ - const char* challange_dbz= PSTR( + const char *challange_dbz= PSTR( "\0" "\"\" (empty string)\0" "a\0"