]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/main-bmw-test.c
fixing E-Mail-Address & Copyright
[avr-crypto-lib.git] / test_src / main-bmw-test.c
index 18d91a68ff3cc891c79fafeb751335b6f60f4a3e..7046a553876066e7b141e3ee6cf1e3e561f76377 100644 (file)
@@ -1,7 +1,7 @@
 /* main-bmw-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
 #include "hfal-test.h"
 #include "performance_test.h"
 
-charalgo_name = "BlueMidnightWish";
+char *algo_name = "BlueMidnightWish";
 
 
-const hfdesc_tconst algolist[] PROGMEM = {
+const hfdesc_t *const algolist[] PROGMEM = {
        (hfdesc_t*)&bmw224_desc,
        (hfdesc_t*)&bmw256_desc,
        (hfdesc_t*)&bmw384_desc,
@@ -58,18 +58,18 @@ void testrun_nessie_bmw(void){
        hfal_nessie_multiple(algolist);
 }
 
-void bmw224_test(voidmsg, uint32_t length_b){
+void bmw224_test(void *msg, uint32_t length_b){
        hfal_test(&bmw224_desc, msg, length_b);
 }
 
-void bmw256_test(voidmsg, uint32_t length_b){
+void bmw256_test(void *msg, uint32_t length_b){
        hfal_test(&bmw256_desc, msg, length_b);
 }
-void bmw384_test(voidmsg, uint32_t length_b){
+void bmw384_test(void *msg, uint32_t length_b){
        hfal_test(&bmw384_desc, msg, length_b);
 }
 
-void bmw512_test(voidmsg, uint32_t length_b){
+void bmw512_test(void *msg, uint32_t length_b){
        hfal_test(&bmw512_desc, msg, length_b);
 }
 
@@ -102,8 +102,8 @@ void test507(void){
 }
 
 void testrun_stdtest_bmw(void){
-       charmsg0 = "abc";
-       charmsg1 = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq";
+       char *msg0 = "abc";
+       char *msg1 = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq";
        bmw224_test(msg0, strlen(msg0)*8);
        bmw224_test(msg1, strlen(msg1)*8);
        bmw256_test(msg0, strlen(msg0)*8);
@@ -114,18 +114,18 @@ void testrun_stdtest_bmw(void){
        bmw512_test(msg1, strlen(msg1)*8);
 }
 
-void bmw256_short_test(voidmsg, uint32_t length_b){
+void bmw256_short_test(void *msg, uint32_t length_b){
        bmw256_test("abc", 3*8);
 }
 
 
 void testshort(void){
-       charmsg0 = "abc";
+       char *msg0 = "abc";
        bmw224_test(msg0, strlen(msg0)*8);
 }
 
 void testlshort(void){
-       charmsg0 = "abc";
+       char *msg0 = "abc";
        bmw384_test(msg0, strlen(msg0)*8);
 }