aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2025-05-06 15:07:08 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2025-05-22 11:24:25 +0100
commit5a56f60d7c2e241bf972b8eca31286cf7f3cd7c1 (patch)
tree8e47d27f1ea06e6953c7a2d9bdbf9a4bb50be352 /scripts
parent01ce649e5d260d4d1a466d10dfaeabeeb2b7478d (diff)
downloadqemu-5a56f60d7c2e241bf972b8eca31286cf7f3cd7c1.zip
qemu-5a56f60d7c2e241bf972b8eca31286cf7f3cd7c1.tar.gz
qemu-5a56f60d7c2e241bf972b8eca31286cf7f3cd7c1.tar.bz2
crypto: fully drop built-in cipher provider
When originally creating the internal crypto cipher APIs, they were wired up to use the built-in D3DES and AES implementations, as a way to gracefully transition to the new APIs without introducing an immediate hard dep on any external crypto libraries for the VNC password auth (D3DES) or the qcow2 encryption (AES). In the 6.1.0 release we dropped the built-in D3DES impl, and also the XTS mode for the AES impl, leaving only AES with ECB/CBC modes. The rational was that with the system emulators, it is expected that 3rd party crypto libraries will be available. The qcow2 LUKS impl is preferred to the legacy raw AES impl, and by default that requires AES in XTS mode, limiting the usefulness of the built-in cipher provider. The built-in AES impl has known timing attacks and is only suitable for use cases where a security boundary is already not expected to be provided (TCG). Providing a built-in cipher impl thus potentially misleads users, should they configure a QEMU without any crypto library, and try to use it with the LUKS backend, even if that requires a non-default configuration choice. Complete what we started in 6.1.0 and purge the remaining AES support. Use of either gnutls, nettle, or libcrypt is now mandatory for any cipher support, except for TCG impls. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions