From: Niels Möller Date: Sat, 13 Sep 2008 19:59:45 +0000 (+0200) Subject: New macro XREG. X-Git-Tag: nettle_2.0_release_20090608~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b8cfa50520a7942f11522366c06dc246beda9b0;p=thirdparty%2Fnettle.git New macro XREG. Rev: nettle/x86_64/aes.m4:1.2 --- diff --git a/x86_64/aes.m4 b/x86_64/aes.m4 index fa4851e6..f9a85de5 100644 --- a/x86_64/aes.m4 +++ b/x86_64/aes.m4 @@ -17,6 +17,24 @@ define(,)dnl +define(,)dnl + dnl AES_LOAD(a, b, c, d, src, key) dnl Loads the next block of data from src, and add the subkey pointed dnl to by key. @@ -54,15 +72,15 @@ dnl Computes one word of the AES round. Leaves result in $6. define(, < movzbl LREG($2), $7 movl AES_TABLE0 ($1, $7, 4),$6 - movl $3, $7 + movl $3, XREG($7) shrl <$>8,$7 andl <$>0xff,$7 xorl AES_TABLE1 ($1, $7, 4),$6 - movl $4,$7 + movl $4,XREG($7) shrl <$>16,$7 andl <$>0xff,$7 xorl AES_TABLE2 ($1, $7, 4),$6 - movl $5,$7 + movl $5,XREG($7) xorl AES_TABLE3 ($1, $7, 4),$6>)dnl dnl AES_FINAL_ROUND(a, b, c, d, table out, tmp)