Re: [PATCH 2/2] crypto: s5p-sss - Handle unaligned buffers

2016-03-06 Thread Krzysztof Kozlowski
On 07.03.2016 10:28, Vladimir Zapolskiy wrote: > Hi Krzysztof, > > On 06.03.2016 12:17, Krzysztof Kozlowski wrote: >> During crypto selftests on Odroid XU3 (Exynos5422) some of the >> algorithms failed because of passing AES-block unaligned source and >> destination buffers: > > excuse my ignoran

Re: [PATCH 2/2] crypto: s5p-sss - Handle unaligned buffers

2016-03-06 Thread Vladimir Zapolskiy
Hi Krzysztof, On 06.03.2016 12:17, Krzysztof Kozlowski wrote: > During crypto selftests on Odroid XU3 (Exynos5422) some of the > algorithms failed because of passing AES-block unaligned source and > destination buffers: excuse my ignorance what are the crypto selftests you reference? Are they run

[PATCH 2/2] crypto: s5p-sss - Handle unaligned buffers

2016-03-06 Thread Krzysztof Kozlowski
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