Commit 1713ba7d authored by Niels Möller's avatar Niels Möller
Browse files

(AES_ROUND): Eliminated use of t3.

Rev: src/nettle/sparc/aes.asm:1.105
parent 88d4e338
...@@ -81,22 +81,22 @@ define(<AES_ROUND>, < ...@@ -81,22 +81,22 @@ define(<AES_ROUND>, <
ld [T0+t0], t0 ! 0 ld [T0+t0], t0 ! 0
sll t1, 2, t1 ! 1 sll t1, 2, t1 ! 1
ld [T1+t1], t1 ! 1 ld [T1+t1], t1 ! 1
ld [IDX3+$1], t3 ! 3 ld [IDX3+$1], t2 ! 3
xor t0, t1, t0 ! 0, 1 xor t0, t1, t0 ! 0, 1
! IDX2(j) = j XOR 2 ! IDX2(j) = j XOR 2
ldub [wtxt+eval($1 ^ 8)+1], t2 ! 2 ldub [wtxt+eval($1 ^ 8)+1], t1 ! 2
ldub [wtxt+t3], t3 ! 3 ldub [wtxt+t2], t2 ! 3
sll t2, 2, t2 ! 2 sll t1, 2, t1 ! 2
ld [T2+t2], t2 ! 2 ld [T2+t1], t1 ! 2
sll t3, 2, t3 ! 3 sll t2, 2, t2 ! 3
ld [T3+t3], t3 ! 3 ld [T3+t2], t2 ! 3
xor t0, t2, t0 ! 0, 1, 2 xor t0, t1, t0 ! 0, 1, 2
! Fetch roundkey ! Fetch roundkey
ld [key + $1], t1 ld [key + $1], t1
xor t0, t3, t0 ! 0, 1, 2, 3 xor t0, t2, t0 ! 0, 1, 2, 3
xor t0, t1, t0 xor t0, t1, t0
st t0, [tmp + $1]>)dnl st t0, [tmp + $1]>)dnl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment