Searched refs:qcrypto_hmac_alg_map (Results 1 – 4 of 4) sorted by relevance
/openbmc/qemu/crypto/ |
H A D | hmac-nettle.c | 49 } qcrypto_hmac_alg_map[QCRYPTO_HASH_ALG__MAX] = { variable 96 if (alg < G_N_ELEMENTS(qcrypto_hmac_alg_map) && in qcrypto_hmac_supports() 97 qcrypto_hmac_alg_map[alg].setkey != NULL) { in qcrypto_hmac_supports() 118 qcrypto_hmac_alg_map[alg].setkey(&ctx->u, nkey, key); in qcrypto_hmac_ctx_new() 150 qcrypto_hmac_alg_map[hmac->alg].update(&ctx->u, len, base); in qcrypto_nettle_hmac_bytesv() 157 *resultlen = qcrypto_hmac_alg_map[hmac->alg].len; in qcrypto_nettle_hmac_bytesv() 159 } else if (*resultlen != qcrypto_hmac_alg_map[hmac->alg].len) { in qcrypto_nettle_hmac_bytesv() 162 *resultlen, qcrypto_hmac_alg_map[hmac->alg].len); in qcrypto_nettle_hmac_bytesv() 166 qcrypto_hmac_alg_map[hmac->alg].digest(&ctx->u, *resultlen, *result); in qcrypto_nettle_hmac_bytesv()
|
H A D | hmac-gnutls.c | 23 static int qcrypto_hmac_alg_map[QCRYPTO_HASH_ALG__MAX] = { variable 42 if (alg >= G_N_ELEMENTS(qcrypto_hmac_alg_map) || in qcrypto_hmac_supports() 43 qcrypto_hmac_alg_map[alg] == GNUTLS_DIG_UNKNOWN) { in qcrypto_hmac_supports() 48 if (algs[i] == qcrypto_hmac_alg_map[alg]) { in qcrypto_hmac_supports() 71 qcrypto_hmac_alg_map[alg], in qcrypto_hmac_ctx_new() 115 ret = gnutls_hmac_get_len(qcrypto_hmac_alg_map[hmac->alg]); in qcrypto_gnutls_hmac_bytesv()
|
H A D | hmac-glib.c | 20 static int qcrypto_hmac_alg_map[QCRYPTO_HASH_ALG__MAX] = { variable 37 if (alg < G_N_ELEMENTS(qcrypto_hmac_alg_map) && in qcrypto_hmac_supports() 38 qcrypto_hmac_alg_map[alg] != -1) { in qcrypto_hmac_supports() 59 ctx->ghmac = g_hmac_new(qcrypto_hmac_alg_map[alg], in qcrypto_hmac_ctx_new() 101 ret = g_checksum_type_get_length(qcrypto_hmac_alg_map[hmac->alg]); in qcrypto_glib_hmac_bytesv()
|
H A D | hmac-gcrypt.c | 21 static int qcrypto_hmac_alg_map[QCRYPTO_HASH_ALG__MAX] = { variable 38 if (alg < G_N_ELEMENTS(qcrypto_hmac_alg_map) && in qcrypto_hmac_supports() 39 qcrypto_hmac_alg_map[alg] != GCRY_MAC_NONE) { in qcrypto_hmac_supports() 61 err = gcry_mac_open(&ctx->handle, qcrypto_hmac_alg_map[alg], in qcrypto_hmac_ctx_new() 114 ret = gcry_mac_get_algo_maclen(qcrypto_hmac_alg_map[hmac->alg]); in qcrypto_gcrypt_hmac_bytesv()
|