summaryrefslogtreecommitdiff
path: root/crypto/camellia
diff options
context:
space:
mode:
authorappro <appro>2008-12-27 13:39:38 +0000
committerappro <appro>2008-12-27 13:39:38 +0000
commit693a5f7646d7b991749aeaeb42459a34b9eb4431 (patch)
treecadca99b52cbff9ff9a97f08ddc3cfd191559911 /crypto/camellia
parent1368b824386b19c1c0d018aa645c08517516eb8a (diff)
downloadopenssl-693a5f7646d7b991749aeaeb42459a34b9eb4431.tar.gz
cmll-x86_64.pl: fix bug in cbc tail processing and comply with Win64 ABI spec.
Diffstat (limited to 'crypto/camellia')
-rw-r--r--crypto/camellia/asm/cmll-x86_64.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/camellia/asm/cmll-x86_64.pl b/crypto/camellia/asm/cmll-x86_64.pl
index 4fe87e99f..c683646ca 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