[git] GCRYPT - branch, master, updated. libgcrypt-1.6.0-144-gc2e1f8f

Jussi Kivilinna jussi.kivilinna at iki.fi
Sat Jan 3 09:59:37 CET 2015


On 02.01.2015 17:46, Yuriy Kaminskiy wrote:
> [...]
>> diff --git a/cipher/rmd160.c b/cipher/rmd160.c
>> index e6d02f5..2b1f321 100644
>> --- a/cipher/rmd160.c
>> +++ b/cipher/rmd160.c
>> @@ -411,7 +411,7 @@ _gcry_rmd160_mixblock ( RMD160_CONTEXT *hd, void *blockof64byte )
>>    char *p = blockof64byte;
>>  
>>    transform ( hd, blockof64byte, 1 );
>> -#define X(a) do { *(u32*)p = hd->h##a ; p += 4; } while(0)
>> +#define X(a) do { buf_put_le32(p, hd->h##a); p += 4; } while(0)
>>    X(0);
>>    X(1);
>>    X(2);
> 
> Note that this commit changes result of this function on BE arches (it was
> stored as "native-endian integer" before, it is stored as "little-endian
> integer" now). This function is only used in random-csprng.c, so there should be
> no practical consequences (except it is a tiny bit slower on BE arches now).
> 

Other "#define X(a)" macros did the big/little-endian store so I ended up using
same macro here as for rmd160_final(). I'll make patch to restore native-endianess.

-Jussi

> 
> _______________________________________________
> Gcrypt-devel mailing list
> Gcrypt-devel at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
> 




More information about the Gcrypt-devel mailing list