]>
Commit | Line | Data |
---|---|---|
12a4f216 LM |
1 | /* |
2 | * QEMU Crypto hmac algorithms (based on glib) | |
3 | * | |
4 | * Copyright (c) 2016 HUAWEI TECHNOLOGIES CO., LTD. | |
5 | * | |
6 | * Authors: | |
7 | * Longpeng(Mike) <longpeng2@huawei.com> | |
8 | * | |
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. | |
12 | * | |
13 | */ | |
14 | ||
15 | #include "qemu/osdep.h" | |
16 | #include "qapi/error.h" | |
17 | #include "crypto/hmac.h" | |
18 | ||
19 | bool qcrypto_hmac_supports(QCryptoHashAlgorithm alg) | |
20 | { | |
21 | return false; | |
22 | } | |
23 | ||
24 | QCryptoHmac *qcrypto_hmac_new(QCryptoHashAlgorithm alg, | |
25 | const uint8_t *key, size_t nkey, | |
26 | Error **errp) | |
27 | { | |
28 | return NULL; | |
29 | } | |
30 | ||
31 | void qcrypto_hmac_free(QCryptoHmac *hmac) | |
32 | { | |
33 | return; | |
34 | } | |
35 | ||
36 | int qcrypto_hmac_bytesv(QCryptoHmac *hmac, | |
37 | const struct iovec *iov, | |
38 | size_t niov, | |
39 | uint8_t **result, | |
40 | size_t *resultlen, | |
41 | Error **errp) | |
42 | { | |
43 | return -1; | |
44 | } |