<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/arc4random, branch libressl-v2.2.0</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v2.2.0</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v2.2.0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2015-04-27T03:37:06+00:00</updated>
<entry>
<title>Not all Linux libc's include linux/sysctl.h in sys/sysctl.h.</title>
<updated>2015-04-27T03:37:06+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2015-04-27T03:37:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=29b3e8caf044d209b7dcfe76059033f1e5174a65'/>
<id>urn:sha1:29b3e8caf044d209b7dcfe76059033f1e5174a65</id>
<content type='text'>
Include it if we have the sysctl syscall.
</content>
</entry>
<entry>
<title>Support AIX versions without WPAR support.</title>
<updated>2015-04-27T03:34:43+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2015-04-27T03:34:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=218560577e54c8df6beb6f07c4ce700f230c8fe1'/>
<id>urn:sha1:218560577e54c8df6beb6f07c4ce700f230c8fe1</id>
<content type='text'>
From Michael Felt.
</content>
</entry>
<entry>
<title>add initial AIX getentropy/arc4random files. Thanks to Michael Felt.</title>
<updated>2015-03-30T11:29:48+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2015-03-30T11:29:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9a233fbb9c7e0c8634665919ddc8b9da92a7f3c4'/>
<id>urn:sha1:9a233fbb9c7e0c8634665919ddc8b9da92a7f3c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sys/sysctl.h includes linux/sysctl.h, remove the extra unchecked include</title>
<updated>2015-03-22T13:28:03+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2015-03-22T13:28:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2726156be030e091258537fe7ca338f221ab9277'/>
<id>urn:sha1:2726156be030e091258537fe7ca338f221ab9277</id>
<content type='text'>
</content>
</entry>
<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>
</feed>
