aboutsummaryrefslogtreecommitdiff
path: root/crypto/afalgpriv.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-08-28 10:05:14 -0700
committerDaniel P. Berrangé <berrange@redhat.com>2020-09-10 11:02:23 +0100
commit3eedf5cc9d45f94e2fd229f0a7aaca556a4ac734 (patch)
tree8295084987ae1c2929d684ce02a376ab8635939a /crypto/afalgpriv.h
parent7b5dbfb777ff4894ebcd71f5014d26abeef916c6 (diff)
downloadqemu-3eedf5cc9d45f94e2fd229f0a7aaca556a4ac734.zip
qemu-3eedf5cc9d45f94e2fd229f0a7aaca556a4ac734.tar.gz
qemu-3eedf5cc9d45f94e2fd229f0a7aaca556a4ac734.tar.bz2
crypto: Allocate QCryptoCipher with the subclass
Merge the allocation of "opaque" into the allocation of "cipher". This is step one in reducing the indirection in these classes. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'crypto/afalgpriv.h')
-rw-r--r--crypto/afalgpriv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/afalgpriv.h b/crypto/afalgpriv.h
index f6550b5..5a2393f 100644
--- a/crypto/afalgpriv.h
+++ b/crypto/afalgpriv.h
@@ -15,6 +15,7 @@
#define QCRYPTO_AFALGPRIV_H
#include <linux/if_alg.h>
+#include "crypto/cipher.h"
#define SALG_TYPE_LEN_MAX 14
#define SALG_NAME_LEN_MAX 64
@@ -32,6 +33,8 @@
typedef struct QCryptoAFAlg QCryptoAFAlg;
struct QCryptoAFAlg {
+ QCryptoCipher base;
+
int tfmfd;
int opfd;
struct msghdr *msg;