chiark / gitweb /
symm/rijndael-arm-crypto.S (rijndael_setup_arm_crypto): Fix missing label.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 12 Jul 2016 01:53:38 +0000 (02:53 +0100)
The loop which copies the initial key data from a misaligned address
ends with a branch to the next label 9 which, due to an oversight on my
part, skipped out the setup for the main loop.  Introduce an extra label
9 to fix this.

symm/rijndael-arm-crypto.S

index 29c7aaa5d7fcfc48262c4e014b191255f5e2b8c6..d5127efd7eab95d2998e1b4eecaaeef94d9d9cf5 100644 (file)
@@ -100,7 +100,7 @@ FUNC(rijndael_setup_arm_crypto)
        bhi     1b
 
        // Find out other useful things and prepare for the main loop.
-       ldr     r7, [r0, #nr]           // number of rounds
+9:     ldr     r7, [r0, #nr]           // number of rounds
        mla     r2, r1, r7, r1          // total key size in words
        ldr     r4, [r9, #-4]           // most recent key word
        leaextq r5, rijndael_rcon       // round constants