qdev: Move doc comments from qdev.c to qdev-core.h
[qemu/ar7.git] / crypto / hashpriv.h
blobcee26ccb47e00c544075bde0c91331e6a23af3cb
1 /*
2 * QEMU Crypto hash driver supports
4 * Copyright (c) 2017 HUAWEI TECHNOLOGIES CO., LTD.
6 * Authors:
7 * Longpeng(Mike) <longpeng2@huawei.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or
10 * (at your option) any later version. See the COPYING file in the
11 * top-level directory.
15 #ifndef QCRYPTO_HASHPRIV_H
16 #define QCRYPTO_HASHPRIV_H
18 typedef struct QCryptoHashDriver QCryptoHashDriver;
20 struct QCryptoHashDriver {
21 int (*hash_bytesv)(QCryptoHashAlgorithm alg,
22 const struct iovec *iov,
23 size_t niov,
24 uint8_t **result,
25 size_t *resultlen,
26 Error **errp);
29 extern QCryptoHashDriver qcrypto_hash_lib_driver;
31 #ifdef CONFIG_AF_ALG
33 #include "afalgpriv.h"
35 extern QCryptoHashDriver qcrypto_hash_afalg_driver;
37 #endif
39 #endif