summaryrefslogtreecommitdiff
path: root/include/crypto/aes.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-07-02 21:41:46 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2019-07-26 14:58:36 +1000
commit9467a3150cf4afca638673e099af71e8c493a3a0 (patch)
tree733c93a49a5ce84ec11e760a8e629a8af981157a /include/crypto/aes.h
parent1e25ca02a0619c10bc0eae975846926902381ce5 (diff)
crypto: lib/aes - export sbox and inverse sbox
There are a few copies of the AES S-boxes floating around, so export the ones from the AES library so that we can reuse them in other modules. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/aes.h')
-rw-r--r--include/crypto/aes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/crypto/aes.h b/include/crypto/aes.h
index df8426fd8051..8e0f4cf948e5 100644
--- a/include/crypto/aes.h
+++ b/include/crypto/aes.h
@@ -67,4 +67,7 @@ void aes_encrypt(const struct crypto_aes_ctx *ctx, u8 *out, const u8 *in);
*/
void aes_decrypt(const struct crypto_aes_ctx *ctx, u8 *out, const u8 *in);
+extern const u8 crypto_aes_sbox[];
+extern const u8 crypto_aes_inv_sbox[];
+
#endif