diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2010-11-04 19:38:39 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-11-04 19:38:39 +0100 |
commit | c054a076a1bd4731820a9c4d638b13d5c9bf5935 (patch) | |
tree | 0ca6515906ce6927a7a3df6073ad5dc1eaf3f641 /lib | |
parent | crypto: n2 - dubious error check (diff) | |
download | linux-c054a076a1bd4731820a9c4d638b13d5c9bf5935.tar.xz linux-c054a076a1bd4731820a9c4d638b13d5c9bf5935.zip |
crypto: padlock - Fix AES-CBC handling on odd-block-sized input
On certain VIA chipsets AES-CBC requires the input/output to be
a multiple of 64 bytes. We had a workaround for this but it was
buggy as it sent the whole input for processing when it is meant
to only send the initial number of blocks which makes the rest
a multiple of 64 bytes.
As expected this causes memory corruption whenever the workaround
kicks in.
Reported-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions