Messages in this thread | | | Date | Wed, 22 Feb 2006 13:32:20 +0100 | From | Michael Heyse <> | Subject | [SOLVED] Re: which one is broken: VIA padlock aes or aes_i586? |
| |
I found the problem, it's a typo in drivers/crypto/padlock-aes.c (introduced probably in the "[CRYPTO] Use standard byte order macros wherever possible" patch) and only happens with 256 bit keys.
it says below the "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]);
but it should be
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]);
Now it's working!
Michael - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |