From: Niels Möller Date: Fri, 15 Feb 2002 18:19:43 +0000 (+0100) Subject: (_aes_crypt): wtxt was stored in both %l1 and %l2 for the entire X-Git-Tag: nettle_1.6_release_20021003~292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=159baf99dc9c70f06d365f9459e68e1302562a17;p=thirdparty%2Fnettle.git (_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 --- diff --git a/sparc/aes.asm b/sparc/aes.asm index 54eff9bd..ebfc28b8 100644 --- a/sparc/aes.asm +++ b/sparc/aes.asm @@ -18,7 +18,7 @@ define(length, %i2) define(dst, %i3) define(src, %i4) -define(wtxt, %l2) +define(wtxt, %l1) define(tmp, %o1) _aes_crypt: ! Why -136? @@ -29,8 +29,8 @@ _aes_crypt: be .Lend ! wtxt - add %fp, -24, %l1 - mov %l1, wtxt + add %fp, -24, wtxt + ! mov %l1, wtxt .Lblock_loop: ! Read src, and add initial subkey mov -4, %o4 @@ -90,7 +90,7 @@ _aes_crypt: mov tmp, %l0 ! wtxt - mov %l1, %g4 + mov wtxt, %g4 ! 4*i: %o3 mov 0, %o3 @@ -150,7 +150,7 @@ _aes_crypt: sll %g1, 4, %g2 add %g2, ctx, %o0 mov 0, %i5 - mov %l1, %o3 + mov wtxt, %o3 mov tmp, %o4 .Lroundkey_loop: sll %i5, 2, %g2 @@ -172,7 +172,7 @@ _aes_crypt: ! final round add %g2, ctx, %o7 mov 0, %o1 - mov %l1, %g1 + mov wtxt, %g1 add T, 288, %g4 .Lfinal_loop: ld [%g4-32], %g2