]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(AES_FINAL_ROUND): Use ldub, not lduh + and, to get the second
authorNiels Möller <nisse@lysator.liu.se>
Wed, 15 May 2002 22:30:22 +0000 (00:30 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 15 May 2002 22:30:22 +0000 (00:30 +0200)
byte of a word.

Rev: src/nettle/sparc/aes.asm:1.103

sparc/aes.asm

index ca287b2510d79e5badc9b9c2ade985849245e597..709b6dabb28c7e4ddee2ab6d75043fa90fe2bd02 100644 (file)
@@ -81,13 +81,11 @@ define(<AES_ROUND>, <
        sll     t1, 2, t1               ! 1
        ldub    [wtxt+$1+3], t0         ! 0
        ! IDX2(j) = j XOR 2
-       lduh    [wtxt+eval($1 ^ 8)], t2 ! 2
-       C and   t0, 255, t0             ! 0
+       ldub    [wtxt+eval($1 ^ 8)+1], t2       ! 2
        
        ldub    [wtxt+t3], t3           ! 3
        sll     t0, 2, t0               ! 0
        ld      [T0+t0], t0             ! 0
-       and     t2, 255, t2             ! 2
        
        ld      [T1+t1], t1             ! 1
        sll     t2, 2, t2               ! 2