]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - main-camellia-test.c
insereated GPLv3 stub
[avr-crypto-lib.git] / main-camellia-test.c
index f9848d72ba03980b9018610e6b8ab52f2568377d..1c85c2d11aa32e21af1dd6db4989350797c44ad6 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>.
+*/
 /*
  * 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