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

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

sparc/aes.asm

index d979a5560b342dd28dab3065ff11787de269569e..ca287b2510d79e5badc9b9c2ade985849245e597 100644 (file)
@@ -79,10 +79,10 @@ define(<AES_ROUND>, <
        ld      [IDX3+$1], t3           ! 3
        
        sll     t1, 2, t1               ! 1
-       ld      [wtxt+$1], t0           ! 0
+       ldub    [wtxt+$1+3], t0         ! 0
        ! IDX2(j) = j XOR 2
        lduh    [wtxt+eval($1 ^ 8)], t2 ! 2
-       and     t0, 255, t0             ! 0
+       C and   t0, 255, t0             ! 0
        
        ldub    [wtxt+t3], t3           ! 3
        sll     t0, 2, t0               ! 0