qemu/include/crypto
Jamin Lin a4383c0862 crypto/cipher: Add setaad/gettag for AEAD modes
AEAD modes such as GCM authenticate optional associated data (AAD) and
produce an authentication tag, which the block-cipher encrypt/decrypt
interface cannot express. Add qcrypto_cipher_setaad() and
qcrypto_cipher_gettag() plus the matching backend driver hooks. The
generic front-end reports an error when the selected mode's driver does
not implement them, so calling them on a non-AEAD mode fails cleanly.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Kane Chen <kane_chen@aspeedtech.com>
Link: https://lore.kernel.org/qemu-devel/20260811060115.1849266-9-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2026-08-11 18:25:58 +02:00
..
aes-round.h crypto: Add aesdec_ISB_ISR_AK_IMC 2023-07-08 07:30:17 +01:00
aes.h target/riscv: Use existing lookup tables for MixColumns 2023-09-11 11:45:54 +10:00
afsplit.h qapi/crypto: Rename QCryptoHashAlgorithm to *Algo, and drop prefix 2024-09-10 14:02:16 +02:00
akcipher.h include/: spelling fixes 2023-09-08 13:08:52 +03:00
block.h qapi/crypto: Rename QCryptoHashAlgorithm to *Algo, and drop prefix 2024-09-10 14:02:16 +02:00
cipher.h crypto/cipher: Add setaad/gettag for AEAD modes 2026-08-11 18:25:58 +02:00
clmul.h crypto: Add generic 64-bit carry-less multiply routine 2023-09-15 13:57:00 +00:00
desrfb.h replace TABs with spaces 2023-03-20 12:43:50 +01:00
hash.h crypto/hash: Have hashing functions take void * buffer argument 2025-11-03 10:05:40 +00:00
hmac.h crypto/hash: Have hashing functions take void * buffer argument 2025-11-03 10:05:40 +00:00
init.h crypto: Fix LGPL information in the file headers 2019-07-19 14:21:25 +01:00
ivgen.h qapi/crypto: Rename QCryptoIVGenAlgorithm to *Algo, and drop prefix 2024-09-10 14:03:30 +02:00
pbkdf.h qapi/crypto: Rename QCryptoCipherAlgorithm to *Algo, and drop prefix 2024-09-10 14:03:30 +02:00
random.h crypto: Fix LGPL information in the file headers 2019-07-19 14:21:25 +01:00
secret.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
secret_common.h bulk: Do not declare function prototypes using 'extern' keyword 2023-08-31 19:47:43 +02:00
secret_keyring.h qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros 2020-09-18 14:12:32 -04:00
sm4.h crypto: Add SM4 constant parameter CK 2023-09-11 11:45:55 +10:00
tls-cipher-suites.h MAINTAINERS: Remove my disfunctional emails 2026-04-24 21:27:22 +02:00
tlscreds.h crypto: introduce method for reloading TLS creds 2025-11-03 10:45:55 +00:00
tlscredsanon.h crypto: Make QCryptoTLSCreds* structures private 2021-06-29 18:30:24 +01:00
tlscredspsk.h crypto: Make QCryptoTLSCreds* structures private 2021-06-29 18:30:24 +01:00
tlscredsx509.h crypto: support upto 5 parallel certificate identities 2025-11-03 10:45:55 +00:00
tlssession.h io/channel: Have read/write functions take void * buffer argument 2025-11-03 10:05:40 +00:00
x509-utils.h qapi/crypto: Rename QCryptoHashAlgorithm to *Algo, and drop prefix 2024-09-10 14:02:16 +02:00