X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;ds=sidebyside;f=main-camellia-test.c;h=1c85c2d11aa32e21af1dd6db4989350797c44ad6;hb=96ebafd201c9e8441c7677577b24aa402c1defc6;hp=f9848d72ba03980b9018610e6b8ab52f2568377d;hpb=38806fc75038026e167a26eff90b6111066a3642;p=avr-crypto-lib.git diff --git a/main-camellia-test.c b/main-camellia-test.c index f9848d7..1c85c2d 100644 --- a/main-camellia-test.c +++ b/main-camellia-test.c @@ -1,3 +1,21 @@ +/* main-camellia-test.c */ +/* + This file is part of the Crypto-avr-lib/microcrypt-lib. + Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + + 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 + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ /* * camellia test-suit * @@ -111,7 +129,7 @@ prog_uint8_t ntt_test_values_out[16] = { 0x67, 0x67, 0x31, 0x38, 0x54, 0x96, 0x69, 0x73, 0x08, 0x57, 0x06, 0x56, 0x48, 0xea, 0xbe, 0x43 }; - +/* memcmp_P() is now implemented in avr-libc int memcmp_P(const void *s1, PGM_P s2, size_t n){ uint8_t b; while(n--){ @@ -122,7 +140,7 @@ int memcmp_P(const void *s1, PGM_P s2, size_t n){ } return 0; } - +*/ void testrun_camellia(void){ /* we run the NESSIE test for Camellia here see * https://www.cosic.esat.kuleuven.be/nessie/testvectors/bc/camellia/Camellia-128-128.verified.test-vectors