summaryrefslogtreecommitdiffstats
path: root/chacha.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-06-21 06:21:04 +0200
committerDamien Miller <djm@mindrot.org>2019-06-21 06:24:35 +0200
commit4f7a56d5e02e3d04ab69eac1213817a7536d0562 (patch)
treeb17da67f20831b53f9b00c6647c5eb1bdf88d626 /chacha.h
parentupstream: print the correct AuthorizedPrincipalsCommand rather than (diff)
downloadopenssh-4f7a56d5e02e3d04ab69eac1213817a7536d0562.tar.xz
openssh-4f7a56d5e02e3d04ab69eac1213817a7536d0562.zip
upstream: 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@ OpenBSD-Commit-ID: 19767213c312e46f94b303a512ef8e9218a39bd4
Diffstat (limited to 'chacha.h')
0 files changed, 0 insertions, 0 deletions