mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
7b5dbfb777
commit
3eedf5cc9d
8 changed files with 84 additions and 77 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue