<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sys/crypto, branch master</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sys/crypto?h=master</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sys/crypto?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2021-03-12T10:22:46Z</updated>
<entry>
<title>spelling</title>
<updated>2021-03-12T10:22:46Z</updated>
<author>
<name>jsg</name>
<email>jsg@openbsd.org</email>
</author>
<published>2021-03-12T10:22:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=84f3acfde2a7e7d22afae1b5e404e34b9403abc7'/>
<id>urn:sha1:84f3acfde2a7e7d22afae1b5e404e34b9403abc7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add missing CVS tags.</title>
<updated>2020-07-22T13:54:30Z</updated>
<author>
<name>tobhe</name>
<email>tobhe@openbsd.org</email>
</author>
<published>2020-07-22T13:54:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6a126883bc80051260ef4a80c3b9b17c95b29772'/>
<id>urn:sha1:6a126883bc80051260ef4a80c3b9b17c95b29772</id>
<content type='text'>
ok patrick@
</content>
</entry>
<entry>
<title>don't try to expand alignment using __aligned(16) on local variables.</title>
<updated>2020-06-27T15:58:47Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2020-06-27T15:58:47Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=034cea9fb2355e3cd2c7b6b3ad55b28b630dff96'/>
<id>urn:sha1:034cea9fb2355e3cd2c7b6b3ad55b28b630dff96</id>
<content type='text'>
that stops being normal C.  the object type has to be sufficient, if it
needed larger alignment such a type or a union should be used instead.
(breaks landisk gcc, for one)
</content>
</entry>
<entry>
<title>kernel: use gettime(9)/getuptime(9) in lieu of time_second(9)/time_uptime(9)</title>
<updated>2020-06-24T22:03:40Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2020-06-24T22:03:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3209772dfcc3950dd5df01bc44eebf75e637511e'/>
<id>urn:sha1:3209772dfcc3950dd5df01bc44eebf75e637511e</id>
<content type='text'>
time_second(9) and time_uptime(9) are widely used in the kernel to
quickly get the system UTC or system uptime as a time_t.  However,
time_t is 64-bit everywhere, so it is not generally safe to use them
on 32-bit platforms: you have a split-read problem if your hardware
cannot perform atomic 64-bit reads.

This patch replaces time_second(9) with gettime(9), a safer successor
interface, throughout the kernel.  Similarly, time_uptime(9) is replaced
with getuptime(9).

There is a performance cost on 32-bit platforms in exchange for
eliminating the split-read problem: instead of two register reads you
now have a lockless read loop to pull the values from the timehands.
This is really not *too* bad in the grand scheme of things, but
compared to what we were doing before it is several times slower.

There is no performance cost on 64-bit (__LP64__) platforms.

With input from visa@, dlg@, and tedu@.

Several bugs squashed by visa@.

ok kettenis@
</content>
</entry>
<entry>
<title>add constructions for wireguard.</title>
<updated>2020-06-21T10:50:01Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2020-06-21T10:50:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=76a075be08bd0affc816a095146a46cacfd345e7'/>
<id>urn:sha1:76a075be08bd0affc816a095146a46cacfd345e7</id>
<content type='text'>
from Matt Dunwoodie and Jason A. Donenfeld

ok deraadt@
</content>
</entry>
<entry>
<title>add hchacha20 for wireguard.</title>
<updated>2020-06-21T10:46:49Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2020-06-21T10:46:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=09a3dd53443e850ce90c366150fff3c420b2cc57'/>
<id>urn:sha1:09a3dd53443e850ce90c366150fff3c420b2cc57</id>
<content type='text'>
i think we should turn the chacha code into an actual c file at
some point to reduce duplication of object code, but that can happen
later.

from Matt Dunwoodie and Jason A. Donenfeld

ok deraadt@
</content>
</entry>
<entry>
<title>curve25519 for wireguard.</title>
<updated>2020-06-21T10:43:37Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2020-06-21T10:43:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2df0987dc7644d0c188262d2fe2e5f1a843c9ee0'/>
<id>urn:sha1:2df0987dc7644d0c188262d2fe2e5f1a843c9ee0</id>
<content type='text'>
via Matt Dunwoodie and Jason A. Donenfeld

ok deraadt@
</content>
</entry>
<entry>
<title>add blake2s for wireguard.</title>
<updated>2020-06-21T10:34:37Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2020-06-21T10:34:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=9960953d15a1d2b1e5b61b541dba13adcff15f1d'/>
<id>urn:sha1:9960953d15a1d2b1e5b61b541dba13adcff15f1d</id>
<content type='text'>
via Matt Dunwoodie and Jason A. Donenfeld

ok deraadt@
</content>
</entry>
<entry>
<title>rndvar.h not needed here</title>
<updated>2020-05-29T01:22:53Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2020-05-29T01:22:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=416e7f624d7c7e736f2321f05d8daf48d6111744'/>
<id>urn:sha1:416e7f624d7c7e736f2321f05d8daf48d6111744</id>
<content type='text'>
</content>
</entry>
<entry>
<title>idgen32(9): use time_uptime(9) for rekey timestamps, not time_second(9)</title>
<updated>2020-04-15T03:56:14Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2020-04-15T03:56:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=14a8f15fd61273b1fbf3096a20c525920b20a4cd'/>
<id>urn:sha1:14a8f15fd61273b1fbf3096a20c525920b20a4cd</id>
<content type='text'>
Timestamp contexts with a monotonic clock.  time_second(9) can jump,
stretching or truncating our rekey interval.  time_uptime(9) will not
jump around.

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