Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

openssl: regenerate asm code

  • Loading branch information
bnoordhuis committed Sep 10, 2012
1 parent c34087d commit 9aff8206b14a723850e139a36c985cc9733a4792
Showing with 1,004 additions and 56 deletions.
  1. +13 −0 deps/openssl/asm/x64-elf-gas/aes/aes-x86_64.s
  2. +1 −0 deps/openssl/asm/x64-elf-gas/bn/x86_64-mont.s
  3. +6 −0 deps/openssl/asm/x64-elf-gas/camellia/cmll-x86_64.s
  4. +3 −0 deps/openssl/asm/x64-elf-gas/md5/md5-x86_64.s
  5. +9 −0 deps/openssl/asm/x64-elf-gas/rc4/rc4-x86_64.s
  6. +1 −0 deps/openssl/asm/x64-elf-gas/sha/sha1-x86_64.s
  7. +1 −0 deps/openssl/asm/x64-elf-gas/sha/sha512-x86_64.s
  8. +1 −0 deps/openssl/asm/x64-elf-gas/whrlpool/wp-x86_64.s
  9. +3 −0 deps/openssl/asm/x64-elf-gas/x86_64cpuid.s
  10. +13 −0 deps/openssl/asm/x64-macosx-gas/aes/aes-x86_64.s
  11. +1 −0 deps/openssl/asm/x64-macosx-gas/bn/x86_64-mont.s
  12. +6 −0 deps/openssl/asm/x64-macosx-gas/camellia/cmll-x86_64.s
  13. +3 −0 deps/openssl/asm/x64-macosx-gas/md5/md5-x86_64.s
  14. +9 −0 deps/openssl/asm/x64-macosx-gas/rc4/rc4-x86_64.s
  15. +1 −0 deps/openssl/asm/x64-macosx-gas/sha/sha1-x86_64.s
  16. +1 −0 deps/openssl/asm/x64-macosx-gas/sha/sha512-x86_64.s
  17. +1 −0 deps/openssl/asm/x64-macosx-gas/whrlpool/wp-x86_64.s
  18. +3 −0 deps/openssl/asm/x64-macosx-gas/x86_64cpuid.s
  19. +16 −18 deps/openssl/asm/x64-win32-masm/aes/aes-x86_64.asm
  20. +1 −0 deps/openssl/asm/x64-win32-masm/bn/x86_64-mont.asm
  21. +9 −14 deps/openssl/asm/x64-win32-masm/camellia/cmll-x86_64.asm
  22. +0 −9 deps/openssl/asm/x64-win32-masm/md5/md5-x86_64.asm
  23. +8 −1 deps/openssl/asm/x64-win32-masm/rc4/rc4-x86_64.asm
  24. +1 −0 deps/openssl/asm/x64-win32-masm/sha/sha1-x86_64.asm
  25. +1 −0 deps/openssl/asm/x64-win32-masm/sha/sha512-x86_64.asm
  26. +1 −1 deps/openssl/asm/x64-win32-masm/whrlpool/wp-x86_64.asm
  27. +2 −1 deps/openssl/asm/x64-win32-masm/x86_64cpuid.asm
  28. +1 −1 deps/openssl/asm/x86-elf-gas/bn/x86-mont.s
  29. +1 −1 deps/openssl/asm/x86-elf-gas/bn/x86.s
  30. +1 −1 deps/openssl/asm/x86-elf-gas/md5/md5-586.s
  31. +1 −1 deps/openssl/asm/x86-elf-gas/ripemd/rmd-586.s
  32. +39 −0 deps/openssl/asm/x86-macosx-gas/bf/bf-686.s
  33. +1 −1 deps/openssl/asm/x86-macosx-gas/bn/x86-mont.s
  34. +292 −1 deps/openssl/asm/x86-macosx-gas/bn/x86.s
  35. +40 −0 deps/openssl/asm/x86-macosx-gas/cast/cast-586.s
  36. +18 −0 deps/openssl/asm/x86-macosx-gas/des/crypt586.s
  37. +52 −0 deps/openssl/asm/x86-macosx-gas/des/des-586.s
  38. +69 −1 deps/openssl/asm/x86-macosx-gas/md5/md5-586.s
  39. +5 −0 deps/openssl/asm/x86-macosx-gas/rc5/rc5-586.s
  40. +161 −1 deps/openssl/asm/x86-macosx-gas/ripemd/rmd-586.s
  41. +80 −0 deps/openssl/asm/x86-macosx-gas/sha/sha1-586.s
  42. +37 −0 deps/openssl/asm/x86-win32-masm/bf/bf-686.asm
  43. +1 −1 deps/openssl/asm/x86-win32-masm/bn/x86-mont.asm
  44. +11 −1 deps/openssl/asm/x86-win32-masm/bn/x86.asm
  45. +3 −0 deps/openssl/asm/x86-win32-masm/cast/cast-586.asm
  46. +23 −0 deps/openssl/asm/x86-win32-masm/des/crypt586.asm
  47. +43 −0 deps/openssl/asm/x86-win32-masm/des/des-586.asm
  48. +5 −1 deps/openssl/asm/x86-win32-masm/md5/md5-586.asm
  49. +3 −0 deps/openssl/asm/x86-win32-masm/rc5/rc5-586.asm
  50. +2 −1 deps/openssl/asm/x86-win32-masm/ripemd/rmd-586.asm
@@ -1,4 +1,5 @@
.text

.type _x86_64_AES_encrypt,@function
.align 16
_x86_64_AES_encrypt:
@@ -151,6 +152,7 @@ _x86_64_AES_encrypt:
xorl %r12d,%ecx
xorl %r8d,%edx
.byte 0xf3,0xc3

.size _x86_64_AES_encrypt,.-_x86_64_AES_encrypt
.type _x86_64_AES_encrypt_compact,@function
.align 16
@@ -326,6 +328,7 @@ _x86_64_AES_encrypt_compact:
xorl 8(%r15),%ecx
xorl 12(%r15),%edx
.byte 0xf3,0xc3

.size _x86_64_AES_encrypt_compact,.-_x86_64_AES_encrypt_compact
.globl AES_encrypt
.type AES_encrypt,@function
@@ -545,6 +548,7 @@ _x86_64_AES_decrypt:
xorl %r12d,%ecx
xorl %r8d,%edx
.byte 0xf3,0xc3

.size _x86_64_AES_decrypt,.-_x86_64_AES_decrypt
.type _x86_64_AES_decrypt_compact,@function
.align 16
@@ -771,6 +775,7 @@ _x86_64_AES_decrypt_compact:
xorl 8(%r15),%ecx
xorl 12(%r15),%edx
.byte 0xf3,0xc3

.size _x86_64_AES_decrypt_compact,.-_x86_64_AES_decrypt_compact
.globl AES_decrypt
.type AES_decrypt,@function
@@ -1102,6 +1107,7 @@ _x86_64_AES_set_encrypt_key:
movq $-1,%rax
.Lexit:
.byte 0xf3,0xc3

.size _x86_64_AES_set_encrypt_key,.-_x86_64_AES_set_encrypt_key
.globl AES_set_decrypt_key
.type AES_set_decrypt_key,@function
@@ -1380,6 +1386,7 @@ AES_cbc_encrypt:
leaq 80(%rsp),%r15
movl $30,%ecx
.long 0x90A548F3

movl %eax,(%rdi)
.Lcbc_skip_ecopy:
movq %r15,0(%rsp)
@@ -1543,6 +1550,7 @@ AES_cbc_encrypt:
xorq %rax,%rax
.long 0x90AB48F3


jmp .Lcbc_exit


@@ -1598,6 +1606,7 @@ AES_cbc_encrypt:
movl 12(%rbp),%edx
jz .Lcbc_slow_enc_tail


.align 4
.Lcbc_slow_enc_loop:
xorl 0(%r8),%eax
@@ -1642,16 +1651,19 @@ AES_cbc_encrypt:
movq %r8,%rsi
movq %r9,%rdi
.long 0x9066A4F3

movq $16,%rcx
subq %r10,%rcx
xorq %rax,%rax
.long 0x9066AAF3

movq %r9,%r8
movq $16,%r10
movq %r11,%rax
movq %r12,%rcx
jmp .Lcbc_slow_enc_loop


.align 16
.LSLOW_DECRYPT:
shrq $3,%rax
@@ -1727,6 +1739,7 @@ AES_cbc_encrypt:
leaq 64(%rsp),%rsi
leaq 16(%r10),%rcx
.long 0x9066A4F3

jmp .Lcbc_exit

.align 16
@@ -1,5 +1,6 @@
.text


.globl bn_mul_mont
.type bn_mul_mont,@function
.align 16
@@ -1,6 +1,7 @@
.text



.globl Camellia_EncryptBlock
.type Camellia_EncryptBlock,@function
.align 16
@@ -267,6 +268,7 @@ _x86_64_Camellia_encrypt:
movl %edx,%r11d

.byte 0xf3,0xc3

.size _x86_64_Camellia_encrypt,.-_x86_64_Camellia_encrypt


@@ -537,6 +539,7 @@ _x86_64_Camellia_decrypt:
movl %ebx,%r11d

.byte 0xf3,0xc3

.size _x86_64_Camellia_decrypt,.-_x86_64_Camellia_decrypt
.globl Camellia_Ekeygen
.type Camellia_Ekeygen,@function
@@ -1724,6 +1727,7 @@ Camellia_cbc_encrypt:
movq %r12,%rsi
leaq 8+24(%rsp),%rdi
.long 0x9066A4F3

popfq
.Lcbc_enc_popf:

@@ -1732,6 +1736,7 @@ Camellia_cbc_encrypt:
movq %rax,8(%rsp)
jmp .Lcbc_eloop


.align 16
.LCBC_DECRYPT:
xchgq %r14,%r15
@@ -1814,6 +1819,7 @@ Camellia_cbc_encrypt:
leaq 8+24(%rsp),%rsi
leaq (%r13),%rdi
.long 0x9066A4F3

popfq
.Lcbc_dec_popf:

@@ -1,4 +1,5 @@
.text

.align 16

.globl md5_block_asm_data_order
@@ -32,6 +33,7 @@ md5_block_asm_data_order:
je .Lend



.Lloop:
movl %eax,%r8d
movl %ebx,%r9d
@@ -651,6 +653,7 @@ md5_block_asm_data_order:
jb .Lloop



.Lend:
movl %eax,0(%rbp)
movl %ebx,4(%rbp)
@@ -1,5 +1,6 @@
.text


.globl RC4
.type RC4,@function
.align 16
@@ -174,6 +175,7 @@ RC4: orq %rsi,%rsi
cmpq %r10,%r12
movb %r13b,(%rdi,%r8,1)
jne .Lcmov0

movq %r9,%r11
.Lcmov0:
addb %r9b,%r13b
@@ -188,6 +190,7 @@ RC4: orq %rsi,%rsi
cmpq %r8,%r12
movb %r13b,(%rdi,%r10,1)
jne .Lcmov1

movq %r11,%r9
.Lcmov1:
addb %r11b,%r13b
@@ -202,6 +205,7 @@ RC4: orq %rsi,%rsi
cmpq %r10,%r12
movb %r13b,(%rdi,%r8,1)
jne .Lcmov2

movq %r9,%r11
.Lcmov2:
addb %r9b,%r13b
@@ -216,6 +220,7 @@ RC4: orq %rsi,%rsi
cmpq %r8,%r12
movb %r13b,(%rdi,%r10,1)
jne .Lcmov3

movq %r11,%r9
.Lcmov3:
addb %r11b,%r13b
@@ -230,6 +235,7 @@ RC4: orq %rsi,%rsi
cmpq %r10,%r12
movb %r13b,(%rdi,%r8,1)
jne .Lcmov4

movq %r9,%r11
.Lcmov4:
addb %r9b,%r13b
@@ -244,6 +250,7 @@ RC4: orq %rsi,%rsi
cmpq %r8,%r12
movb %r13b,(%rdi,%r10,1)
jne .Lcmov5

