aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/api.c
diff options
context:
space:
mode:
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>2020-06-29 18:16:17 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2020-07-09 18:25:14 +1000
commit528f776df67c440361b2847b4da400d8754bf030 (patch)
tree872d2362f32192b00edf09454c3c4910279e53dc /crypto/api.c
parenthwrng: octeon - Fix sparse warnings (diff)
downloadlinux-rng-528f776df67c440361b2847b4da400d8754bf030.tar.xz
linux-rng-528f776df67c440361b2847b4da400d8754bf030.zip
crypto: qat - allow xts requests not multiple of block
Allow AES-XTS requests that are not multiple of the block size. If a request is smaller than the block size, return -EINVAL. This fixes the following issue reported by the crypto testmgr self-test: alg: skcipher: qat_aes_xts encryption failed on test vector "random: len=116 klen=64"; expected_error=0, actual_error=-22, cfg="random: inplace may_sleep use_finup src_divs=[<reimport>45.85%@+4077, <flush>54.15%@alignmask+18]" Fixes: 96ee111a659e ("crypto: qat - return error for block...") Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/api.c')
0 files changed, 0 insertions, 0 deletions