crypto: s5p-sss - Handle unaligned buffers
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 22 Mar 2016 01:58:24 +0000 (10:58 +0900)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 5 Apr 2016 12:35:46 +0000 (20:35 +0800)
commit9e4a1100a445671dd55ff74dce859221cc1464fa
treeec8bc3b1694e62490d7f590ea4b8ecdc696065e5
parent119c3ab4ed33c04782f02040a4bc686216788c53
crypto: s5p-sss - Handle unaligned buffers

During crypto selftests on Odroid XU3 (Exynos5422) some of the
algorithms failed because of passing AES-block unaligned source and
destination buffers:

alg: skcipher: encryption failed on chunk test 1 for ecb-aes-s5p: ret=22

Handle such case by copying the buffers to a new aligned and contiguous
space.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/s5p-sss.c