crypto: factor out conversion of QAPI to gcrypt constants
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 11 Mar 2024 12:08:22 +0000 (12:08 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 19 Mar 2024 20:17:12 +0000 (20:17 +0000)
commiteac57306d89facbcacdb814833b57a8c9ed18d62
treedd54eafd4ffbd42bbf89096b879759c8aad9225f
parent038b4217884c6f297278bb1ec6f0463c6c8221de
crypto: factor out conversion of QAPI to gcrypt constants

The conversion of cipher mode will shortly be required in more
than one place.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/cipher-gcrypt.c.inc