OSDN Git Service

crypto: flip priority of backends to prefer gcrypt
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 2 Jul 2021 13:18:12 +0000 (14:18 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 14 Jul 2021 13:15:52 +0000 (14:15 +0100)
commit260a13d4726ce62bdc0ed3a7a13c34de3367f5e2
treecaf58814f00119bf2d651e79ef3e9ae79cd3271e
parent83bee4b51fad383c1ee9b9f58fefb90fddae1c00
crypto: flip priority of backends to prefer gcrypt

Originally we preferred to use nettle over gcrypt because
gnutls already links to nettle and thus it minimizes the
dependencies. In retrospect this was the wrong criteria to
optimize for.

Currently shipping versions of gcrypt have cipher impls that
are massively faster than those in nettle and this is way
more important.  The nettle library is also not capable of
enforcing FIPS compliance, since it considers that out of
scope. It merely aims to provide general purpose impls of
algorithms, and usage policy is left upto the layer above,
such as GNUTLS.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
meson.build