Skip to Content [alt-c]

Andrew Ayer

Sections

LibreSSL's PRNG is Unsafe on Linux [Update: LibreSSL fork fix]

Comment by Andrew Ayer

Posted in reply to Comment by Reader Nix.

This comment is owned by whoever posted it. I am not responsible for it in any way.

I had a feeling it was mlock(), but I couldn't think of a good way to check if a page is locked. OpenBSD provides a really nifty way to detect forks: you can use the minherit() syscall with the INHERIT_ZERO argument to specify that a page should be replaced with zeros when forking. This experience has been a real eye opener to how an operating system can make it easier to write a secure crypto library.

| Posted on 2014-07-16 at 01:23:29 UTC by Andrew Ayer | Parent | Reply to This

Post a Reply

Your comment will be public. If you would like to contact me privately, please email me. Please keep your comment on-topic, polite, and comprehensible. Use the "Preview" button to make sure your comment is properly formatted. Name and email address are optional. If you specify an email address it will be kept confidential.

Post Comment


(Optional; will be published)


(Optional; will not be published)


(Optional; will be published)


  • Blank lines separate paragraphs.
  • Lines starting with ">" are indented as block quotes.
  • Lines starting with two spaces are reproduced verbatim.
  • Text surrounded by *asterisks* is italicized.
  • Text surrounded by `back ticks` is monospaced.
  • URLs are turned into links.