From 518099af59fbde0e7140459c76f59c9ac24bdf9c Mon Sep 17 00:00:00 2001 From: "Simon L. B. Nielsen" Date: Sun, 7 Jun 2009 19:56:18 +0000 Subject: Import OpenSSL 0.9.8k. --- crypto/aes/asm/aes-x86_64.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crypto/aes/asm/aes-x86_64.pl') diff --git a/crypto/aes/asm/aes-x86_64.pl b/crypto/aes/asm/aes-x86_64.pl index 44e0bf8cae3a..f616f1751f7e 100755 --- a/crypto/aes/asm/aes-x86_64.pl +++ b/crypto/aes/asm/aes-x86_64.pl @@ -1198,19 +1198,20 @@ AES_cbc_encrypt: ret .align 4 .Lcbc_enc_tail: - cmp $inp,$out - je .Lcbc_enc_in_place + mov %rax,%r11 + mov %rcx,%r12 mov %r10,%rcx mov $inp,%rsi mov $out,%rdi .long 0xF689A4F3 # rep movsb -.Lcbc_enc_in_place: mov \$16,%rcx # zero tail sub %r10,%rcx xor %rax,%rax .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 -- cgit v1.2.3