get_cpu_entropy in strobe.c possibly broken on i386 builds
A 448-bit Edwards curve
Brought to you by:
bitwiseshiftlef
This ticket may be premature as I haven't delved deeply into building on a 32-bit machine, but this issue for erlang-libdecaf made me think that there might be some issues with the i386 implementation for get_cpu_entropy
in strobe.c
.
Yeah, that's a bug, caused by too much copy-pasting. It's harmless except that -Wall -Werror flags it. The problem is that I needed to explicitly cast the pointer to convert it to a
uint32_t *
before storing it into a variable of typeuint32_t *
. But instead I explicitly casted it touint64_t *
. Then the compiler warns on storing it touint32_t *
, and -Werror errors the build.Should be fixed in f102952.