summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2019-06-21 04:21:04 +0000
committerdjm <djm@openbsd.org>2019-06-21 04:21:04 +0000
commit707316f931b35ef67f1390b2a00386bdd0863568 (patch)
tree22e56e03874df3bf2d33106941ace9115fcb04eb /sys/kern/kern_exec.c
parentprint the correct AuthorizedPrincipalsCommand rather than an (diff)
downloadwireguard-openbsd-707316f931b35ef67f1390b2a00386bdd0863568.tar.xz
wireguard-openbsd-707316f931b35ef67f1390b2a00386bdd0863568.zip
Add protection for private keys at rest in RAM against speculation
and memory sidechannel attacks like Spectre, Meltdown, Rowhammer and Rambleed. This change encrypts private keys when they are not in use with a symmetic key that is derived from a relatively large "prekey" consisting of random data (currently 16KB). Attackers must recover the entire prekey with high accuracy before they can attempt to decrypt the shielded private key, but the current generation of attacks have bit error rates that, when applied cumulatively to the entire prekey, make this unlikely. Implementation-wise, keys are encrypted "shielded" when loaded and then automatically and transparently unshielded when used for signatures or when being saved/serialised. Hopefully we can remove this in a few years time when computer architecture has become less unsafe. been in snaps for a bit already; thanks deraadt@ ok dtucker@ deraadt@
Diffstat (limited to 'sys/kern/kern_exec.c')
0 files changed, 0 insertions, 0 deletions