crypto: aes-ni - Fix cbc mode IV saving

Original implementation of aesni_cbc_dec do not save IV if input
length % 4 == 0. This will make decryption of next block failed.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by Huang Ying and committed by Herbert Xu e6efaa02 8d8409f7

+3 -2
+3 -2
arch/x86/crypto/aesni-intel_asm.S
··· 845 */ 846 ENTRY(aesni_cbc_dec) 847 cmp $16, LEN 848 - jb .Lcbc_dec_ret 849 mov 480(KEYP), KLEN 850 add $240, KEYP 851 movups (IVP), IV ··· 891 add $16, OUTP 892 cmp $16, LEN 893 jge .Lcbc_dec_loop1 894 - movups IV, (IVP) 895 .Lcbc_dec_ret: 896 ret
··· 845 */ 846 ENTRY(aesni_cbc_dec) 847 cmp $16, LEN 848 + jb .Lcbc_dec_just_ret 849 mov 480(KEYP), KLEN 850 add $240, KEYP 851 movups (IVP), IV ··· 891 add $16, OUTP 892 cmp $16, LEN 893 jge .Lcbc_dec_loop1 894 .Lcbc_dec_ret: 895 + movups IV, (IVP) 896 + .Lcbc_dec_just_ret: 897 ret