Home
last modified time | relevance | path

Searched hist:e503fc55acffccac5d2755633e7a48262e8edd9b (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/crypto/
H A Dcipher-gcrypt.c.incdiff e503fc55acffccac5d2755633e7a48262e8edd9b Mon Mar 11 07:09:25 CDT 2024 Daniel P. Berrangé <berrange@redhat.com> crypto: query gcrypt for cipher availability

Just because a cipher is defined in the gcrypt header file, does not
imply that it can be used. Distros can filter the list of ciphers when
building gcrypt. For example, RHEL-9 disables the SM4 cipher. It is
also possible that running in FIPS mode might dynamically change what
ciphers are available at runtime.

qcrypto_cipher_supports must therefore query gcrypt directly to check
for cipher availability.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>