X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=camellia_C.c;h=1eea731e056057170a24adee7d0642ec0674555d;hb=981c5b71dd5c99d080b9f36b0db9a211eeef494f;hp=bff7a32dda4c936d9b3e139fe24e44a3eb4c0ba5;hpb=38806fc75038026e167a26eff90b6111066a3642;p=avr-crypto-lib.git diff --git a/camellia_C.c b/camellia_C.c index bff7a32..1eea731 100644 --- a/camellia_C.c +++ b/camellia_C.c @@ -1,3 +1,21 @@ +/* camellia_C.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 . +*/ /** * * @@ -338,8 +356,8 @@ void camellia128_enc(camellia128_ctx_t* s, void* block){ #define BR (((uint64_t*)block)[1]) /* endian adjustment */ /*BL*/ - /* 1 2 3 4 5 6 7 8 - * 8 7 6 5 4 3 2 1 + /* 1 2 3 4 5 6 7 8 + * 8 7 6 5 4 3 2 1 */ uint64_t temp64; @@ -432,8 +450,8 @@ void camellia128_dec(camellia128_ctx_t* s, void* block){ #define BR (((uint64_t*)block)[0]) /* endian adjustment */ /*BL*/ - /* 1 2 3 4 5 6 7 8 - * 8 7 6 5 4 3 2 1 + /* 1 2 3 4 5 6 7 8 + * 8 7 6 5 4 3 2 1 */ uint64_t temp64;