Esempio n. 1
0
static void
bench_mac_free (struct bench_obj *obj)
{
  gcry_mac_hd_t hd = obj->priv;

  gcry_mac_close (hd);
}
Esempio n. 2
0
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);
}