]> git.ipfire.org Git - thirdparty/rng-tools.git/commit
rdrand: Simplify by changing x86_rdrand_nlong to x86_rdrand_bytes
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 4 Mar 2014 22:55:38 +0000 (14:55 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 4 Mar 2014 22:55:38 +0000 (14:55 -0800)
commit3164d3ebb3d8feb27ca59d98c53306ab93f476b2
treee5083e514b471a76d092b7690c8f6d24a3684beb
parent0ad21ad0a4d02faf48b5ff94db0ffb7cb43773c2
rdrand: Simplify by changing x86_rdrand_nlong to x86_rdrand_bytes

Make the code simpler by making x86_rdrand_nlong instead take a count
in bytes and return the number of bytes written (the latter will
matter for upcoming RDSEED enabling.)

The function may still round up the size of the output buffer to a 4-
or 8-byte boundary.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
rdrand_asm.S
rngd_rdrand.c