mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-11 08:59:40 +00:00
Sync aes/asm with stable branch.
This commit is contained in:
parent
8887e81bd7
commit
45b364ddab
crypto/aes/asm
@ -955,8 +955,9 @@ my $mark=&DWP(60+240,"esp"); #copy of aes_key->rounds
|
||||
|
||||
&align (4);
|
||||
&set_label("enc_tail");
|
||||
&push ($key eq "edi" ? $key : ""); # push ivp
|
||||
&mov ($s0,$key eq "edi" ? $key : "");
|
||||
&mov ($key,$_out); # load out
|
||||
&push ($s0); # push ivp
|
||||
&mov ($s1,16);
|
||||
&sub ($s1,$s2);
|
||||
&cmp ($key,$acc); # compare with inp
|
||||
|
@ -1198,6 +1198,8 @@ AES_cbc_encrypt:
|
||||
ret
|
||||
.align 4
|
||||
.Lcbc_enc_tail:
|
||||
mov %rax,%r11
|
||||
mov %rcx,%r12
|
||||
mov %r10,%rcx
|
||||
mov $inp,%rsi
|
||||
mov $out,%rdi
|
||||
@ -1208,6 +1210,8 @@ AES_cbc_encrypt:
|
||||
.long 0xF689AAF3 # rep stosb
|
||||
mov $out,$inp # this is not a mistake!
|
||||
movq \$16,$_len # len=16
|
||||
mov %r11,%rax
|
||||
mov %r12,%rcx
|
||||
jmp .Lcbc_enc_loop # one more spin...
|
||||
#----------------------------- DECRYPT -----------------------------#
|
||||
.align 16
|
||||
|
Loading…
x
Reference in New Issue
Block a user