Lines Matching full:hmac
2 * QEMU Crypto hmac algorithms
6 * Derived from hmac-gcrypt.c:
20 #include "crypto/hmac.h"
63 error_setg(errp, "Unsupported hmac algorithm %s", in qcrypto_hmac_ctx_new()
74 error_setg(errp, "Cannot initialize hmac: %s", in qcrypto_hmac_ctx_new()
87 qcrypto_gnutls_hmac_ctx_free(QCryptoHmac *hmac) in qcrypto_gnutls_hmac_ctx_free() argument
91 ctx = hmac->opaque; in qcrypto_gnutls_hmac_ctx_free()
98 qcrypto_gnutls_hmac_bytesv(QCryptoHmac *hmac, in qcrypto_gnutls_hmac_bytesv() argument
109 ctx = hmac->opaque; in qcrypto_gnutls_hmac_bytesv()
115 ret = gnutls_hmac_get_len(qcrypto_hmac_alg_map[hmac->alg]); in qcrypto_gnutls_hmac_bytesv()
117 error_setg(errp, "Unable to get hmac length: %s", in qcrypto_gnutls_hmac_bytesv()
126 error_setg(errp, "Result buffer size %zu is smaller than hmac %d", in qcrypto_gnutls_hmac_bytesv()