crypto: add gnutls cipher provider
commit3d2b61ffcd4a5a8f5bfcdb2be5eac1a37f5caaa1
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 29 Jun 2021 12:25:55 +0000 (29 13:25 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 14 Jul 2021 13:15:52 +0000 (14 14:15 +0100)
treee063f98f047fb73ff0734ea9fc6ae7c093db935a
parentcc4c7c738297958b3d1d16269f57d71d22f5a9ff
crypto: add gnutls cipher provider

Add an implementation of the QEMU cipher APIs to the gnutls
crypto backend. XTS support is only available for gnutls
version >= 3.6.8. Since ECB mode is not exposed by gnutls
APIs, we can't use the private XTS code for compatibility.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/cipher-gnutls.c.inc [new file with mode: 0644]
crypto/cipher.c