diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2014-11-03 16:50:01 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2014-11-06 17:25:28 +0000 |
commit | 12ac3efe74f888a13cb4df88b38bb01e8034dea8 (patch) | |
tree | 081f49d1ba791aeffbb6aec6285c560bc67b3ed3 /arch/arm64/crypto/aes-ce-setkey.h | |
parent | 286fb1cc32b11c18da3573a8c8c37a4f9da16e30 (diff) | |
download | linux-12ac3efe74f888a13cb4df88b38bb01e8034dea8.tar.gz linux-12ac3efe74f888a13cb4df88b38bb01e8034dea8.tar.bz2 linux-12ac3efe74f888a13cb4df88b38bb01e8034dea8.zip |
arm64/crypto: use crypto instructions to generate AES key schedule
This patch implements the AES key schedule generation using ARMv8
Crypto Instructions. It replaces the table based C implementation
in aes_generic.ko, which means we can drop the dependency on that
module.
Tested-by: Steve Capper <steve.capper@linaro.org>
Acked-by: Steve Capper <steve.capper@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/crypto/aes-ce-setkey.h')
-rw-r--r-- | arch/arm64/crypto/aes-ce-setkey.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/crypto/aes-ce-setkey.h b/arch/arm64/crypto/aes-ce-setkey.h new file mode 100644 index 000000000000..f08a6471d034 --- /dev/null +++ b/arch/arm64/crypto/aes-ce-setkey.h @@ -0,0 +1,5 @@ + +int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, + unsigned int key_len); +int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, + unsigned int key_len); |