X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=rc6%2Frc6.c;h=27d377b911cf61c944f0278d4491abd599899419;hb=b8aa8d06134ce687993cb3148d66ebd86dbf1d6f;hp=ea4d7bb15628e4fb62ff9d0acf054f9edf37cef5;hpb=d32eba56ce10ea6b9eff123b50d9842673b38f2b;p=avr-crypto-lib.git diff --git a/rc6/rc6.c b/rc6/rc6.c index ea4d7bb..27d377b 100644 --- a/rc6/rc6.c +++ b/rc6/rc6.c @@ -1,7 +1,7 @@ /* rc6.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 @@ -46,12 +46,12 @@ uint32_t rotr32(uint32_t a, uint8_t n){ return ( (a>>n)| (a<<(32-n)) ); } -uint8_t rc6_init(void* key, uint16_t keylength_b, rc6_ctx_t *s){ +uint8_t rc6_init(void *key, uint16_t keylength_b, rc6_ctx_t *s){ return rc6_initl(key, keylength_b, 20, s); } -uint8_t rc6_initl(void* key, uint16_t keylength_b, uint8_t rounds, rc6_ctx_t *s){ +uint8_t rc6_initl(void *key, uint16_t keylength_b, uint8_t rounds, rc6_ctx_t *s){ uint8_t i,j; uint16_t v,p,c; uint32_t a,b, l=0; @@ -104,7 +104,7 @@ void rc6_free(rc6_ctx_t *s){ #define C (((uint32_t*)block)[2]) #define D (((uint32_t*)block)[3]) -void rc6_enc(void* block, rc6_ctx_t *s){ +void rc6_enc(void *block, rc6_ctx_t *s){ uint8_t i; uint32_t t,u,x; /* greetings to Linux? */ B += s->S[0]; @@ -124,7 +124,7 @@ void rc6_enc(void* block, rc6_ctx_t *s){ C += s->S[2*s->rounds+3]; } -void rc6_dec(void* block, rc6_ctx_t *s){ +void rc6_dec(void *block, rc6_ctx_t *s){ uint8_t i; uint32_t t,u,x; /* greetings to Linux? */