Home
last modified time | relevance | path

Searched refs:hash_alg (Results 1 – 12 of 12) sorted by relevance

/openbmc/qemu/crypto/
H A Dblock-luks.c144 QCryptoHashAlgo hash_alg; member
648 luks->hash_alg = in qcrypto_block_luks_parse_header()
737 iters = qcrypto_pbkdf2_count_iters(luks->hash_alg, in qcrypto_block_luks_store_key()
774 if (qcrypto_pbkdf2(luks->hash_alg, in qcrypto_block_luks_store_key()
813 if (qcrypto_afsplit_encode(luks->hash_alg, in qcrypto_block_luks_store_key()
911 if (qcrypto_pbkdf2(luks->hash_alg, in qcrypto_block_luks_load_key()
984 if (qcrypto_afsplit_decode(luks->hash_alg, in qcrypto_block_luks_load_key()
1002 if (qcrypto_pbkdf2(luks->hash_alg, in qcrypto_block_luks_load_key()
1246 block->kdfhash = luks->hash_alg; in qcrypto_block_luks_open()
1315 const char *hash_alg; in qcrypto_block_luks_create() local
[all …]
H A Dakcipher-nettle.c.inc37 QCryptoHashAlgo hash_alg;
278 switch (rsa->hash_alg) {
296 error_setg(errp, "Unknown hash algorithm: %d", rsa->hash_alg);
343 switch (rsa->hash_alg) {
361 error_setg(errp, "Unsupported hash algorithm: %d", rsa->hash_alg);
394 rsa->hash_alg = opt->hash_alg;
431 switch (opts->u.rsa.hash_alg) {
H A Dakcipher-gcrypt.c.inc36 QCryptoHashAlgo hash_alg;
420 QCryptoHashAlgo_str(rsa->hash_alg),
500 QCryptoHashAlgo_str(rsa->hash_alg),
539 rsa->hash_alg = opt->hash_alg;
577 switch (opts->u.rsa.hash_alg) {
/openbmc/qemu/tests/unit/
H A Dtest-crypto-block.c102 .hash_alg = QCRYPTO_HASH_ALGO_SHA1,
117 QCryptoHashAlgo hash_alg; member
146 .hash_alg = QCRYPTO_HASH_ALGO_SHA256,
161 .hash_alg = QCRYPTO_HASH_ALGO_SHA256,
176 .hash_alg = QCRYPTO_HASH_ALGO_SHA1,
262 g_assert_cmpint(data->hash_alg, ==, in test_block_assert_setup()
576 !qcrypto_hash_supports(test_data[i].hash_alg)) { in main()
578 QCryptoHashAlgo_str(test_data[i].hash_alg)); in main()
H A Dtest-crypto-akcipher.c811 .hash_alg = QCRYPTO_HASH_ALGO_SHA1,
856 .hash_alg = QCRYPTO_HASH_ALGO_SHA1,
950 .hash_alg = QCRYPTO_HASH_ALGO_SHA1, in test_rsakey()
/openbmc/qemu/backends/
H A Dcryptodev-builtin.c196 int hash_alg; in cryptodev_builtin_set_rsa_options() local
198 hash_alg = cryptodev_builtin_get_rsa_hash_algo(virtio_hash_algo, errp); in cryptodev_builtin_set_rsa_options()
199 if (hash_alg < 0) { in cryptodev_builtin_set_rsa_options()
202 opt->hash_alg = hash_alg; in cryptodev_builtin_set_rsa_options()
H A Dcryptodev-lkcf.c145 QCryptoHashAlgo_str(rsa_opt->hash_alg)); in cryptodev_lkcf_set_op_desc()
164 opt->hash_alg = QCRYPTO_HASH_ALGO_MD5; in cryptodev_lkcf_set_rsa_opt()
168 opt->hash_alg = QCRYPTO_HASH_ALGO_SHA1; in cryptodev_lkcf_set_rsa_opt()
172 opt->hash_alg = QCRYPTO_HASH_ALGO_SHA256; in cryptodev_lkcf_set_rsa_opt()
176 opt->hash_alg = QCRYPTO_HASH_ALGO_SHA512; in cryptodev_lkcf_set_rsa_opt()
/openbmc/u-boot/lib/
H A Dtpm-v2.c57 u16 l = tpm2_algorithm_to_len(digest_list->digests[i].hash_alg); in tcg2_event_get_size()
124 digest_list->digests[digest_list->count].hash_alg = in tcg2_create_digest()
153 u16 hash_alg = digest_list->digests[i].hash_alg; in tcg2_log_append() local
155 len = tpm2_algorithm_to_len(hash_alg); in tcg2_log_append()
159 pos += offsetof(struct tpmt_ha, hash_alg); in tcg2_log_append()
160 put_unaligned_le16(hash_alg, log + pos); in tcg2_log_append()
315 pos += offsetof(struct tpmt_ha, hash_alg); in tcg2_replay_eventlog()
333 if (algo != digest_list->digests[i].hash_alg || in tcg2_replay_eventlog()
442 digest_list.digests[digest_list.count++].hash_alg = algo; in tcg2_log_parse()
461 len = tpm2_algorithm_to_len(digest_list.digests[i].hash_alg); in tcg2_log_parse()
[all …]
/openbmc/qemu/tests/bench/
H A Dbenchmark-crypto-akcipher.c30 opt.u.rsa.hash_alg = hash; in create_rsa_akcipher()
/openbmc/qemu/include/system/
H A Dcryptodev.h75 uint32_t hash_alg; member
/openbmc/u-boot/include/
H A Dtpm-v2.h187 u16 hash_alg; member
/openbmc/qemu/hw/virtio/
H A Dvirtio-crypto.c152 sym_info->hash_alg = in virtio_crypto_create_sym_session()
176 sym_info->hash_alg = ldl_le_p( in virtio_crypto_create_sym_session()