X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=noekeon%2Fnoekeon_prng.c;h=319d73b6760fa3285fbb0787bcdf1614315d2943;hp=4e73c7cde91bad353aa327a34c5cff46c2137526;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=b8d6b2bd3ddea45506f584c7d44fe5fff0557ed1 diff --git a/noekeon/noekeon_prng.c b/noekeon/noekeon_prng.c index 4e73c7c..319d73b 100644 --- a/noekeon/noekeon_prng.c +++ b/noekeon/noekeon_prng.c @@ -1,7 +1,7 @@ /* noekeon_prng.c */ /* * This file is part of the AVR-Crypto-Lib. - * Copyright (C) 2006, 2007, 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,7 +46,7 @@ uint8_t random8(void){ return sr[i]; } -void random_block(void* dest){ +void random_block(void *dest){ i=0; noekeon_enc(random_state, random_key); memcpy(dest, random_state, 16); @@ -56,11 +56,11 @@ void srandom32(uint32_t seed){ memcpy(random_key, &seed, 4); } -void random_seed(const void* buffer){ +void random_seed(const void *buffer){ memcpy(random_key, buffer, 16); } -void random_add(const void* buffer){ +void random_add(const void *buffer){ memxor(random_key, buffer, 16); }