Lines Matching refs:hmac
18 int qcrypto_hmac_bytesv(QCryptoHmac *hmac, in qcrypto_hmac_bytesv() argument
25 QCryptoHmacDriver *drv = hmac->driver; in qcrypto_hmac_bytesv()
27 return drv->hmac_bytesv(hmac, iov, niov, result, resultlen, errp); in qcrypto_hmac_bytesv()
30 int qcrypto_hmac_bytes(QCryptoHmac *hmac, in qcrypto_hmac_bytes() argument
42 return qcrypto_hmac_bytesv(hmac, &iov, 1, result, resultlen, errp); in qcrypto_hmac_bytes()
45 int qcrypto_hmac_digestv(QCryptoHmac *hmac, in qcrypto_hmac_digestv() argument
55 if (qcrypto_hmac_bytesv(hmac, iov, niov, &result, &resultlen, errp) < 0) { in qcrypto_hmac_digestv()
72 int qcrypto_hmac_digest(QCryptoHmac *hmac, in qcrypto_hmac_digest() argument
83 return qcrypto_hmac_digestv(hmac, &iov, 1, digest, errp); in qcrypto_hmac_digest()
90 QCryptoHmac *hmac; in qcrypto_hmac_new() local
110 hmac = g_new0(QCryptoHmac, 1); in qcrypto_hmac_new()
111 hmac->alg = alg; in qcrypto_hmac_new()
112 hmac->opaque = ctx; in qcrypto_hmac_new()
113 hmac->driver = (void *)drv; in qcrypto_hmac_new()
115 return hmac; in qcrypto_hmac_new()
118 void qcrypto_hmac_free(QCryptoHmac *hmac) in qcrypto_hmac_free() argument
122 if (hmac) { in qcrypto_hmac_free()
123 drv = hmac->driver; in qcrypto_hmac_free()
124 drv->hmac_free(hmac); in qcrypto_hmac_free()
125 g_free(hmac); in qcrypto_hmac_free()