static void bench_mac_free (struct bench_obj *obj) { gcry_mac_hd_t hd = obj->priv; gcry_mac_close (hd); }
void qcrypto_hmac_free(QCryptoHmac *hmac) { QCryptoHmacGcrypt *ctx; if (!hmac) { return; } ctx = hmac->opaque; gcry_mac_close(ctx->handle); g_free(ctx); g_free(hmac); }