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

Stephan Müller smueller at chronox.de
Mon Dec 5 15:16:41 CET 2016


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?

Thanks

Ciao
Stephan



More information about the Gcrypt-devel mailing list