X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fmain-skipjack-test.c;h=d95d9eb03b9194bf71603ad0ef0144cbaf7d3176;hp=0d2fe022e47a5a16417900bb2ff802e09356fa00;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=a45c328791dc391e6432051ee0c7972ef7fd8d9a diff --git a/test_src/main-skipjack-test.c b/test_src/main-skipjack-test.c index 0d2fe02..d95d9eb 100644 --- a/test_src/main-skipjack-test.c +++ b/test_src/main-skipjack-test.c @@ -1,7 +1,7 @@ /* main-skipjack-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 @@ -30,16 +30,16 @@ #include "bcal-nessie.h" #include "bcal_skipjack.h" -char* algo_name = "Skipjack"; +char *algo_name = "Skipjack"; -const bcdesc_t* const algolist[] PROGMEM = { +const bcdesc_t *const algolist[] PROGMEM = { (bcdesc_t*)&skipjack_desc, NULL }; /***************************************************************************** * additional validation-functions * *****************************************************************************/ -void skipjack_genctx_dummy(uint8_t* key, uint16_t keysize, void* ctx){ +void skipjack_genctx_dummy(uint8_t *key, uint16_t keysize, void *ctx){ memcpy(ctx, key, 10); } @@ -52,7 +52,7 @@ void testrun_performance_skipjack(void){ bcal_performance_multiple(algolist); } -int test_enc(const void* buffer, void* key){ +int test_enc(const void *buffer, void *key){ uint8_t data[8]; int r; memcpy(data, buffer, 8); @@ -104,7 +104,7 @@ void testrun_nist_vectors(void){ * self tests * *****************************************************************************/ -void testencrypt(uint8_t* block, uint8_t* key){ +void testencrypt(uint8_t *block, uint8_t *key){ cli_putstr("\r\n==testy-encrypt==\r\n key: "); cli_hexdump(key,10); cli_putstr("\r\n plain: "); @@ -114,7 +114,7 @@ void testencrypt(uint8_t* block, uint8_t* key){ cli_hexdump(block,8); } -void testdecrypt(uint8_t* block, uint8_t* key){ +void testdecrypt(uint8_t *block, uint8_t *key){ cli_putstr("\r\n==testy-decrypt==\r\n key: "); cli_hexdump(key,10); cli_putstr("\r\n crypt: ");