]> granicus.if.org Git - openssl/commitdiff
aes-x86_64.pl: commit#19797 was overzealous, partially reverse.
authorAndy Polyakov <appro@openssl.org>
Mon, 26 Jul 2010 22:56:07 +0000 (22:56 +0000)
committerAndy Polyakov <appro@openssl.org>
Mon, 26 Jul 2010 22:56:07 +0000 (22:56 +0000)
crypto/aes/asm/aes-x86_64.pl

index f2f62cdc99b6c0b80b6147f22eeadbafcb301532..674a68c43e620119dfdad1f1236dbf036631ce7e 100755 (executable)
@@ -1552,8 +1552,8 @@ $code.=<<___;
 AES_set_decrypt_key:
        push    %rbx
        push    %rbp
-       push    %r12                    # redundant, but allows to share
-       push    %r13                    # exception handler...
+       push    %r12
+       push    %r13
        push    %r14
        push    %r15
        push    %rdx                    # save key schedule
@@ -1609,6 +1609,10 @@ $code.=<<___;
 
        xor     %rax,%rax
 .Labort:
+       mov     8(%rsp),%r15
+       mov     16(%rsp),%r14
+       mov     24(%rsp),%r13
+       mov     32(%rsp),%r12
        mov     40(%rsp),%rbp
        mov     48(%rsp),%rbx
        add     \$56,%rsp