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

« back to all changes in this revision

Viewing changes to x86_64/sha1-compress.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:
1
1
C nettle, low-level cryptographics library
2
2
3
 
C Copyright (C) 2004, 2008 Niels M�ller
 
3
C Copyright (C) 2004, 2008 Niels Möller
4
4
C  
5
5
C The nettle library is free software; you can redistribute it and/or modify
6
6
C it under the terms of the GNU Lesser General Public License as published by
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
C Register usage. KVALUE and INPUT share a register.
21
21
define(<SA>,<%eax>)dnl
123
123
        C _nettle_sha1_compress(uint32_t *state, uint8_t *input)
124
124
        
125
125
        .text
126
 
        ALIGN(4)
 
126
        ALIGN(16)
127
127
PROLOGUE(_nettle_sha1_compress)
128
128
        C save all registers that need to be saved
 
129
        W64_ENTRY(2, 0)
129
130
        
130
131
        sub     $68, %rsp       C  %rsp = W
131
132
 
250
251
        addl    SE, 16(STATE)
251
252
 
252
253
        add     $68, %rsp
 
254
        W64_EXIT(2, 0)
253
255
        ret
254
256
EPILOGUE(_nettle_sha1_compress)