From aec6bc361776db9a4a8e176e92ed2e45a699201b Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Thu, 26 May 2016 09:26:09 +0100 Subject: [PATCH] symm/rijndael-arm-crypto.S (rijndael_setup_arm_crypto): Fix missing label. Organization: Straylight/Edgeware From: Mark Wooding 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symm/rijndael-arm-crypto.S b/symm/rijndael-arm-crypto.S index 29c7aaa5..d5127efd 100644 --- a/symm/rijndael-arm-crypto.S +++ b/symm/rijndael-arm-crypto.S @@ -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 -- [mdw]