From c6eac6a2ee7103a04b8f422df50c784107729f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Sat, 16 Feb 2002 01:10:28 +0100 Subject: [PATCH] (_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 --- sparc/aes.asm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 -- GitLab