Skip to content

Commit

Permalink
cmll-x86_64.pl: fix bug in cbc tail processing and comply with Win64 …
Browse files Browse the repository at this point in the history
…ABI spec.
  • Loading branch information
Andy Polyakov committed Dec 27, 2008
1 parent 3b0ee0d commit bec45a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crypto/camellia/asm/cmll-x86_64.pl
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ sub _rotl128 {
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
Expand Down Expand Up @@ -746,7 +746,7 @@ sub _rotl128 {
pushfq
cld
mov $inp,%rsi
lea $ivec,%rdi
lea 8+$ivec,%rdi
.long 0x9066A4F3 # rep movsb
popfq
.Lcbc_enc_popf:
Expand Down Expand Up @@ -835,7 +835,7 @@ sub _rotl128 {
.Lcbc_dec_pushf:
pushfq
cld
lea $ivec,%rsi
lea 8+$ivec,%rsi
lea ($out),%rdi
.long 0x9066A4F3 # rep movsb
popfq
Expand Down

0 comments on commit bec45a3

Please sign in to comment.