summary refs log tree commit diff stats
path: root/include/crypto/aes.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-06-01 15:46:26 -0700
committerRichard Henderson <richard.henderson@linaro.org>2023-07-08 07:30:17 +0100
commitfb250c59aa7f595d65b73a5d87076d047970ba1d (patch)
tree9dac036e614a75b00bab6614778b1645de07bdd3 /include/crypto/aes.h
parentca1e9c3ba1f7b8f20154e164c5b7b6c026e24cda (diff)
downloadfocaccia-qemu-fb250c59aa7f595d65b73a5d87076d047970ba1d.tar.gz
focaccia-qemu-fb250c59aa7f595d65b73a5d87076d047970ba1d.zip
target/arm: Move aesmc and aesimc tables to crypto/aes.c
We do not currently have a table in crypto/ for just MixColumns.
Move both tables for consistency.

Acked-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/crypto/aes.h')
-rw-r--r--include/crypto/aes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/crypto/aes.h b/include/crypto/aes.h
index 822d64588c..24b073d569 100644
--- a/include/crypto/aes.h
+++ b/include/crypto/aes.h
@@ -34,6 +34,12 @@ extern const uint8_t AES_isbox[256];
 extern const uint8_t AES_shifts[16];
 extern const uint8_t AES_ishifts[16];
 
+/* AES MixColumns, for use with rot32. */
+extern const uint32_t AES_mc_rot[256];
+
+/* AES InvMixColumns, for use with rot32. */
+extern const uint32_t AES_imc_rot[256];
+
 /* AES InvMixColumns */
 /* AES_imc[x][0] = [x].[0e, 09, 0d, 0b]; */
 /* AES_imc[x][1] = [x].[0b, 0e, 09, 0d]; */