diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-06-01 21:57:10 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-07-08 07:30:17 +0100 |
commit | 6b0a96ce3a405ef4676e1fa853f2c649dc25c2b4 (patch) | |
tree | d9883fd6861a69f1c87d30459983f14cb0242363 /host/include | |
parent | e20e14d2b15d5ad4fb0a640c95d7c1bc534d9fd7 (diff) | |
download | qemu-6b0a96ce3a405ef4676e1fa853f2c649dc25c2b4.zip qemu-6b0a96ce3a405ef4676e1fa853f2c649dc25c2b4.tar.gz qemu-6b0a96ce3a405ef4676e1fa853f2c649dc25c2b4.tar.bz2 |
crypto: Add aesenc_SB_SR_AK
Start adding infrastructure for accelerating guest AES.
Begin with a SubBytes + ShiftRows + AddRoundKey primitive.
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/generic/host/crypto/aes-round.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/host/include/generic/host/crypto/aes-round.h b/host/include/generic/host/crypto/aes-round.h new file mode 100644 index 0000000..c5d8066 --- /dev/null +++ b/host/include/generic/host/crypto/aes-round.h @@ -0,0 +1,16 @@ +/* + * No host specific aes acceleration. + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef GENERIC_HOST_CRYPTO_AES_ROUND_H +#define GENERIC_HOST_CRYPTO_AES_ROUND_H + +#define HAVE_AES_ACCEL false +#define ATTR_AES_ACCEL + +void aesenc_SB_SR_AK_accel(AESState *, const AESState *, + const AESState *, bool) + QEMU_ERROR("unsupported accel"); + +#endif /* GENERIC_HOST_CRYPTO_AES_ROUND_H */ |