]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Update round for each subkeys that is accessed.
authorNiels Möller <nisse@lysator.liu.se>
Sat, 16 Feb 2002 00:14:24 +0000 (01:14 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 16 Feb 2002 00:14:24 +0000 (01:14 +0100)
Rev: src/nettle/sparc/aes.asm:1.41

sparc/aes.asm

index 61e44fab04bfd034f48ded6ff3f8ca3daccce374..59e18683b7fdeb2e3ea33e39cb8270403c87e27b 100644 (file)
@@ -162,9 +162,9 @@ _aes_crypt:
        add     idx, 4, idx             
 
        ! Fetch roundkey
-       add     round, ctx, t1
-       ld      [t1+i], t1
-               
+       ld      [ctx+round], t1
+       add     round, 4, round
+       
        xor     t0, t3, t0              ! 0, 1, 2, 3
 
        xor     t0, t1, t0
@@ -178,7 +178,6 @@ _aes_crypt:
        ! switch roles for tmp and wtxt
        xor     wtxt, diff, wtxt
 
-       add     round, 16, round
        cmp     round, nrounds
        blu     .Lround_loop
        xor     tmp, diff, tmp