~ubuntu-branches/ubuntu/utopic/nettle/utopic

« back to all changes in this revision

Viewing changes to x86_64/aes-decrypt-internal.asm

  • Committer: Package Import Robot
  • Author(s): Magnus Holmgren
  • Date: 2013-05-07 22:57:14 UTC
  • mfrom: (8.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130507225714-s331yr8ov53dtt17
Tags: 2.7-2
Tag some (ECC related) symbols that only exist on some architectures.

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) 2001, 2002, 2005, 2008 Rafael R. Sevilla, Niels M�ller
 
3
C Copyright (C) 2001, 2002, 2005, 2008 Rafael R. Sevilla, 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
include_src(<x86_64/aes.m4>)
21
21
 
53
53
        C              unsigned length, uint8_t *dst,
54
54
        C              uint8_t *src)
55
55
        .text
56
 
        ALIGN(4)
 
56
        ALIGN(16)
57
57
PROLOGUE(_nettle_aes_decrypt)
 
58
        W64_ENTRY(5, 0)
58
59
        test    PARAM_LENGTH, PARAM_LENGTH
59
60
        jz      .Lend
60
61
 
80
81
        subl    $1, COUNT
81
82
 
82
83
        add     $16,KEY         C  point to next key
83
 
        ALIGN(4)
 
84
        ALIGN(16)
84
85
.Lround_loop:
85
86
        AES_ROUND(TABLE, SA,SD,SC,SB, TA, TMP)
86
87
        AES_ROUND(TABLE, SB,SA,SD,SC, TB, TMP)
129
130
        pop     %rbp
130
131
        pop     %rbx
131
132
.Lend:
 
133
        W64_EXIT(5, 0)
132
134
        ret
133
135
EPILOGUE(_nettle_aes_decrypt)