]> err.no Git - linux-2.6/commitdiff
[PATCH] padlock: Fix typo that broke 256-bit keys
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 22 Feb 2006 12:43:40 +0000 (23:43 +1100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 22 Feb 2006 15:47:07 +0000 (07:47 -0800)
A typo crept into the le32_to_cpu patch which broke 256-bit keys
in the padlock driver.  The following patch based on observations
by Michael Heyse fixes the problem.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/crypto/padlock-aes.c

index 64819aa7cac42a31f9e181809167ae92cf1ac5dc..0c08c58252befe58443db9241893424dfad7ef5a 100644 (file)
@@ -348,10 +348,10 @@ aes_set_key(void *ctx_arg, const uint8_t *in_key, unsigned int key_len, uint32_t
                break;
 
        case 32:
-               E_KEY[4] = le32_to_cpu(in_key[4]);
-               E_KEY[5] = le32_to_cpu(in_key[5]);
-               E_KEY[6] = le32_to_cpu(in_key[6]);
-               t = E_KEY[7] = le32_to_cpu(in_key[7]);
+               E_KEY[4] = le32_to_cpu(key[4]);
+               E_KEY[5] = le32_to_cpu(key[5]);
+               E_KEY[6] = le32_to_cpu(key[6]);
+               t = E_KEY[7] = le32_to_cpu(key[7]);
                for (i = 0; i < 7; ++i)
                        loop8 (i);
                break;