<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/crypt/arc4random.c, branch pre_openssl_0_9_8h</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=pre_openssl_0_9_8h</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=pre_openssl_0_9_8h'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2008-07-28T23:44:12+00:00</updated>
<entry>
<title>This commit was manufactured by cvs2git to create tag 'pre_openssl_0_9_8h'.</title>
<updated>2008-07-28T23:44:12+00:00</updated>
<author>
<name>cvs2svn</name>
<email>admin@example.com</email>
</author>
<published>2008-07-28T23:44:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=daac2f633f49a45baa8412c5e4e71e594236e7b8'/>
<id>urn:sha1:daac2f633f49a45baa8412c5e4e71e594236e7b8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix math screwup that reintroduced a bias for upper_bounds in range</title>
<updated>2008-06-04T00:50:23+00:00</updated>
<author>
<name>djm</name>
<email></email>
</author>
<published>2008-06-04T00:50:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9cb2819066edcb7bd907e9809cc6a87dbf7b3a71'/>
<id>urn:sha1:9cb2819066edcb7bd907e9809cc6a87dbf7b3a71</id>
<content type='text'>
(2^30,2^31). Nothing in the tree yet requests random numbers bounded
by this range.

report jakob!deraadt; ok deraadt@
</content>
</entry>
<entry>
<title>diff from djm@ committed at his request:</title>
<updated>2008-03-16T19:47:43+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2008-03-16T19:47:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e045e819cf6c3f1795515c3f3f6d661b69e1f66b'/>
<id>urn:sha1:e045e819cf6c3f1795515c3f3f6d661b69e1f66b</id>
<content type='text'>
introduce two new APIs for requesting strong random numbers:

arc4random_buf() - fill an arbitrary memory range with random numbers

arc4random_uniform() - return a uniformly distributed random number
below
a specified upper bound, avoiding the bias that comes from a naive
"arc4random() % upper_bound" construction.

these mirror similarly-named functions in the kernel;
lots of discussion deraadt@ mcbride@
</content>
</entry>
<entry>
<title>- make arc4random*() functions thread safe. Use a custom spinlock function</title>
<updated>2008-01-01T00:43:39+00:00</updated>
<author>
<name>kurt</name>
<email></email>
</author>
<published>2008-01-01T00:43:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d08c4e4910d78ef0ddd9e7917c1f2d61b0021d4a'/>
<id>urn:sha1:d08c4e4910d78ef0ddd9e7917c1f2d61b0021d4a</id>
<content type='text'>
instead of the generic pthread macros since free(3) uses __arc4_getbyte()
when freeing small sized allocations and the generic pthread macros call
malloc(3).
- eliminate passing pointers to a static variable with global scope (rs)
for additional code clarity and reduction.
- shlib minor bumps for libc and libpthread due to new functions.
From andreas@ with some bits from me. okay tedu@ marc@ w/some spot
checking from millert@
</content>
</entry>
<entry>
<title>provide an libc internal interface to get random bytes, to be used by malloc</title>
<updated>2007-02-12T19:58:47+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2007-02-12T19:58:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=69c771d75d0fc0fe568375eaf8269d6afa45d501'/>
<id>urn:sha1:69c771d75d0fc0fe568375eaf8269d6afa45d501</id>
<content type='text'>
to get random data without calling getpid(), ok millert@ deraadt@
</content>
</entry>
<entry>
<title>Use sysctl(KERN_ARND) to get n bytes, instead of just 4 at a time</title>
<updated>2005-11-30T07:51:02+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2005-11-30T07:51:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f8452f05564b5820c3745b9348d85a2b3a745467'/>
<id>urn:sha1:f8452f05564b5820c3745b9348d85a2b3a745467</id>
<content type='text'>
and remove fallback code. If somebody is dumb enough to make the
sysctl fail using systrace, he deserves what he gets. Saves 7 syscalls
on process startup.
looks good miod@ ok deraadt@ tedu@
</content>
</entry>
<entry>
<title>Change email address for author, at his request.</title>
<updated>2005-06-06T14:57:59+00:00</updated>
<author>
<name>kjell</name>
<email></email>
</author>
<published>2005-06-06T14:57:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4128e973a85b96d70a30e67b8c644cd546701184'/>
<id>urn:sha1:4128e973a85b96d70a30e67b8c644cd546701184</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change license to standard OpenBSD boilerplate, with permission</title>
<updated>2005-06-06T04:54:28+00:00</updated>
<author>
<name>kjell</name>
<email></email>
</author>
<published>2005-06-06T04:54:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=516b96d165d2931f862a17d19a86fb40ea0aea50'/>
<id>urn:sha1:516b96d165d2931f862a17d19a86fb40ea0aea50</id>
<content type='text'>
from original author (David Mazieres)
</content>
</entry>
<entry>
<title>use the new fat random sysctl to get initial state. (fallback to looping).</title>
<updated>2005-06-04T05:13:13+00:00</updated>
<author>
<name>tedu</name>
<email></email>
</author>
<published>2005-06-04T05:13:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=26efa7c2a86f35a1ee66b7060085328402a5ac4d'/>
<id>urn:sha1:26efa7c2a86f35a1ee66b7060085328402a5ac4d</id>
<content type='text'>
stir after eating 400000 words.  ok + input deraadt
</content>
</entry>
<entry>
<title>kill spaces</title>
<updated>2004-11-02T11:07:13+00:00</updated>
<author>
<name>hshoexer</name>
<email></email>
</author>
<published>2004-11-02T11:07:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3d26b52fa07481c5e5ea45aadb74ca49ad7d2ea1'/>
<id>urn:sha1:3d26b52fa07481c5e5ea45aadb74ca49ad7d2ea1</id>
<content type='text'>
ok djm@
</content>
</entry>
</feed>
