1 # Copyright (c) 2011-2012, Andy Polyakov <appro@openssl.org>
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions
8 # * Redistributions of source code must retain copyright notices,
9 # this list of conditions and the following disclaimer.
11 # * Redistributions in binary form must reproduce the above
12 # copyright notice, this list of conditions and the following
13 # disclaimer in the documentation and/or other materials
14 # provided with the distribution.
16 # * Neither the name of the Andy Polyakov nor the names of its
17 # copyright holder and contributors may be used to endorse or
18 # promote products derived from this software without specific
19 # prior written permission.
21 # ALTERNATIVELY, provided that this notice is retained in full, this
22 # product may be distributed under the terms of the GNU General Public
23 # License (GPL), in which case the provisions of the GPL apply INSTEAD OF
26 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS
27 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
32 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 # *** This file is auto-generated ***
40 .file "devel/perlasm/e_padlock-x86.s"
42 .globl _padlock_capability
45 L_padlock_capability_begin:
91 .globl _padlock_key_bswap
94 L_padlock_key_bswap_begin:
105 .globl _padlock_verify_context
107 _padlock_verify_context:
108 L_padlock_verify_context_begin:
110 leal Lpadlock_saved_context-L002verify_pic_point,%eax
112 call __padlock_verify_ctx
113 L002verify_pic_point:
117 __padlock_verify_ctx:
128 .globl _padlock_reload_key
131 L_padlock_reload_key_begin:
135 .globl _padlock_aes_block
138 L_padlock_aes_block_begin:
153 .globl _padlock_ecb_encrypt
155 _padlock_ecb_encrypt:
156 L_padlock_ecb_encrypt_begin:
169 leal Lpadlock_saved_context-L005ecb_pic_point,%eax
172 call __padlock_verify_ctx
195 leal (%eax,%ebp,1),%esp
214 jz L008ecb_unaligned_tail
226 jz L009ecb_inp_aligned
240 jz L010ecb_out_aligned
256 L008ecb_unaligned_tail:
287 leal (%esi,%ecx,1),%ebp
296 jz L015ecb_aligned_tail
303 L015ecb_aligned_tail:
330 .globl _padlock_cbc_encrypt
332 _padlock_cbc_encrypt:
333 L_padlock_cbc_encrypt_begin:
346 leal Lpadlock_saved_context-L017cbc_pic_point,%eax
349 call __padlock_verify_ctx
372 leal (%eax,%ebp,1),%esp
391 jz L020cbc_unaligned_tail
403 jz L021cbc_inp_aligned
415 movaps %xmm0,-16(%edx)
419 jz L022cbc_out_aligned
435 L020cbc_unaligned_tail:
466 leal (%esi,%ecx,1),%ebp
475 jz L027cbc_aligned_tail
481 movaps %xmm0,-16(%edx)
484 L027cbc_aligned_tail:
511 .globl _padlock_xstore
514 L_padlock_xstore_begin:
522 __win32_segv_handler:
526 cmpl $3221225477,(%edx)
532 .globl _padlock_sha1_oneshot
534 _padlock_sha1_oneshot:
535 L_padlock_sha1_oneshot_begin:
561 .globl _padlock_sha1_blocks
563 _padlock_sha1_blocks:
564 L_padlock_sha1_blocks_begin:
589 .globl _padlock_sha256_oneshot
591 _padlock_sha256_oneshot:
592 L_padlock_sha256_oneshot_begin:
603 movups 16(%edi),%xmm1
606 movaps %xmm1,16(%esp)
610 movaps 16(%esp),%xmm1
614 movups %xmm1,16(%edi)
618 .globl _padlock_sha256_blocks
620 _padlock_sha256_blocks:
621 L_padlock_sha256_blocks_begin:
631 movups 16(%edi),%xmm1
634 movaps %xmm1,16(%esp)
638 movaps 16(%esp),%xmm1
642 movups %xmm1,16(%edi)
646 .globl _padlock_sha512_blocks
648 _padlock_sha512_blocks:
649 L_padlock_sha512_blocks_begin:
659 movups 16(%edi),%xmm1
660 movups 32(%edi),%xmm2
661 movups 48(%edi),%xmm3
664 movaps %xmm1,16(%esp)
665 movaps %xmm2,32(%esp)
666 movaps %xmm3,48(%esp)
669 movaps 16(%esp),%xmm1
670 movaps 32(%esp),%xmm2
671 movaps 48(%esp),%xmm3
675 movups %xmm1,16(%edi)
676 movups %xmm2,32(%edi)
677 movups %xmm3,48(%edi)
681 .byte 86,73,65,32,80,97,100,108,111,99,107,32,120,56,54,32
682 .byte 109,111,100,117,108,101,44,32,67,82,89,80,84,79,71,65
683 .byte 77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101
684 .byte 110,115,115,108,46,111,114,103,62,0
688 Lpadlock_saved_context: