~ubuntu-branches/ubuntu/vivid/nettle/vivid-proposed

« back to all changes in this revision

Viewing changes to x86_64/serpent-decrypt.asm

  • Committer: Package Import Robot
  • Author(s): Magnus Holmgren
  • Date: 2013-05-04 19:50:28 UTC
  • mfrom: (1.4.6) (3.1.11 experimental)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20130504195028-fp6c9fw1tsm5scwa
Tags: 2.7-1
* New upstream release (Closes: #706081).
* Include watch file improvements from Bart Martens <bartm@debian.org>
  via the QA system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
15
15
C You should have received a copy of the GNU Lesser General Public License
16
16
C along with the nettle library; see the file COPYING.LIB.  If not, write to
17
 
C the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18
 
C MA 02111-1307, USA.
 
17
C the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
18
C MA 02111-1301, USA.
19
19
 
20
20
include_src(<x86_64/serpent.m4>)
21
21
 
522
522
        C                 unsigned length, uint8_t *dst,
523
523
        C                 const uint8_t *src)
524
524
        .text
525
 
        ALIGN(4)
 
525
        ALIGN(16)
526
526
PROLOGUE(nettle_serpent_decrypt)
527
527
        C save all registers that need to be saved
 
528
        W64_ENTRY(4, 13)
528
529
        push    %rbx
529
530
        push    %rbp
530
531
        push    %r12
556
557
 
557
558
        jmp     .Lwround_start
558
559
 
559
 
        ALIGN(4)
 
560
        ALIGN(16)
560
561
 
561
562
.Lwround_loop:
562
563
        WLTI(X0,X1,X2,X3)
623
624
        mov     $384, CNT
624
625
        jmp     .Lround_start
625
626
 
626
 
        ALIGN(4)
 
627
        ALIGN(16)
627
628
.Lround_loop:
628
629
        LTI(x0,x1,x2,x3)
629
630
.Lround_start:
697
698
        pop     %r12
698
699
        pop     %rbp
699
700
        pop     %rbx
 
701
        W64_EXIT(4, 13)
700
702
        ret