<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/crypt/bcrypt.c, branch OPENBSD_7_9_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2020-07-06T13:33:06+00:00</updated>
<entry>
<title>Add support for timeconting in userland.</title>
<updated>2020-07-06T13:33:06+00:00</updated>
<author>
<name>pirofti</name>
<email></email>
</author>
<published>2020-07-06T13:33:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0320e8b397405d62725b086d54c65caf0669f919'/>
<id>urn:sha1:0320e8b397405d62725b086d54c65caf0669f919</id>
<content type='text'>
This diff exposes parts of clock_gettime(2) and gettimeofday(2) to
userland via libc eliberating processes from the need for a context
switch everytime they want to count the passage of time.

If a timecounter clock can be exposed to userland than it needs to set
its tc_user member to a non-zero value. Tested with one or multiple
counters per architecture.

The timing data is shared through a pointer found in the new ELF
auxiliary vector AUX_openbsd_timekeep containing timehands information
that is frequently updated by the kernel.

Timing differences between the last kernel update and the current time
are adjusted in userland by the tc_get_timecount() function inside the
MD usertc.c file.

This permits a much more responsive environment, quite visible in
browsers, office programs and gaming (apparently one is are able to fly
in Minecraft now).

Tested by robert@, sthen@, naddy@, kmos@, phessler@, and many others!

OK from at least kettenis@, cheloha@, naddy@, sthen@
</content>
</entry>
<entry>
<title>Pull in &lt;time.h&gt; for clock_gettime()</title>
<updated>2016-08-26T08:25:02+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2016-08-26T08:25:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ea152cc7a0da6c58c7e582039cdd13fa86397bbc'/>
<id>urn:sha1:ea152cc7a0da6c58c7e582039cdd13fa86397bbc</id>
<content type='text'>
ok deraadt@
</content>
</entry>
<entry>
<title>increase the minimum for auto rounds to 6. that was the previous low bound</title>
<updated>2016-06-26T21:04:08+00:00</updated>
<author>
<name>tedu</name>
<email></email>
</author>
<published>2016-06-26T21:04:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d33e996eb7c6b7d4569a9accf40b58698657f85e'/>
<id>urn:sha1:d33e996eb7c6b7d4569a9accf40b58698657f85e</id>
<content type='text'>
for login.conf, and we don't want to go lower.
</content>
</entry>
<entry>
<title>Wrap &lt;pwd.h&gt; so that calls go direct and the symbols are all weak.</title>
<updated>2015-09-13T15:33:48+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2015-09-13T15:33:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5f424ba084ead7e716a6e98064fa03a19a93a9ac'/>
<id>urn:sha1:5f424ba084ead7e716a6e98064fa03a19a93a9ac</id>
<content type='text'>
Hide bcrypt_autorounds(), prefixing with an underbar for static builds.
</content>
</entry>
<entry>
<title>The number of rounds is just two digits in the salt.  We've already</title>
<updated>2015-09-13T12:42:39+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2015-09-13T12:42:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=629b11ace4d06660bae04ea3e03ea2fe9455d522'/>
<id>urn:sha1:629b11ace4d06660bae04ea3e03ea2fe9455d522</id>
<content type='text'>
verified that they are there via isdigit() so we can convert from
ASCII to an int without using atoi().  OK guenther@ deraadt@
</content>
</entry>
<entry>
<title>standards compliant error return (null). will make ruby happier, at least.</title>
<updated>2015-07-18T00:56:37+00:00</updated>
<author>
<name>tedu</name>
<email></email>
</author>
<published>2015-07-18T00:56:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c83921549ea7a344ae087bbfc5bb0ef0bc4aa6be'/>
<id>urn:sha1:c83921549ea7a344ae087bbfc5bb0ef0bc4aa6be</id>
<content type='text'>
ok deraadt jeremy
</content>
</entry>
<entry>
<title>dial the time back to about 0.1s, closer to the original targets and</title>
<updated>2015-01-28T23:33:52+00:00</updated>
<author>
<name>tedu</name>
<email></email>
</author>
<published>2015-01-28T23:33:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a4e5c13d2841ff2068bd14c20cd2c1e3eaa4f13c'/>
<id>urn:sha1:a4e5c13d2841ff2068bd14c20cd2c1e3eaa4f13c</id>
<content type='text'>
friendlier for users. requested by deraadt
</content>
</entry>
<entry>
<title>rename blocks to words. bcrypt "blocks" are unrelated to blowfish blocks,</title>
<updated>2015-01-12T03:20:04+00:00</updated>
<author>
<name>tedu</name>
<email></email>
</author>
<published>2015-01-12T03:20:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d8fbc422dcf8766c771862d297d34685d1e22165'/>
<id>urn:sha1:d8fbc422dcf8766c771862d297d34685d1e22165</id>
<content type='text'>
nor are they the same size.
</content>
</entry>
<entry>
<title>stupid me. need errno.h</title>
<updated>2015-01-07T16:05:28+00:00</updated>
<author>
<name>tedu</name>
<email></email>
</author>
<published>2015-01-07T16:05:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5282bd792194ddb587b2f145fd803075de55f024'/>
<id>urn:sha1:5282bd792194ddb587b2f145fd803075de55f024</id>
<content type='text'>
</content>
</entry>
<entry>
<title>set errno = EINVAL for invalid salts and hashes in most functions.</title>
<updated>2015-01-07T15:46:23+00:00</updated>
<author>
<name>tedu</name>
<email></email>
</author>
<published>2015-01-07T15:46:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e940bceab13a32c9af44d3254ff07896ccc2343e'/>
<id>urn:sha1:e940bceab13a32c9af44d3254ff07896ccc2343e</id>
<content type='text'>
remember to set EACCES in bcrypt_checkpass for hash differences.
the higher level crypt_checkpass function will reset errno to EACCES in
all cases, which is probably the right behavior, but this change gives code
working with the lower level functions the correct errno if they care.
</content>
</entry>
</feed>
