diff options
author | Longpeng(Mike) <longpeng2@huawei.com> | 2017-07-14 14:04:06 -0400 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2017-07-19 10:11:05 +0100 |
commit | 25c60df32b9aad71a86cbb3aeaed60bf7567918a (patch) | |
tree | fe58cccce4f3a4729cf8a393e820da69ac2d952f /crypto/cipherpriv.h | |
parent | f0d92b56d8831de4b7df43ed3e6404cae5d42ed8 (diff) |
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/cipherpriv.h')
-rw-r--r-- | crypto/cipherpriv.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crypto/cipherpriv.h b/crypto/cipherpriv.h index 4af5e85436..77da4c2f32 100644 --- a/crypto/cipherpriv.h +++ b/crypto/cipherpriv.h @@ -15,6 +15,8 @@ #ifndef QCRYPTO_CIPHERPRIV_H #define QCRYPTO_CIPHERPRIV_H +#include "qapi-types.h" + typedef struct QCryptoCipherDriver QCryptoCipherDriver; struct QCryptoCipherDriver { @@ -37,4 +39,18 @@ struct QCryptoCipherDriver { void (*cipher_free)(QCryptoCipher *cipher); }; +#ifdef CONFIG_AF_ALG + +#include "afalgpriv.h" + +extern QCryptoAFAlg * +qcrypto_afalg_cipher_ctx_new(QCryptoCipherAlgorithm alg, + QCryptoCipherMode mode, + const uint8_t *key, + size_t nkey, Error **errp); + +extern struct QCryptoCipherDriver qcrypto_cipher_afalg_driver; + +#endif + #endif |