Re: [PATCH] crypto: x86/aes-xts - simplify loop in xts_crypt_slowpath()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Biggers <ebiggers@xxxxxxxxxx> wrote:
> From: Eric Biggers <ebiggers@xxxxxxxxxx>
> 
> Since the total length processed by the loop in xts_crypt_slowpath() is
> a multiple of AES_BLOCK_SIZE, just round the length down to
> AES_BLOCK_SIZE even on the last step.  This doesn't change behavior, as
> the last step will process a multiple of AES_BLOCK_SIZE regardless.
> 
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
> arch/x86/crypto/aesni-intel_glue.c | 13 +++++--------
> 1 file changed, 5 insertions(+), 8 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux