Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssl/lib/libcrypto/arch/i386 XXX: use...



details:   https://anonhg.NetBSD.org/src/rev/0310d0b5815d
branches:  trunk
changeset: 829730:0310d0b5815d
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Feb 09 16:06:59 2018 +0000

description:
XXX: use /dev/stdout because OpenSSL changed the params for i386!!?!?

diffstat:

 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/Makefile           |     4 +-
 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/aes-586.S          |    26 +-
 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/aesni-x86.S        |  1032 +-
 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/bn.inc             |     2 +-
 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/cast-586.S         |   128 +-
 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/chacha-x86.S       |   369 +
 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/cmll-x86.S         |    10 +-
 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/crypt586.S         |    10 +-
 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S    |  1031 ++
 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/ec.inc             |     6 +
 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/ecp_nistz256-x86.S |  4884 ++++++++++
 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/md5-586.S          |   160 +-
 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/poly1305-x86.S     |   277 +
 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/rc4-586.S          |    95 +-
 crypto/external/bsd/openssl/lib/libcrypto/arch/i386/x86cpuid.S         |   271 +-
 15 files changed, 7892 insertions(+), 413 deletions(-)

diffs (truncated from 9735 to 300 lines):

diff -r bdbaa72190ba -r 0310d0b5815d crypto/external/bsd/openssl/lib/libcrypto/arch/i386/Makefile
--- a/crypto/external/bsd/openssl/lib/libcrypto/arch/i386/Makefile      Fri Feb 09 15:24:35 2018 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/arch/i386/Makefile      Fri Feb 09 16:06:59 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2018/02/09 13:25:41 christos Exp $
+#      $NetBSD: Makefile,v 1.9 2018/02/09 16:06:59 christos Exp $
 
 .include "bsd.own.mk"
 
@@ -9,7 +9,7 @@
        for i in $$(find ${OPENSSLSRC} -name \*86.pl) \
                  ${OPENSSLSRC}/crypto/x86cpuid.pl; do \
                perl -I${OPENSSLSRC}/crypto/perlasm \
-               -I${OPENSSLSRC}/crypto/bn/asm $$i elf -fPIC \
+               -I${OPENSSLSRC}/crypto/bn/asm $$i elf /dev/stdout \
                | sed -e 's,^\.file.*$$,#include <machine/asm.h>,' \
                        -e 's/  call    OPENSSL_cpuid_setup/    PIC_PROLOGUE!   call    PIC_PLT(OPENSSL_cpuid_setup)!   PIC_EPILOGUE/' | tr '!' '\n' \
                > $$(basename $$i .pl).S; \
diff -r bdbaa72190ba -r 0310d0b5815d crypto/external/bsd/openssl/lib/libcrypto/arch/i386/aes-586.S
--- a/crypto/external/bsd/openssl/lib/libcrypto/arch/i386/aes-586.S     Fri Feb 09 15:24:35 2018 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/arch/i386/aes-586.S     Fri Feb 09 16:06:59 2018 +0000
@@ -1000,7 +1000,7 @@
        call    .L004pic_point
 .L004pic_point:
        popl    %ebp
-       leal    OPENSSL_ia32cap_P-.L004pic_point(%ebp),%eax
+       leal    OPENSSL_ia32cap_P,%eax
        leal    .LAES_Te-.L004pic_point(%ebp),%ebp
        leal    764(%esp),%ebx
        subl    %ebp,%ebx
@@ -2192,7 +2192,7 @@
        call    .L010pic_point
 .L010pic_point:
        popl    %ebp
-       leal    OPENSSL_ia32cap_P-.L010pic_point(%ebp),%eax
+       leal    OPENSSL_ia32cap_P,%eax
        leal    .LAES_Td-.L010pic_point(%ebp),%ebp
        leal    764(%esp),%ebx
        subl    %ebp,%ebx
@@ -2248,7 +2248,7 @@
        call    .L013pic_point
 .L013pic_point:
        popl    %ebp
-       leal    OPENSSL_ia32cap_P-.L013pic_point(%ebp),%eax
+       leal    OPENSSL_ia32cap_P,%eax
        cmpl    $0,40(%esp)
        leal    .LAES_Te-.L013pic_point(%ebp),%ebp
        jne     .L014picked_te
@@ -2996,19 +2996,19 @@
        popl    %ebp
        ret
 .size  _x86_AES_set_encrypt_key,.-_x86_AES_set_encrypt_key
-.globl private_AES_set_encrypt_key
-.type  private_AES_set_encrypt_key,@function
+.globl AES_set_encrypt_key
+.type  AES_set_encrypt_key,@function
 .align 16
-private_AES_set_encrypt_key:
-.L_private_AES_set_encrypt_key_begin:
+AES_set_encrypt_key:
+.L_AES_set_encrypt_key_begin:
        call    _x86_AES_set_encrypt_key
        ret
-.size  private_AES_set_encrypt_key,.-.L_private_AES_set_encrypt_key_begin
-.globl private_AES_set_decrypt_key
-.type  private_AES_set_decrypt_key,@function
+.size  AES_set_encrypt_key,.-.L_AES_set_encrypt_key_begin
+.globl AES_set_decrypt_key
+.type  AES_set_decrypt_key,@function
 .align 16
-private_AES_set_decrypt_key:
-.L_private_AES_set_decrypt_key_begin:
+AES_set_decrypt_key:
+.L_AES_set_decrypt_key_begin:
        call    _x86_AES_set_encrypt_key
        cmpl    $0,%eax
        je      .L054proceed
@@ -3237,7 +3237,7 @@
        popl    %ebx
        popl    %ebp
        ret
-.size  private_AES_set_decrypt_key,.-.L_private_AES_set_decrypt_key_begin
+.size  AES_set_decrypt_key,.-.L_AES_set_decrypt_key_begin
 .byte  65,69,83,32,102,111,114,32,120,56,54,44,32,67,82,89
 .byte  80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114
 .byte  111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
diff -r bdbaa72190ba -r 0310d0b5815d crypto/external/bsd/openssl/lib/libcrypto/arch/i386/aesni-x86.S
--- a/crypto/external/bsd/openssl/lib/libcrypto/arch/i386/aesni-x86.S   Fri Feb 09 15:24:35 2018 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/arch/i386/aesni-x86.S   Fri Feb 09 16:06:59 2018 +0000
@@ -1790,6 +1790,796 @@
        popl    %ebp
        ret
 .size  aesni_xts_decrypt,.-.L_aesni_xts_decrypt_begin
+.globl aesni_ocb_encrypt
+.type  aesni_ocb_encrypt,@function
+.align 16
+aesni_ocb_encrypt:
+.L_aesni_ocb_encrypt_begin:
+       pushl   %ebp
+       pushl   %ebx
+       pushl   %esi
+       pushl   %edi
+       movl    40(%esp),%ecx
+       movl    48(%esp),%ebx
+       movl    20(%esp),%esi
+       movl    24(%esp),%edi
+       movl    28(%esp),%eax
+       movl    32(%esp),%edx
+       movdqu  (%ecx),%xmm0
+       movl    36(%esp),%ebp
+       movdqu  (%ebx),%xmm1
+       movl    44(%esp),%ebx
+       movl    %esp,%ecx
+       subl    $132,%esp
+       andl    $-16,%esp
+       subl    %esi,%edi
+       shll    $4,%eax
+       leal    -96(%esi,%eax,1),%eax
+       movl    %edi,120(%esp)
+       movl    %eax,124(%esp)
+       movl    %ecx,128(%esp)
+       movl    240(%edx),%ecx
+       testl   $1,%ebp
+       jnz     .L074odd
+       bsfl    %ebp,%eax
+       addl    $1,%ebp
+       shll    $4,%eax
+       movdqu  (%ebx,%eax,1),%xmm7
+       movl    %edx,%eax
+       movdqu  (%esi),%xmm2
+       leal    16(%esi),%esi
+       pxor    %xmm0,%xmm7
+       pxor    %xmm2,%xmm1
+       pxor    %xmm7,%xmm2
+       movdqa  %xmm1,%xmm6
+       movups  (%edx),%xmm0
+       movups  16(%edx),%xmm1
+       leal    32(%edx),%edx
+       xorps   %xmm0,%xmm2
+.L075enc1_loop_15:
+.byte  102,15,56,220,209
+       decl    %ecx
+       movups  (%edx),%xmm1
+       leal    16(%edx),%edx
+       jnz     .L075enc1_loop_15
+.byte  102,15,56,221,209
+       xorps   %xmm7,%xmm2
+       movdqa  %xmm7,%xmm0
+       movdqa  %xmm6,%xmm1
+       movups  %xmm2,-16(%edi,%esi,1)
+       movl    240(%eax),%ecx
+       movl    %eax,%edx
+       movl    124(%esp),%eax
+.L074odd:
+       shll    $4,%ecx
+       movl    $16,%edi
+       subl    %ecx,%edi
+       movl    %edx,112(%esp)
+       leal    32(%edx,%ecx,1),%edx
+       movl    %edi,116(%esp)
+       cmpl    %eax,%esi
+       ja      .L076short
+       jmp     .L077grandloop
+.align 32
+.L077grandloop:
+       leal    1(%ebp),%ecx
+       leal    3(%ebp),%eax
+       leal    5(%ebp),%edi
+       addl    $6,%ebp
+       bsfl    %ecx,%ecx
+       bsfl    %eax,%eax
+       bsfl    %edi,%edi
+       shll    $4,%ecx
+       shll    $4,%eax
+       shll    $4,%edi
+       movdqu  (%ebx),%xmm2
+       movdqu  (%ebx,%ecx,1),%xmm3
+       movl    116(%esp),%ecx
+       movdqa  %xmm2,%xmm4
+       movdqu  (%ebx,%eax,1),%xmm5
+       movdqa  %xmm2,%xmm6
+       movdqu  (%ebx,%edi,1),%xmm7
+       pxor    %xmm0,%xmm2
+       pxor    %xmm2,%xmm3
+       movdqa  %xmm2,(%esp)
+       pxor    %xmm3,%xmm4
+       movdqa  %xmm3,16(%esp)
+       pxor    %xmm4,%xmm5
+       movdqa  %xmm4,32(%esp)
+       pxor    %xmm5,%xmm6
+       movdqa  %xmm5,48(%esp)
+       pxor    %xmm6,%xmm7
+       movdqa  %xmm6,64(%esp)
+       movdqa  %xmm7,80(%esp)
+       movups  -48(%edx,%ecx,1),%xmm0
+       movdqu  (%esi),%xmm2
+       movdqu  16(%esi),%xmm3
+       movdqu  32(%esi),%xmm4
+       movdqu  48(%esi),%xmm5
+       movdqu  64(%esi),%xmm6
+       movdqu  80(%esi),%xmm7
+       leal    96(%esi),%esi
+       pxor    %xmm2,%xmm1
+       pxor    %xmm0,%xmm2
+       pxor    %xmm3,%xmm1
+       pxor    %xmm0,%xmm3
+       pxor    %xmm4,%xmm1
+       pxor    %xmm0,%xmm4
+       pxor    %xmm5,%xmm1
+       pxor    %xmm0,%xmm5
+       pxor    %xmm6,%xmm1
+       pxor    %xmm0,%xmm6
+       pxor    %xmm7,%xmm1
+       pxor    %xmm0,%xmm7
+       movdqa  %xmm1,96(%esp)
+       movups  -32(%edx,%ecx,1),%xmm1
+       pxor    (%esp),%xmm2
+       pxor    16(%esp),%xmm3
+       pxor    32(%esp),%xmm4
+       pxor    48(%esp),%xmm5
+       pxor    64(%esp),%xmm6
+       pxor    80(%esp),%xmm7
+       movups  -16(%edx,%ecx,1),%xmm0
+.byte  102,15,56,220,209
+.byte  102,15,56,220,217
+.byte  102,15,56,220,225
+.byte  102,15,56,220,233
+.byte  102,15,56,220,241
+.byte  102,15,56,220,249
+       movl    120(%esp),%edi
+       movl    124(%esp),%eax
+       call    .L_aesni_encrypt6_enter
+       movdqa  80(%esp),%xmm0
+       pxor    (%esp),%xmm2
+       pxor    16(%esp),%xmm3
+       pxor    32(%esp),%xmm4
+       pxor    48(%esp),%xmm5
+       pxor    64(%esp),%xmm6
+       pxor    %xmm0,%xmm7
+       movdqa  96(%esp),%xmm1
+       movdqu  %xmm2,-96(%edi,%esi,1)
+       movdqu  %xmm3,-80(%edi,%esi,1)
+       movdqu  %xmm4,-64(%edi,%esi,1)
+       movdqu  %xmm5,-48(%edi,%esi,1)
+       movdqu  %xmm6,-32(%edi,%esi,1)
+       movdqu  %xmm7,-16(%edi,%esi,1)
+       cmpl    %eax,%esi
+       jb      .L077grandloop
+.L076short:
+       addl    $96,%eax
+       subl    %esi,%eax
+       jz      .L078done
+       cmpl    $32,%eax
+       jb      .L079one
+       je      .L080two
+       cmpl    $64,%eax
+       jb      .L081three
+       je      .L082four
+       leal    1(%ebp),%ecx
+       leal    3(%ebp),%eax
+       bsfl    %ecx,%ecx
+       bsfl    %eax,%eax
+       shll    $4,%ecx
+       shll    $4,%eax
+       movdqu  (%ebx),%xmm2
+       movdqu  (%ebx,%ecx,1),%xmm3
+       movl    116(%esp),%ecx
+       movdqa  %xmm2,%xmm4
+       movdqu  (%ebx,%eax,1),%xmm5
+       movdqa  %xmm2,%xmm6
+       pxor    %xmm0,%xmm2
+       pxor    %xmm2,%xmm3
+       movdqa  %xmm2,(%esp)
+       pxor    %xmm3,%xmm4
+       movdqa  %xmm3,16(%esp)
+       pxor    %xmm4,%xmm5
+       movdqa  %xmm4,32(%esp)
+       pxor    %xmm5,%xmm6
+       movdqa  %xmm5,48(%esp)
+       pxor    %xmm6,%xmm7
+       movdqa  %xmm6,64(%esp)
+       movups  -48(%edx,%ecx,1),%xmm0
+       movdqu  (%esi),%xmm2
+       movdqu  16(%esi),%xmm3
+       movdqu  32(%esi),%xmm4
+       movdqu  48(%esi),%xmm5
+       movdqu  64(%esi),%xmm6
+       pxor    %xmm7,%xmm7
+       pxor    %xmm2,%xmm1
+       pxor    %xmm0,%xmm2
+       pxor    %xmm3,%xmm1
+       pxor    %xmm0,%xmm3
+       pxor    %xmm4,%xmm1
+       pxor    %xmm0,%xmm4
+       pxor    %xmm5,%xmm1
+       pxor    %xmm0,%xmm5
+       pxor    %xmm6,%xmm1
+       pxor    %xmm0,%xmm6
+       movdqa  %xmm1,96(%esp)
+       movups  -32(%edx,%ecx,1),%xmm1



Home | Main Index | Thread Index | Old Index