Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
075afd79
Commit
075afd79
authored
Sep 13, 2008
by
Niels Möller
Browse files
* x86/aes.m4 (AES_FINAL_ROUND): Do the substitution on the least
significant byte here. Rev: nettle/x86/aes.m4:1.5
parent
b60efb20
Changes
1
Hide whitespace changes
Inline
Side-by-side
x86/aes.m4
View file @
075afd79
...
...
@@ -59,22 +59,22 @@ define(<AES_ROUND>, <
shrl <$>24,$7
xorl AES_TABLE3 ($1, $7, 4),$6>)dnl
dnl AES_FINAL_ROUND(a, b, c, d, out, tmp)
dnl Computes one word of the final round.
Leaves result in %edi.
dnl AES_FINAL_ROUND(a, b, c, d,
table,
out, tmp)
dnl Computes one word of the final round.
dnl Note that we have to quote $ in constants.
define(<AES_FINAL_ROUND>, <
C FIXME: Perform substitution on least significant byte here,
C to save work later.
mov
zbl LREG($1)
,$
5
movl $2
,$
6
andl <$>0x0000ff00,
$6
orl $6, $5
movl $3
,$
6
andl <$>0x00ff0000,
$6
orl $6, $5
movl $4
,$
6
andl <$>0xff000000,
$6
orl $6
, $
5
>)dnl
movzbl LREG($1),$6
movzbl ($5, $6), $6
mov
l $2
,$
7
andl <$>0x0000ff00
,$
7
orl $7,
$6
movl $3,$7
andl <$>0x00ff0000
,$
7
orl $7,
$6
movl $4,$7
andl <$>0xff000000
,$
7
orl $7,
$6
roll <$>8
, $
6
>)dnl
dnl AES_SUBST_BYTE(A, B, C, D, table, ptr)
dnl Substitutes the least significant byte of
...
...
Write
Preview
Supports
Markdown
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