diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2016-07-08 03:44:43 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2016-07-08 03:44:43 +0000 |
commit | 2aeeb269c1c264b526a18b52750dc409addc360a (patch) | |
tree | b628ea8de8c02cf4c61216a80f097acff716f7a2 /sys/dev/mii/ciphyreg.h | |
parent | 6555f6eb298ff52357d38e0f25595dc0b2380f16 (diff) |
Improve crypto ordering for Encrypt-then-MAC (EtM) mode MAC algorithms.
Previously we were computing the MAC, decrypting the packet and then
checking the MAC. This gave rise to the possibility of creating a
side-channel oracle in the decryption step, though no such oracle has
been identified.
This adds a mac_check() function that computes and checks the MAC in
one pass, and uses it to advance MAC checking for EtM algorithms to
before payload decryption.
Reported by Jean Paul Degabriele, Kenny Paterson, Torben Hansen and
Martin Albrecht. feedback and ok markus@
Diffstat (limited to 'sys/dev/mii/ciphyreg.h')
0 files changed, 0 insertions, 0 deletions