Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: sun4i-ss - checking sg length is not sufficient
The optimized cipher function need length multiple of 4 bytes. But it get sometimes odd length. This is due to SG data could be stored with an offset. So the fix is to check also if the offset is aligned with 4 bytes. Fixes: 6298e94 ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator") Cc: <[email protected]> Signed-off-by: Corentin Labbe <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information