X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=xtea%2Fxtea.c;h=27d21dc3b6855a1ff079790ab55368dd42343669;hp=4605cb0ffb4ee64b055ea66351b64779f8ee391f;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=d32eba56ce10ea6b9eff123b50d9842673b38f2b diff --git a/xtea/xtea.c b/xtea/xtea.c index 4605cb0..27d21dc 100644 --- a/xtea/xtea.c +++ b/xtea/xtea.c @@ -1,7 +1,7 @@ /* xtea.c */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008 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 @@ -24,9 +24,8 @@ */ #include - -void xtea_enc(void* dest, const void* v, const void* k) { +void xtea_enc(void *dest, const void *v, const void *k) { uint8_t i; uint32_t v0=((uint32_t*)v)[0], v1=((uint32_t*)v)[1]; uint32_t sum=0, delta=0x9E3779B9; @@ -38,7 +37,7 @@ void xtea_enc(void* dest, const void* v, const void* k) { ((uint32_t*)dest)[0]=v0; ((uint32_t*)dest)[1]=v1; } -void xtea_dec(void* dest, const void* v, const void* k) { +void xtea_dec(void *dest, const void *v, const void *k) { uint8_t i; uint32_t v0=((uint32_t*)v)[0], v1=((uint32_t*)v)[1]; uint32_t sum=0xC6EF3720, delta=0x9E3779B9;