X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=skein%2Fthreefish512_dec.c;h=38341137b8cafd5f3cf00de9cbf44a6b05f8902d;hb=d9352fc79fbdee0cf3288809b104ea196ea85693;hp=31e11af188b3558836043051b7a8839fc9037ef8;hpb=bd9d6731486cac11f6b294b3c84681eb65947f3d;p=avr-crypto-lib.git diff --git a/skein/threefish512_dec.c b/skein/threefish512_dec.c index 31e11af..3834113 100644 --- a/skein/threefish512_dec.c +++ b/skein/threefish512_dec.c @@ -1,7 +1,7 @@ /* threefish512_dec.c */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2009 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 @@ -18,7 +18,7 @@ */ /* * \author Daniel Otte - * \email daniel.otte@rub.de + * \email bg@nerilex.org * \date 2009-03-22 * \license GPLv3 or later * @@ -35,7 +35,7 @@ static -void permute_inv8(void* data){ +void permute_inv8(void *data){ uint64_t t; t = X(6); X(6) = X(4); @@ -48,7 +48,7 @@ void permute_inv8(void* data){ } static -void add_key_8(void* data, const threefish512_ctx_t* ctx, uint8_t s){ +void add_key_8(void *data, const threefish512_ctx_t *ctx, uint8_t s){ uint8_t i; for(i=0; i<5; ++i){ X(i) -= ctx->k[(s+i)%9]; @@ -58,7 +58,7 @@ void add_key_8(void* data, const threefish512_ctx_t* ctx, uint8_t s){ X(7) -= ctx->k[(s+7)%9] + s; } -void threefish512_dec(void* data, const threefish512_ctx_t* ctx){ +void threefish512_dec(void *data, const threefish512_ctx_t *ctx){ uint8_t i=0,s=18; /* old round constants uint8_t r0[8] = {33, 29, 39, 33, 26, 34, 48, 38};