Home
last modified time | relevance | path

Searched refs:qcrypto_hash_alg_map (Results 1 – 4 of 4) sorted by relevance

/openbmc/qemu/crypto/
H A Dhash-gcrypt.c29 static int qcrypto_hash_alg_map[QCRYPTO_HASH_ALGO__MAX] = { variable
44 if (alg < G_N_ELEMENTS(qcrypto_hash_alg_map) && in qcrypto_hash_supports()
45 qcrypto_hash_alg_map[alg] != GCRY_MD_NONE) { in qcrypto_hash_supports()
46 return gcry_md_test_algo(qcrypto_hash_alg_map[alg]) == 0; in qcrypto_hash_supports()
62 qcrypto_hash_alg_map[alg], 0); in qcrypto_gcrypt_hash_new()
113 ret = gcry_md_get_algo_dlen(qcrypto_hash_alg_map[hash->alg]); in qcrypto_gcrypt_hash_finalize()
H A Dhash-gnutls.c29 static int qcrypto_hash_alg_map[QCRYPTO_HASH_ALGO__MAX] = { variable
43 if (alg >= G_N_ELEMENTS(qcrypto_hash_alg_map) || in qcrypto_hash_supports()
44 qcrypto_hash_alg_map[alg] == GNUTLS_DIG_UNKNOWN) { in qcrypto_hash_supports()
49 if (algs[i] == qcrypto_hash_alg_map[alg]) { in qcrypto_hash_supports()
66 ret = gnutls_hash_init(hash->opaque, qcrypto_hash_alg_map[alg]); in qcrypto_gnutls_hash_new()
120 ret = gnutls_hash_get_len(qcrypto_hash_alg_map[hash->alg]); in qcrypto_gnutls_hash_finalize()
H A Dhash-nettle.c59 } qcrypto_hash_alg_map[] = { variable
114 if (alg < G_N_ELEMENTS(qcrypto_hash_alg_map) && in qcrypto_hash_supports()
115 qcrypto_hash_alg_map[alg].init != NULL) { in qcrypto_hash_supports()
130 qcrypto_hash_alg_map[alg].init(hash->opaque); in qcrypto_nettle_hash_new()
152 qcrypto_hash_alg_map[hash->alg].write(ctx, in qcrypto_nettle_hash_update()
167 int ret = qcrypto_hash_alg_map[hash->alg].len; in qcrypto_nettle_hash_finalize()
179 qcrypto_hash_alg_map[hash->alg].result(ctx, *result_len, *result); in qcrypto_nettle_hash_finalize()
H A Dhash-glib.c28 static int qcrypto_hash_alg_map[QCRYPTO_HASH_ALGO__MAX] = { variable
40 if (alg < G_N_ELEMENTS(qcrypto_hash_alg_map) && in qcrypto_hash_supports()
41 qcrypto_hash_alg_map[alg] != -1) { in qcrypto_hash_supports()
55 hash->opaque = g_checksum_new(qcrypto_hash_alg_map[alg]); in qcrypto_glib_hash_new()
95 ret = g_checksum_type_get_length(qcrypto_hash_alg_map[hash->alg]); in qcrypto_glib_hash_finalize()