movq %r11,%r9
.Lcmov5:
addb %r11b,%r13b
@@ -258,6 +265,7 @@ RC4: orq %rsi,%rsi
cmpq %r10,%r12
movb %r13b,(%rdi,%r8,1)
jne .Lcmov6

movq %r9,%r11
.Lcmov6:
addb %r9b,%r13b
@@ -272,6 +280,7 @@ RC4: orq %rsi,%rsi
cmpq %r8,%r12
movb %r13b,(%rdi,%r10,1)
jne .Lcmov7

movq %r11,%r9
.Lcmov7:
addb %r11b,%r13b
@@ -1,4 +1,5 @@
.text

.globl sha1_block_data_order
.type sha1_block_data_order,@function
.align 16
@@ -1,5 +1,6 @@
.text


.globl sha256_block_data_order
.type sha256_block_data_order,@function
.align 16
@@ -1,5 +1,6 @@
.text


.globl whirlpool_block
.type whirlpool_block,@function
.align 16
@@ -4,17 +4,20 @@

.text


.globl OPENSSL_atomic_add
.type OPENSSL_atomic_add,@function
.align 16
OPENSSL_atomic_add:
movl (%rdi),%eax
.Lspin: leaq (%rsi,%rax,1),%r8
.byte 0xf0

cmpxchgl %r8d,(%rdi)
jne .Lspin
movl %r8d,%eax
.byte 0x48,0x98

.byte 0xf3,0xc3
.size OPENSSL_atomic_add,.-OPENSSL_atomic_add

@@ -1,5 +1,6 @@
.text


.p2align 4
_x86_64_AES_encrypt:
xorl 0(%r15),%eax
@@ -153,6 +154,7 @@ L$enc_loop:
.byte 0xf3,0xc3



.p2align 4
_x86_64_AES_encrypt_compact:
leaq 128(%r14),%r8
@@ -327,6 +329,7 @@ L$enc_compact_done:
xorl 12(%r15),%edx
.byte 0xf3,0xc3


.globl _AES_encrypt

.p2align 4
@@ -547,6 +550,7 @@ L$dec_loop:
.byte 0xf3,0xc3



.p2align 4
_x86_64_AES_decrypt_compact:
leaq 128(%r14),%r8
@@ -772,6 +776,7 @@ L$dec_compact_done:
xorl 12(%r15),%edx
.byte 0xf3,0xc3


.globl _AES_decrypt

.p2align 4
@@ -1103,6 +1108,7 @@ L$badpointer:
L$exit:
.byte 0xf3,0xc3


.globl _AES_set_decrypt_key

.p2align 4
@@ -1380,6 +1386,7 @@ L$cbc_do_ecopy:
leaq 80(%rsp),%r15
movl $30,%ecx
.long 0x90A548F3

movl %eax,(%rdi)
L$cbc_skip_ecopy:
movq %r15,0(%rsp)
@@ -1543,6 +1550,7 @@ L$cbc_fast_cleanup:
xorq %rax,%rax
.long 0x90AB48F3


jmp L$cbc_exit


@@ -1598,6 +1606,7 @@ L$cbc_slow_body:
movl 12(%rbp),%edx
jz L$cbc_slow_enc_tail


.p2align 2
L$cbc_slow_enc_loop:
xorl 0(%r8),%eax
@@ -1642,16 +1651,19 @@ L$cbc_slow_enc_tail:
movq %r8,%rsi
movq %r9,%rdi
.long 0x9066A4F3

movq $16,%rcx
subq %r10,%rcx
xorq %rax,%rax
.long 0x9066AAF3

movq %r9,%r8
movq $16,%r10
movq %r11,%rax
movq %r12,%rcx
jmp L$cbc_slow_enc_loop


.p2align 4
L$SLOW_DECRYPT:
shrq $3,%rax
@@ -1727,6 +1739,7 @@ L$cbc_slow_dec_partial:
leaq 64(%rsp),%rsi
leaq 16(%r10),%rcx
.long 0x9066A4F3

jmp L$cbc_exit

.p2align 4
@@ -1,5 +1,6 @@
.text


.globl _bn_mul_mont

.p2align 4

0 comments on commit 9aff820

Please sign in to comment.
You can’t perform that action at this time.