|
Message-ID: <CAPLrYEQ9_hQWir87J+t+w=c8Q0p-VEGrw762QzBMSwDXoRVe-A@mail.gmail.com> Date: Wed, 28 Jan 2015 20:33:59 +0100 From: Daniel Cegiełka <daniel.cegielka@...il.com> To: musl@...ts.openwall.com Subject: Re: getrandom syscall 2015-01-28 20:17 GMT+01:00 Rich Felker <dalias@...c.org>: > On Wed, Jan 28, 2015 at 11:43:17AM -0600, Brent Cook wrote: >> Here is the wrapper in LibreSSL for getrandom, to hopefully lend to >> the discussion: >> >> https://github.com/libressl-portable/openbsd/blob/master/src/lib/libcrypto/crypto/getentropy_linux.c#L194 > > This version is failing to set errno when rejecting len>256, which > looks bad. http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man2/getentropy.2?query=getentropy&sec=2 linux getrandom() is not limited to 256 bytes, but len>256 bytes is problematic. Very similar and so different :) Daniel > Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.