2 * QEMU Crypto hmac algorithms (based on nettle)
4 * Copyright (c) 2016 HUAWEI TECHNOLOGIES CO., LTD.
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 #include "qemu/osdep.h"
16 #include "qapi/error.h"
17 #include "crypto/hmac.h"
18 #include <nettle/hmac.h>
20 bool qcrypto_hmac_supports(QCryptoHashAlgorithm alg
)
25 QCryptoHmac
*qcrypto_hmac_new(QCryptoHashAlgorithm alg
,
26 const uint8_t *key
, size_t nkey
,
32 void qcrypto_hmac_free(QCryptoHmac
*hmac
)
37 int qcrypto_hmac_bytesv(QCryptoHmac
*hmac
,
38 const struct iovec
*iov
,