Skip to content
Snippets Groups Projects
Commit 8d1e9319 authored by Niels Möller's avatar Niels Möller
Browse files

(_aes_crypt): Deleted one more addition from the inner loop, by

using the subkey pointer.

Rev: src/nettle/sparc/aes.asm:1.44
parent c8bd8e39
No related branches found
No related tags found
No related merge requests found
...@@ -120,7 +120,7 @@ _aes_crypt: ...@@ -120,7 +120,7 @@ _aes_crypt:
! add %o3, 4, %o3 ! add %o3, 4, %o3
mov 16, round mov 16, round
! add ctx, 16, key add ctx, 16, key
.Lround_loop: .Lround_loop:
! 4*i ! 4*i
...@@ -168,9 +168,9 @@ _aes_crypt: ...@@ -168,9 +168,9 @@ _aes_crypt:
add idx, 4, idx add idx, 4, idx
! Fetch roundkey ! Fetch roundkey
ld [ctx+round], t1 ! ld [ctx+round], t1
add round, 4, round ! add round, 4, round
! ld [key+i], t1 ld [key+i], t1
xor t0, t3, t0 ! 0, 1, 2, 3 xor t0, t3, t0 ! 0, 1, 2, 3
xor t0, t1, t0 xor t0, t1, t0
...@@ -182,13 +182,15 @@ _aes_crypt: ...@@ -182,13 +182,15 @@ _aes_crypt:
! switch roles for tmp and wtxt ! switch roles for tmp and wtxt
xor wtxt, diff, wtxt xor wtxt, diff, wtxt
! add key, 16, key add round, 16, round
add key, 16, key
cmp round, nrounds cmp round, nrounds
blu .Lround_loop blu .Lround_loop
xor tmp, diff, tmp xor tmp, diff, tmp
! final round ! final round
mov 0, i mov 0, i
! IDX3
add T, 288, %g4 add T, 288, %g4
.Lfinal_loop: .Lfinal_loop:
ld [%g4-32], %g2 ld [%g4-32], %g2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment