On Tue, Jul 14, 2026 at 07:29:13AM +0000, Jamin Lin wrote: > 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 <[email protected]> > --- > crypto/cipherpriv.h | 8 ++++++++ > include/crypto/cipher.h | 36 ++++++++++++++++++++++++++++++++++++ > crypto/cipher.c | 31 +++++++++++++++++++++++++++++++ > 3 files changed, 75 insertions(+)
Reviewed-by: Daniel P. Berrangé <[email protected]> With regards, Daniel -- |: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
