diff options
| author | Jamin Lin <jamin_lin@aspeedtech.com> | 2026-08-11 06:01:26 +0000 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2026-08-11 18:25:58 +0200 |
| commit | b781906fccf1e0668255f73fa9d96670a4f91ddb (patch) | |
| tree | e4134217ba21aa00273caa0fb1a21ffc74654223 /qapi | |
| parent | d030f3cabe74e0b3205b417ca061c3ac6e7a4334 (diff) | |
| download | qemu-b781906fccf1e0668255f73fa9d96670a4f91ddb.tar.gz qemu-b781906fccf1e0668255f73fa9d96670a4f91ddb.zip | |
crypto/cipher: Add GCM to QCryptoCipherMode
Introduce the GCM cipher mode so authenticated encryption can be built
on top of the existing qcrypto_cipher API. GCM is an IV-based mode, so
register it in mode_need_iv. No backend advertises it yet, so it stays
unsupported until a backend and the AAD/tag helpers are added in the
following patches.
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20260811060115.1849266-8-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'qapi')
| -rw-r--r-- | qapi/crypto.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qapi/crypto.json b/qapi/crypto.json index 2b55befef9..6e3a98ff68 100644 --- a/qapi/crypto.json +++ b/qapi/crypto.json @@ -121,10 +121,12 @@ # # @ctr: Counter (Since 2.8) # +# @gcm: Galois/Counter Mode (Since 11.2) +# # Since: 2.6 ## { 'enum': 'QCryptoCipherMode', - 'data': ['ecb', 'cbc', 'xts', 'ctr']} + 'data': ['ecb', 'cbc', 'xts', 'ctr', 'gcm']} ## # @QCryptoIVGenAlgo: |
