From 70a6e73e62a79d72874f81bde61f897973ec1577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Wed, 15 May 2002 21:47:56 +0200 Subject: [PATCH] (_aes_crypt): Eliminated i from the first copy of the inner loop. (_aes_crypt): And from the second copy. (_aes_crypt): And from the third copy. (_aes_crypt): And from the fourth copy. Rev: src/nettle/sparc/aes.asm:1.82 --- sparc/aes.asm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sparc/aes.asm b/sparc/aes.asm index 277a8582..7c838bd4 100644 --- a/sparc/aes.asm +++ b/sparc/aes.asm @@ -253,16 +253,17 @@ _aes_crypt: add i, 4, i C = 3 - ld [IDX1+i], t1 ! 1 + ld [IDX1+12], t1 ! 1 ! IDX2(j) = j XOR 2 - xor i, 8, t2 + C xor i, 8, t2 ! 2 + mov 4, t2 ! 2 add wtxt, t1, t1 ! 1 ldub [t1+2], t1 ! 1 - ld [IDX3+i], t3 ! 3 + ld [IDX3+12], t3 ! 3 sll t1, 2, t1 ! 1 - ld [wtxt+i], t0 ! 0 + ld [wtxt+12], t0 ! 0 lduh [wtxt+t2], t2 ! 2 and t0, 255, t0 ! 0 @@ -280,11 +281,11 @@ _aes_crypt: xor t0, t1, t0 ! 0, 1 xor t0, t2, t0 ! 0, 1, 2 ! Fetch roundkey - ld [key+i], t1 + ld [key+12], t1 xor t0, t3, t0 ! 0, 1, 2, 3 xor t0, t1, t0 - st t0, [tmp+i] + st t0, [tmp+12] add i, 4, i C End loop -- GitLab