Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
49f1e507
Commit
49f1e507
authored
Oct 01, 2010
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ROUND): Reordered sbox lookups.
Rev: nettle/x86_64/camellia-crypt-internal.asm:1.2
parent
0d6eef1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
x86_64/camellia-crypt-internal.asm
x86_64/camellia-crypt-internal.asm
+19
-7
No files found.
x86_64/camellia-crypt-internal.asm
View file @
49f1e507
...
...
@@ -18,6 +18,12 @@ C along with the nettle library; see the file COPYING.LIB. If not, write to
C
the
Free
Software
Foundation
,
Inc.
,
59
Temple
Place
-
Suite
330
,
Boston
,
C
MA
02111
-
1307
,
USA.
C
Performance
,
cycles
per
bl
ock
C
C
Intel
SU4100
C
C
asm
C
Camellia
-
128
415
347
C
Camellia
-
256
543
461
C
Register
usage
:
...
...
@@ -43,29 +49,35 @@ define(<SP4404>, <3072(TABLE,$1,4)>)
C
ROUND
(
x
,
y
,
key
-
offset
)
define
(
<
ROUND
>
,
<
C
Byte
0
,
1
movzbl
LREG
(
$
1
),
XREG
(
TMP
)
movl
SP
1110
(
TMP
),
XREG
(
IR
)
movzbl
HREG
(
$
1
),
XREG
(
TMP
)
xorl
SP
4404
(
TMP
),
XREG
(
IR
)
ror
<
$
>
16
,
$
1
ror
<
$
>
32
,
$
1
C
Byte
4
,
5
movzbl
LREG
(
$
1
),
XREG
(
TMP
)
xor
l
SP
3033
(
TMP
),
XREG
(
I
R
)
mov
l
SP
4404
(
TMP
),
XREG
(
I
L
)
movzbl
HREG
(
$
1
),
XREG
(
TMP
)
xorl
SP
0222
(
TMP
),
XREG
(
I
R
)
ro
r
<
$
>
16
,
$
1
xorl
SP
3033
(
TMP
),
XREG
(
I
L
)
ro
l
<
$
>
16
,
$
1
C
Byte
2
,
3
movzbl
LREG
(
$
1
),
XREG
(
TMP
)
mov
l
SP
4404
(
TMP
),
XREG
(
I
L
)
xor
l
SP
3033
(
TMP
),
XREG
(
I
R
)
movzbl
HREG
(
$
1
),
XREG
(
TMP
)
xorl
SP
3033
(
TMP
),
XREG
(
I
L
)
ror
<
$
>
16
,
$
1
xorl
SP
0222
(
TMP
),
XREG
(
I
R
)
ror
<
$
>
32
,
$
1
C
Byte
6
,
7
movzbl
LREG
(
$
1
),
XREG
(
TMP
)
xorl
SP
0222
(
TMP
),
XREG
(
IL
)
movzbl
HREG
(
$
1
),
XREG
(
TMP
)
xorl
SP
1110
(
TMP
),
XREG
(
IL
)
ror
<
$
>
16
,
$
1
C
76543210
xorl
XREG
(
IL
),
XREG
(
IR
)
rorl
<
$
>
8
,
XREG
(
IL
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment