Lines Matching +full:drv +full:- +full:2
6 * This work is licensed under the terms of the GNU GPL, version 2 or
8 * top-level directory.
25 QCryptoHmacDriver *drv = hmac->driver; in qcrypto_hmac_bytesv() local
27 return drv->hmac_bytesv(hmac, iov, niov, result, resultlen, errp); in qcrypto_hmac_bytesv()
56 return -1; in qcrypto_hmac_digestv()
59 *digest = g_new0(char, (resultlen * 2) + 1); in qcrypto_hmac_digestv()
62 (*digest)[(i * 2)] = hex[(result[i] >> 4) & 0xf]; in qcrypto_hmac_digestv()
63 (*digest)[(i * 2) + 1] = hex[result[i] & 0xf]; in qcrypto_hmac_digestv()
66 (*digest)[resultlen * 2] = '\0'; in qcrypto_hmac_digestv()
92 QCryptoHmacDriver *drv = NULL; in qcrypto_hmac_new() local
97 drv = &qcrypto_hmac_afalg_driver; in qcrypto_hmac_new()
107 drv = &qcrypto_hmac_lib_driver; 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()
120 QCryptoHmacDriver *drv; in qcrypto_hmac_free() local
123 drv = hmac->driver; in qcrypto_hmac_free()
124 drv->hmac_free(hmac); in qcrypto_hmac_free()