diff options
| author | Longpeng(Mike) | 2017-07-14 20:04:06 +0200 |
|---|---|---|
| committer | Daniel P. Berrange | 2017-07-19 11:11:05 +0200 |
| commit | 25c60df32b9aad71a86cbb3aeaed60bf7567918a (patch) | |
| tree | fe58cccce4f3a4729cf8a393e820da69ac2d952f /crypto/afalgpriv.h | |
| parent | crypto: introduce some common functions for af_alg backend (diff) | |
| download | qemu-25c60df32b9aad71a86cbb3aeaed60bf7567918a.tar.gz qemu-25c60df32b9aad71a86cbb3aeaed60bf7567918a.tar.xz qemu-25c60df32b9aad71a86cbb3aeaed60bf7567918a.zip | |
crypto: cipher: add afalg-backend cipher support
Adds afalg-backend cipher support: introduces some private APIs
firstly, and then intergrates them into qcrypto_cipher_afalg_driver.
Signed-off-by: Longpeng(Mike) <longpeng2@huawei.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'crypto/afalgpriv.h')
| -rw-r--r-- | crypto/afalgpriv.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/afalgpriv.h b/crypto/afalgpriv.h index 76118cf962..d0941d4ef6 100644 --- a/crypto/afalgpriv.h +++ b/crypto/afalgpriv.h @@ -19,6 +19,15 @@ #define SALG_TYPE_LEN_MAX 14 #define SALG_NAME_LEN_MAX 64 +#ifndef SOL_ALG +#define SOL_ALG 279 +#endif + +#define AFALG_TYPE_CIPHER "skcipher" + +#define ALG_OPTYPE_LEN 4 +#define ALG_MSGIV_LEN(len) (sizeof(struct af_alg_iv) + (len)) + typedef struct QCryptoAFAlg QCryptoAFAlg; struct QCryptoAFAlg { |
