예제 #1
0
static void
bench_mac_free (struct bench_obj *obj)
{
  gcry_mac_hd_t hd = obj->priv;

  gcry_mac_close (hd);
}
예제 #2
0
파일: hmac-gcrypt.c 프로젝트: Icenowy/qemu
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);
}