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

(_aes_crypt): In the final loop, use ctx+round to access the

subkeys, no need for an extra register.

Rev: src/nettle/sparc/aes.asm:1.40
parent 702d4834
...@@ -183,10 +183,7 @@ _aes_crypt: ...@@ -183,10 +183,7 @@ _aes_crypt:
blu .Lround_loop blu .Lround_loop
xor tmp, diff, tmp xor tmp, diff, tmp
! sll round, 4, %g2
! final round ! final round
add round, ctx, %o7
mov 0, i mov 0, i
add T, 288, %g4 add T, 288, %g4
.Lfinal_loop: .Lfinal_loop:
...@@ -215,7 +212,7 @@ _aes_crypt: ...@@ -215,7 +212,7 @@ _aes_crypt:
ldub [T+%o3], %o5 ldub [T+%o3], %o5
sll %g2, 16, %g2 sll %g2, 16, %g2
or %g3, %g2, %g3 or %g3, %g2, %g3
ld [%o7], %g2 ld [ctx + round], %g2
sll %o5, 24, %o5 sll %o5, 24, %o5
or %g3, %o5, %g3 or %g3, %o5, %g3
xor %g3, %g2, %g3 xor %g3, %g2, %g3
...@@ -226,7 +223,7 @@ _aes_crypt: ...@@ -226,7 +223,7 @@ _aes_crypt:
stb %o5, [%o2+3] stb %o5, [%o2+3]
stb %o0, [%o2+2] stb %o0, [%o2+2]
stb %g3, [dst+%i5] stb %g3, [dst+%i5]
add %o7, 4, %o7 add round, 4, round
bleu .Lfinal_loop bleu .Lfinal_loop
add %g4, 4, %g4 add %g4, 4, %g4
......
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