"README.md" did not exist on "6c853da3f30c93eae847ecbcd9fdf10ba0da04c2"
-
Herbert Xu authored
As it is if user-space passes through a receive buffer that's not aligned to to the cipher block size, we'll end up encrypting or decrypting a partial block which causes a spurious EINVAL to be returned. This patch fixes this by moving the partial block test after the af_alg_make_sg call. Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>
Herbert Xu authoredAs it is if user-space passes through a receive buffer that's not aligned to to the cipher block size, we'll end up encrypting or decrypting a partial block which causes a spurious EINVAL to be returned. This patch fixes this by moving the partial block test after the af_alg_make_sg call. Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>