projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d8409f
)
crypto: aes-ni - Fix cbc mode IV saving
author
Huang Ying
<ying.huang@intel.com>
Thu, 18 Jun 2009 11:33:57 +0000
(19:33 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 18 Jun 2009 11:33:57 +0000
(19:33 +0800)
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>
arch/x86/crypto/aesni-intel_asm.S
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/crypto/aesni-intel_asm.S
b/arch/x86/crypto/aesni-intel_asm.S
index caba99601703de3fafefd5e84b00abbff71a8eaa..eb0566e83319299fbf5046c32d247216d0ad4055 100644
(file)
--- a/
arch/x86/crypto/aesni-intel_asm.S
+++ b/
arch/x86/crypto/aesni-intel_asm.S
@@
-845,7
+845,7
@@
ENTRY(aesni_cbc_enc)
*/
ENTRY(aesni_cbc_dec)
cmp $16, LEN
- jb .Lcbc_dec_ret
+ jb .Lcbc_dec_
just_
ret
mov 480(KEYP), KLEN
add $240, KEYP
movups (IVP), IV
@@
-891,6
+891,7
@@
ENTRY(aesni_cbc_dec)
add $16, OUTP
cmp $16, LEN
jge .Lcbc_dec_loop1
- movups IV, (IVP)
.Lcbc_dec_ret:
+ movups IV, (IVP)
+.Lcbc_dec_just_ret:
ret