]> git.ipfire.org Git - thirdparty/qemu.git/commit
crypto: check gnutls & gcrypt support the requested pbkdf hash
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 29 Aug 2024 13:47:42 +0000 (14:47 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 25 Sep 2024 18:04:10 +0000 (21:04 +0300)
commit0e8f3eb43ff4fa7d2ef7a79c943e412b812987f9
treefd1bcfaa7b75f2168063d9fb6a8d927b75ec0a00
parentae2dc2a27acf7115b886c9e1b7138ed4ef025160
crypto: check gnutls & gcrypt support the requested pbkdf hash

Both gnutls and gcrypt can be configured to exclude support for certain
algorithms via a runtime check against system crypto policies. Thus it
is not sufficient to have a compile time test for hash support in their
pbkdf implementations.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
(cherry picked from commit e6c09ea4f9e5f8af92a6453642b84b9efd52892f)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
crypto/pbkdf-gcrypt.c
crypto/pbkdf-gnutls.c