From: Niels Möller Date: Sat, 16 Feb 2002 00:10:28 +0000 (+0100) Subject: (_aes_crypt): In the final loop, use ctx+round to access the X-Git-Tag: nettle_1.6_release_20021003~278 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6eac6a2ee7103a04b8f422df50c784107729f4c;p=thirdparty%2Fnettle.git (_aes_crypt): In the final loop, use ctx+round to access the subkeys, no need for an extra register. Rev: src/nettle/sparc/aes.asm:1.40 --- diff --git a/sparc/aes.asm b/sparc/aes.asm index e0cd39ff..61e44fab 100644 --- a/sparc/aes.asm +++ b/sparc/aes.asm @@ -183,10 +183,7 @@ _aes_crypt: blu .Lround_loop xor tmp, diff, tmp - ! sll round, 4, %g2 - ! final round - add round, ctx, %o7 mov 0, i add T, 288, %g4 .Lfinal_loop: @@ -215,7 +212,7 @@ _aes_crypt: ldub [T+%o3], %o5 sll %g2, 16, %g2 or %g3, %g2, %g3 - ld [%o7], %g2 + ld [ctx + round], %g2 sll %o5, 24, %o5 or %g3, %o5, %g3 xor %g3, %g2, %g3 @@ -226,7 +223,7 @@ _aes_crypt: stb %o5, [%o2+3] stb %o0, [%o2+2] stb %g3, [dst+%i5] - add %o7, 4, %o7 + add round, 4, round bleu .Lfinal_loop add %g4, 4, %g4