crypto: Move cipher->driver init to qcrypto_*_cipher_ctx_new
commitda30cd77e1dab21560286627eea9609e8a460ce9
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 28 Aug 2020 17:05:15 +0000 (28 10:05 -0700)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 10 Sep 2020 10:02:23 +0000 (10 11:02 +0100)
treec8103abec4c8d3cea5c8c16ffab81953c691f386
parent3eedf5cc9d45f94e2fd229f0a7aaca556a4ac734
crypto: Move cipher->driver init to qcrypto_*_cipher_ctx_new

The class vtable should be set by the class initializer.
This will also allow additional subclassing, reducing the
amount of indirection in the hierarchy.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/cipher-afalg.c
crypto/cipher-builtin.c.inc
crypto/cipher-gcrypt.c.inc
crypto/cipher-nettle.c.inc
crypto/cipher.c
crypto/cipherpriv.h