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)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 9 Sep 2024 14:13:38 +0000 (15:13 +0100)
commite6c09ea4f9e5f8af92a6453642b84b9efd52892f
treeb268a091362c13d53124c4185bd210aee13d8402
parentc72cab5ad9f849bbcfcf4be7952b8b8946cc626e
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>
crypto/pbkdf-gcrypt.c
crypto/pbkdf-gnutls.c