mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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>
This commit is contained in:
parent
e20e14d2b1
commit
6b0a96ce3a
4 changed files with 107 additions and 0 deletions
16
host/include/generic/host/crypto/aes-round.h
Normal file
16
host/include/generic/host/crypto/aes-round.h
Normal file
|
@ -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 */
|
Loading…
Add table
Add a link
Reference in a new issue