X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=mgf1%2Fmgf1.c;h=0a090b1c4f2a77eeabef5f4588afd75b14551ee2;hp=bdbf1ea51c460225b47a33283144c692f4fbbcee;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=e1212ded3556546a568954bedc887fddcb128183 diff --git a/mgf1/mgf1.c b/mgf1/mgf1.c index bdbf1ea..0a090b1 100644 --- a/mgf1/mgf1.c +++ b/mgf1/mgf1.c @@ -1,7 +1,7 @@ /* mgf1.c */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2010 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 @@ -27,7 +27,7 @@ */ -void mgf1_short_seed(void* dest, const void* seed, uint8_t seed_len_B, uint16_t out_length_B, const mgf1_parameter_t* p){ +void mgf1_short_seed(void *dest, const void *seed, uint8_t seed_len_B, uint16_t out_length_B, const mgf1_parameter_t *p){ uint8_t buffer[seed_len_B+4]; uint32_t counter=1; uint8_t hv_len = hfal_hash_getHashsize(p->hashfunction)/8; @@ -50,6 +50,6 @@ void mgf1_short_seed(void* dest, const void* seed, uint8_t seed_len_B, uint16_t } } -void mgf1(void* dest, const void* seed, uint16_t seed_len_B, uint16_t out_length_B, const mgf1_parameter_t* p){ +void mgf1(void *dest, const void *seed, uint16_t seed_len_B, uint16_t out_length_B, const mgf1_parameter_t *p){ mgf1_short_seed(dest, seed, seed_len_B, out_length_B, p); }