From 00b7eb605c2114f86b75d78954f0fd02902acb4c Mon Sep 17 00:00:00 2001 From: bg Date: Tue, 30 Dec 2008 13:46:17 +0000 Subject: [PATCH] fixing bug in noekeon.c --- noekeon.c | 2 +- twister-big.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/noekeon.c b/noekeon.c index f5f5299..8a4c23a 100644 --- a/noekeon.c +++ b/noekeon.c @@ -93,9 +93,9 @@ void noekeon_round(uint32_t* key, uint32_t* state, uint8_t const1, uint8_t const ((uint8_t*)state)[RC_POS] ^= const1; theta(key, state); ((uint8_t*)state)[RC_POS] ^= const2; + pi1(state); gamma(state); pi2(state); - pi1(state); } uint8_t rc_tab[] diff --git a/twister-big.c b/twister-big.c index 5139bdc..b0a6fd3 100644 --- a/twister-big.c +++ b/twister-big.c @@ -1,4 +1,21 @@ /* twister-big.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 . +*/ #include #include -- 2.39.5