[PATCH] random-drbg: use bufhelp function for big-endian store

Jussi Kivilinna jussi.kivilinna at iki.fi
Mon Dec 5 15:37:03 CET 2016


Hello,

On 05.12.2016 16:16, Stephan Müller wrote:
> Am Montag, 5. Dezember 2016, 16:14:11 CET schrieb Jussi Kivilinna:
> 
> Hi Jussi,
> 
>> * random/random-drbg.c (drbg_cpu_to_be32): Use 'buf_put_be32' instead
>> of 'be_bswap32'.
> 
> Instead of fixing drbg_cpu_to_be32, wouldn't it make more sense to remove 
> drbg_cpu_to_be32 entirely and replace it with buf_put_be32 throughout the 
> code?

Well, it does make more sense :)

-Jussi


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 273 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20161205/ab989271/attachment.sig>


More information about the Gcrypt-devel mailing list