Commit 2f4c861d authored by Niels Möller's avatar Niels Möller
Browse files

(AES_FINAL_ROUND): Reordered, so that we can save one register.

Rev: src/nettle/sparc/aes.asm:1.108
parent 07d3f3e2
...@@ -112,22 +112,23 @@ define(<AES_FINAL_ROUND>, < ...@@ -112,22 +112,23 @@ define(<AES_FINAL_ROUND>, <
ldub [wtxt+t1], t1 ! 1 ldub [wtxt+t1], t1 ! 1
ldub [T+t0], t0 ! 0 ldub [T+t0], t0 ! 0
ldub [T+t1], t1 ! 1 ldub [T+t1], t1 ! 1
ld [IDX3 + $1], t3 ! 3
sll t1, 8, t1 ! 1
or 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], t2 ! 2
ld [IDX3 + $1], t3 ! 3
sll t1, 8, t1 ! 1
ldub [wtxt+t3], t3 ! 3 ldub [wtxt+t3], t3 ! 3
or t0, t1, t0 ! 0, 1
ldub [T+t2], t2 ! 2 ldub [T+t2], t2 ! 2
ldub [T+t3], t3 ! 3 ldub [T+t3], t3 ! 3
sll t2, 16, t2 ! 2 sll t2, 16, t2 ! 2
or t0, t2, t0 ! 0, 1, 2 or t0, t2, t0 ! 0, 1, 2
ld [key + $1], t2
sll t3, 24, t3 ! 3 sll t3, 24, t3 ! 3
ld [key + $1], t2
or t0, t3, t0 ! 0, 1, 2, 3 or t0, t3, t0 ! 0, 1, 2, 3
xor t0, t2, t0 xor t0, t2, t0
......
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