<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/arc4random, branch libressl-v2.1.4</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v2.1.4</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v2.1.4'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2015-01-19T20:21:40+00:00</updated>
<entry>
<title>Add arc4random/getentropy shims for NetBSD.</title>
<updated>2015-01-19T20:21:40+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2015-01-19T20:21:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8da41a08c1b0ad547a78765a94025ba2a25b5fb0'/>
<id>urn:sha1:8da41a08c1b0ad547a78765a94025ba2a25b5fb0</id>
<content type='text'>
The latest NetBSD (6.1.5) arc4random does not appear to reseed the CRNG state
after a fork, so provide an override until the fork-safe version in CVS appears
in a release.

These are the same as the FreeBSD shims.

ok deraadt@
</content>
</entry>
<entry>
<title>back in september I did the large abstraction refactoring to allow these</title>
<updated>2015-01-15T06:57:18+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2015-01-15T06:57:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2c0fa7a33267776e90c29aa1b640595e92c0d8f7'/>
<id>urn:sha1:2c0fa7a33267776e90c29aa1b640595e92c0d8f7</id>
<content type='text'>
other systems to fit into the same mold, so add copyright
</content>
</entry>
<entry>
<title>mix in more virtual memory and process information</title>
<updated>2015-01-07T01:15:57+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2015-01-07T01:15:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=84d3a443bfbb7a97be016bcdc5e73d244c6987ad'/>
<id>urn:sha1:84d3a443bfbb7a97be016bcdc5e73d244c6987ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add initial HP-UX getentropy/arc4random support.</title>
<updated>2015-01-06T21:08:11+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2015-01-06T21:08:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0facf1dc285a76d9848d5c48673c3b02ce1dec91'/>
<id>urn:sha1:0facf1dc285a76d9848d5c48673c3b02ce1dec91</id>
<content type='text'>
patch from Kinichiro Inoguchi, tested on HP-UX 11.31

ok deraadt@
</content>
</entry>
<entry>
<title>correct the failure case for getentropy on win32</title>
<updated>2014-11-11T13:54:33+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2014-11-11T13:54:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8d5f6fbe06d6b13dd764a076a1f541134df3c108'/>
<id>urn:sha1:8d5f6fbe06d6b13dd764a076a1f541134df3c108</id>
<content type='text'>
CryptAcquireContext and CryptGenRandom returns zero (FALSE) if fails.

From: Dongsheng Song &lt;dongsheng.song@gmail.com&gt;
</content>
</entry>
<entry>
<title>Add hooks to override native arc4random_buf on FreeBSD.</title>
<updated>2014-11-03T06:23:30+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2014-11-03T06:23:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=97f48e5c1a29dd52ce16c023eaa14f5da0110610'/>
<id>urn:sha1:97f48e5c1a29dd52ce16c023eaa14f5da0110610</id>
<content type='text'>
The FreeBSD-native arc4random_buf implementation falls back to weak sources of
entropy if the sysctl fails. Remove these dangerous fallbacks by overriding
locally.

Unfortunately, pthread_atfork() is also broken on FreeBSD (at least 9 and 10)
if a program does not link to -lthr. Callbacks registered with pthread_atfork()
simply fail silently. So, it is not always possible to detect a PID wraparound.
I wish we could do better.

This improves arc4random_buf's safety compared to the native FreeBSD
implementation.

Tested on FreeBSD 9 and 10.
</content>
</entry>
<entry>
<title>include header needed by older linux kernels</title>
<updated>2014-10-11T16:44:05+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2014-10-11T16:44:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4e737c824fafe5f105e5f4849a9db2569b5d53d8'/>
<id>urn:sha1:4e737c824fafe5f105e5f4849a9db2569b5d53d8</id>
<content type='text'>
not all versions of &lt;linux/random.h&gt; include &lt;linux/types.h&gt; by default
</content>
</entry>
<entry>
<title>preserve errno value on success.</title>
<updated>2014-08-28T01:00:57+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2014-08-28T01:00:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a204a3a466a44d9fd8704c0ac46eef238a8cb1e7'/>
<id>urn:sha1:a204a3a466a44d9fd8704c0ac46eef238a8cb1e7</id>
<content type='text'>
If getrandom returns a temporary failure, make sure errno is not polluted when
it succeeds. Thanks to deraadt@ for pointing it out.
</content>
</entry>
<entry>
<title>only build the getrandom path if SYS_getrandom is defined.</title>
<updated>2014-08-16T18:42:41+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2014-08-16T18:42:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8d1497d70ef3cba9c8cb1eeffed8280530bfd921'/>
<id>urn:sha1:8d1497d70ef3cba9c8cb1eeffed8280530bfd921</id>
<content type='text'>
like the sysctl path
</content>
</entry>
<entry>
<title>getrandom(2) support for getentropy_linux</title>
<updated>2014-08-16T17:21:56+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2014-08-16T17:21:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=408eab1e65d65540efc82e6ec61695cebcc06a66'/>
<id>urn:sha1:408eab1e65d65540efc82e6ec61695cebcc06a66</id>
<content type='text'>
This enables support for the new getrandom(2) syscall in Linux 3.17.

If the call exists and fails, return a failure in getentropy(2) emulation as
well. This adds a EINTR check in case the urandom pool is not initialized.

Tested on Fedora Rawhide with 3.17rc0 and Ubuntu 14.04

ok deraadt@
</content>
</entry>
</feed>
