]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Work in progress, reordering AES_LOAD.
authorNiels Möller <nisse@lysator.liu.se>
Wed, 15 May 2002 23:50:30 +0000 (01:50 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 15 May 2002 23:50:30 +0000 (01:50 +0200)
Rev: src/nettle/sparc/aes.asm:1.120

sparc/aes.asm

index ebe372fcb10b783349f6727e0a7d0048a6f8fd2a..716d4a811d49c10855d15e966131cbc8dc951266 100644 (file)
@@ -71,20 +71,19 @@ define(<AES_LOAD>, <
        ldub    [src+$1+2], t2
        sll     t1, 8, t1
        or      t0, t1, t0      
-       ldub    [src+$1+3], t3
-       sll     t3, 24, t3
+       ldub    [src+$1+3], t1
+       sll     t1, 24, t1
        
        sll     t2, 16, t2
-       or      t3, t2, t3
+       or      t1, t2, t1
 
        
        ! Get subkey
        ld      [ctx + $1], t2
-       C or    t3, t1, t3
-       or      t3, t0, t3
-       xor     t3, t2, t3
+       or      t1, t0, t0
+       xor     t0, t2, t0
        
-       st      t3, [wtxt+$1]
+       st      t0, [wtxt+$1]
        C add   src, 4, src
        
        C ldub  [src + $1], t0