diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-08 16:38:24 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-09 22:25:58 +0800 |
commit | 70c3c8a96a85d333b3ff1f24df84c0e179261a8a (patch) | |
tree | 60dfee06ecc515fa9113c1fd98b46ece0b6a7845 /crypto | |
parent | ecb479d07a4e2db980965193511dbf2563d50db5 (diff) | |
download | op-kernel-dev-70c3c8a96a85d333b3ff1f24df84c0e179261a8a.zip op-kernel-dev-70c3c8a96a85d333b3ff1f24df84c0e179261a8a.tar.gz |
crypto: caam - Clamp AEAD SG list by input length
Currently caam assumes that the SG list contains exactly the number
of bytes required. This assumption is incorrect.
Up until now this has been harmless. However with the new AEAD
interface this now breaks as the AD SG list contains more bytes
than just the AD.
This patch fixes this by always clamping the AD SG list by the
specified AD length.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions