Commit 5a7a2855 authored by Niels Möller's avatar Niels Möller

(_aes_crypt): In final_loop, use the register idx.

Rev: src/nettle/sparc/aes.asm:1.57
parent 9f04efff
......@@ -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
......
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