From 5a7a28557437e722382161ebee87532e2c88e23a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Mon, 25 Feb 2002 15:00:43 +0100 Subject: [PATCH] (_aes_crypt): In final_loop, use the register idx. Rev: src/nettle/sparc/aes.asm:1.57 --- src/nettle/sparc/aes.asm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/nettle/sparc/aes.asm b/src/nettle/sparc/aes.asm index 19e3939b..4fbd5d9d 100644 --- a/src/nettle/sparc/aes.asm +++ b/src/nettle/sparc/aes.asm @@ -168,23 +168,23 @@ _aes_crypt: ! final round mov 0, i ! SIDX3 - add T, AES_SIDX3, %g4 + add T, AES_SIDX3, idx .Lfinal_loop: ! Comments mark which j in T->sbox[Bj(wtxt[IDXj(i)])] ! the instruction is part of - ld [%g4-32], t1 ! 1 + ld [idx-32], t1 ! 1 sll i, 2, %i5 add wtxt, t1, t1 ! 1 ldub [t1+2], t1 ! 1 add %i5, dst, %g2 - ld [%g4-16], t2 ! 2 + ld [idx-16], t2 ! 2 add i, 1, i ld [wtxt+%i5], t0 ! 0 lduh [wtxt+t2], t2 ! 2 and t0, 255, t0 ! 0 - ld [%g4], t3 ! 3 + ld [idx], t3 ! 3 and t2, 255, t2 ! 2 ldub [T+t1], t1 ! 1 @@ -210,7 +210,7 @@ _aes_crypt: stb %g3, [dst+%i5] add round, 4, round bleu .Lfinal_loop - add %g4, 4, %g4 + add idx, 4, idx addcc length, -16, length bne .Lblock_loop -- GitLab