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

(_aes_crypt): wtxt was stored in both %l1 and %l2 for the entire

function. Freed %l2 for other uses.

Rev: src/nettle/sparc/aes.asm:1.27
parent 8e8fdc12
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ define(length, %i2) ...@@ -18,7 +18,7 @@ define(length, %i2)
define(dst, %i3) define(dst, %i3)
define(src, %i4) define(src, %i4)
define(wtxt, %l2) define(wtxt, %l1)
define(tmp, %o1) define(tmp, %o1)
_aes_crypt: _aes_crypt:
! Why -136? ! Why -136?
...@@ -29,8 +29,8 @@ _aes_crypt: ...@@ -29,8 +29,8 @@ _aes_crypt:
be .Lend be .Lend
! wtxt ! wtxt
add %fp, -24, %l1 add %fp, -24, wtxt
mov %l1, wtxt ! mov %l1, wtxt
.Lblock_loop: .Lblock_loop:
! Read src, and add initial subkey ! Read src, and add initial subkey
mov -4, %o4 mov -4, %o4
...@@ -90,7 +90,7 @@ _aes_crypt: ...@@ -90,7 +90,7 @@ _aes_crypt:
mov tmp, %l0 mov tmp, %l0
! wtxt ! wtxt
mov %l1, %g4 mov wtxt, %g4
! 4*i: %o3 ! 4*i: %o3
mov 0, %o3 mov 0, %o3
...@@ -150,7 +150,7 @@ _aes_crypt: ...@@ -150,7 +150,7 @@ _aes_crypt:
sll %g1, 4, %g2 sll %g1, 4, %g2
add %g2, ctx, %o0 add %g2, ctx, %o0
mov 0, %i5 mov 0, %i5
mov %l1, %o3 mov wtxt, %o3
mov tmp, %o4 mov tmp, %o4
.Lroundkey_loop: .Lroundkey_loop:
sll %i5, 2, %g2 sll %i5, 2, %g2
...@@ -172,7 +172,7 @@ _aes_crypt: ...@@ -172,7 +172,7 @@ _aes_crypt:
! final round ! final round
add %g2, ctx, %o7 add %g2, ctx, %o7
mov 0, %o1 mov 0, %o1
mov %l1, %g1 mov wtxt, %g1
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