OSDN Git Service

crypto: add support for nettle's native XTS impl
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 14 Oct 2019 16:28:27 +0000 (17:28 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 28 Oct 2019 15:45:07 +0000 (16:45 +0100)
commitdc2207af2de162005f7e9e534850d07232290cee
treed9c6191ac7fa37c5d22417ed0bff40b7ec927840
parente0576942e005de0f9226913cb0750cf445a33565
crypto: add support for nettle's native XTS impl

Nettle 3.5.0 will add support for the XTS mode. Use this because long
term we wish to delete QEMU's XTS impl to avoid carrying private crypto
algorithm impls.

Unfortunately this degrades nettle performance from 612 MB/s to 568 MB/s
as nettle's XTS impl isn't so well optimized yet.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
configure
crypto/cipher-nettle.c