diff options
author | Niels Möller <nisse@lysator.liu.se> | 2002-05-15 21:43:39 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2002-05-15 21:43:39 +0200 |
commit | 8c2e990fd1a66fffbd5a65e0e19ec688ad87ead5 (patch) | |
tree | 1e5750a4f46a45b87b3c58cfaf7db3fbc62bc9eb /sparc | |
parent | 905ee0c7ba7476f7a48d971e62911df2d87ecdc5 (diff) | |
download | nettle-8c2e990fd1a66fffbd5a65e0e19ec688ad87ead5.tar.gz |
(_aes_crypt): Eliminated i from the first copy of the inner loop.
(_aes_crypt): And from the second copy.
Rev: src/nettle/sparc/aes.asm:1.80
Diffstat (limited to 'sparc')
-rw-r--r-- | sparc/aes.asm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sparc/aes.asm b/sparc/aes.asm index 43c8a2c6..6ebecdd7 100644 --- a/sparc/aes.asm +++ b/sparc/aes.asm @@ -181,16 +181,17 @@ _aes_crypt: add i, 4, i C i = 1 - ld [IDX1+i], t1 ! 1 + ld [IDX1+4], t1 ! 1 ! IDX2(j) = j XOR 2 - xor i, 8, t2 + C xor i, 8, t2 ! 2 + mov 12, t2 ! 2 add wtxt, t1, t1 ! 1 ldub [t1+2], t1 ! 1 - ld [IDX3+i], t3 ! 3 + ld [IDX3+4], t3 ! 3 sll t1, 2, t1 ! 1 - ld [wtxt+i], t0 ! 0 + ld [wtxt+4], t0 ! 0 lduh [wtxt+t2], t2 ! 2 and t0, 255, t0 ! 0 @@ -208,11 +209,11 @@ _aes_crypt: xor t0, t1, t0 ! 0, 1 xor t0, t2, t0 ! 0, 1, 2 ! Fetch roundkey - ld [key+i], t1 + ld [key+4], t1 xor t0, t3, t0 ! 0, 1, 2, 3 xor t0, t1, t0 - st t0, [tmp+i] + st t0, [tmp+4] add i, 4, i C = 2 |