diff options
author | tb <> | 2023-11-29 18:11:10 +0000 |
---|---|---|
committer | tb <> | 2023-11-29 18:11:10 +0000 |
commit | 0423d363b45d6891ba1e59c1ae770ef1443bf41c (patch) | |
tree | ecbff5620d8cd70d14096cd6e631c21eff2114b2 /src/usr.bin | |
parent | 5fc61c757deaae46e25cc163ae9e92831528fbc8 (diff) | |
download | openbsd-0423d363b45d6891ba1e59c1ae770ef1443bf41c.tar.gz openbsd-0423d363b45d6891ba1e59c1ae770ef1443bf41c.tar.bz2 openbsd-0423d363b45d6891ba1e59c1ae770ef1443bf41c.zip |
Clean up CMAC implementation a little
Add explanatory comments that refer to the spec so that all the weird
dances make a little more sense. It turns out that this implmeentation
only supports block ciphers with block sizes of 64 and 128 bits, so
enforce this with a check.
Simplify make_kn() to make a little more sense and make it constant
time. Some stylistic fixes like checking pointers explicitly against
NULL and shuffle things into an order that makes a bit more sense.
Includes a fix for a warning reported by Viktor Szakats in
https://github.com/libressl/portable/issues/926
ok jsing
Diffstat (limited to 'src/usr.bin')
0 files changed, 0 insertions, 0 deletions