From: Andy Polyakov Date: Sat, 27 Dec 2008 13:39:38 +0000 (+0000) Subject: cmll-x86_64.pl: fix bug in cbc tail processing and comply with Win64 ABI spec. X-Git-Tag: OpenSSL_0_9_8k^2~91 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bec45a35bb91c03056d498320b3db630304ab48f;p=oweals%2Fopenssl.git cmll-x86_64.pl: fix bug in cbc tail processing and comply with Win64 ABI spec. --- diff --git a/crypto/camellia/asm/cmll-x86_64.pl b/crypto/camellia/asm/cmll-x86_64.pl index 4fe87e99f2..c683646ca7 100644 --- a/crypto/camellia/asm/cmll-x86_64.pl +++ b/crypto/camellia/asm/cmll-x86_64.pl @@ -650,7 +650,7 @@ Camellia_cbc_encrypt: neg %r10 and \$0x3C0,%r10 sub %r10,%rsp - add \$8,%rsp # 8 is reserved for callee's ra + #add \$8,%rsp # 8 is reserved for callee's ra mov %rdi,$inp # inp argument mov %rsi,$out # out argument @@ -746,7 +746,7 @@ Camellia_cbc_encrypt: pushfq cld mov $inp,%rsi - lea $ivec,%rdi + lea 8+$ivec,%rdi .long 0x9066A4F3 # rep movsb popfq .Lcbc_enc_popf: @@ -835,7 +835,7 @@ Camellia_cbc_encrypt: .Lcbc_dec_pushf: pushfq cld - lea $ivec,%rsi + lea 8+$ivec,%rsi lea ($out),%rdi .long 0x9066A4F3 # rep movsb popfq