Symbol: hash_algo
arch/arm64/include/asm/rsi_smc.h
131
unsigned long hash_algo; /* Hash algorithm */
arch/x86/platform/efi/quirks.c
72
u32 hash_algo;
crypto/asymmetric_keys/asymmetric_type.c
599
.hash_algo = params->hash_algo,
crypto/asymmetric_keys/pkcs7_parser.c
107
sinfo->sig->hash_algo = "none";
crypto/asymmetric_keys/pkcs7_parser.c
116
sinfo->sig->hash_algo = "none";
crypto/asymmetric_keys/pkcs7_parser.c
245
ctx->sinfo->sig->hash_algo = "sha1";
crypto/asymmetric_keys/pkcs7_parser.c
248
ctx->sinfo->sig->hash_algo = "sha256";
crypto/asymmetric_keys/pkcs7_parser.c
251
ctx->sinfo->sig->hash_algo = "sha384";
crypto/asymmetric_keys/pkcs7_parser.c
254
ctx->sinfo->sig->hash_algo = "sha512";
crypto/asymmetric_keys/pkcs7_parser.c
257
ctx->sinfo->sig->hash_algo = "sha224";
crypto/asymmetric_keys/pkcs7_parser.c
260
ctx->sinfo->sig->hash_algo = "sm3";
crypto/asymmetric_keys/pkcs7_parser.c
263
ctx->sinfo->sig->hash_algo = "streebog256";
crypto/asymmetric_keys/pkcs7_parser.c
266
ctx->sinfo->sig->hash_algo = "streebog512";
crypto/asymmetric_keys/pkcs7_parser.c
269
ctx->sinfo->sig->hash_algo = "sha3-256";
crypto/asymmetric_keys/pkcs7_parser.c
272
ctx->sinfo->sig->hash_algo = "sha3-384";
crypto/asymmetric_keys/pkcs7_parser.c
275
ctx->sinfo->sig->hash_algo = "sha3-512";
crypto/asymmetric_keys/pkcs7_verify.c
139
enum hash_algo *hash_algo)
crypto/asymmetric_keys/pkcs7_verify.c
163
sinfo->sig->hash_algo);
crypto/asymmetric_keys/pkcs7_verify.c
165
*hash_algo = i;
crypto/asymmetric_keys/pkcs7_verify.c
31
kenter(",%u,%s", sinfo->index, sinfo->sig->hash_algo);
crypto/asymmetric_keys/pkcs7_verify.c
47
if (!sinfo->sig->hash_algo)
crypto/asymmetric_keys/pkcs7_verify.c
53
tfm = crypto_alloc_shash(sinfo->sig->hash_algo, 0, 0);
crypto/asymmetric_keys/public_key.c
109
if (hash_algo)
crypto/asymmetric_keys/public_key.c
123
if (!hash_algo)
crypto/asymmetric_keys/public_key.c
125
if (strcmp(hash_algo, "sha1") != 0 &&
crypto/asymmetric_keys/public_key.c
126
strcmp(hash_algo, "sha224") != 0 &&
crypto/asymmetric_keys/public_key.c
127
strcmp(hash_algo, "sha256") != 0 &&
crypto/asymmetric_keys/public_key.c
128
strcmp(hash_algo, "sha384") != 0 &&
crypto/asymmetric_keys/public_key.c
129
strcmp(hash_algo, "sha512") != 0 &&
crypto/asymmetric_keys/public_key.c
130
strcmp(hash_algo, "sha3-256") != 0 &&
crypto/asymmetric_keys/public_key.c
131
strcmp(hash_algo, "sha3-384") != 0 &&
crypto/asymmetric_keys/public_key.c
132
strcmp(hash_algo, "sha3-512") != 0)
crypto/asymmetric_keys/public_key.c
140
if (!hash_algo)
crypto/asymmetric_keys/public_key.c
142
if (strcmp(hash_algo, "streebog256") != 0 &&
crypto/asymmetric_keys/public_key.c
143
strcmp(hash_algo, "streebog512") != 0)
crypto/asymmetric_keys/public_key.c
150
if (!hash_algo)
crypto/asymmetric_keys/public_key.c
152
if (strcmp(hash_algo, "none") != 0 &&
crypto/asymmetric_keys/public_key.c
153
strcmp(hash_algo, "sha512") != 0)
crypto/asymmetric_keys/public_key.c
183
params->hash_algo, alg_name,
crypto/asymmetric_keys/public_key.c
291
params->hash_algo, alg_name,
crypto/asymmetric_keys/public_key.c
409
sig->hash_algo, alg_name,
crypto/asymmetric_keys/public_key.c
68
const char *encoding, const char *hash_algo,
crypto/asymmetric_keys/public_key.c
95
if (!hash_algo)
crypto/asymmetric_keys/public_key.c
96
hash_algo = "none";
crypto/asymmetric_keys/public_key.c
99
pkey->pkey_algo, hash_algo);
crypto/asymmetric_keys/x509_cert_parser.c
190
ctx->cert->sig->hash_algo = "sha1";
crypto/asymmetric_keys/x509_cert_parser.c
194
ctx->cert->sig->hash_algo = "sha256";
crypto/asymmetric_keys/x509_cert_parser.c
198
ctx->cert->sig->hash_algo = "sha384";
crypto/asymmetric_keys/x509_cert_parser.c
202
ctx->cert->sig->hash_algo = "sha512";
crypto/asymmetric_keys/x509_cert_parser.c
206
ctx->cert->sig->hash_algo = "sha224";
crypto/asymmetric_keys/x509_cert_parser.c
210
ctx->cert->sig->hash_algo = "sha1";
crypto/asymmetric_keys/x509_cert_parser.c
214
ctx->cert->sig->hash_algo = "sha3-256";
crypto/asymmetric_keys/x509_cert_parser.c
218
ctx->cert->sig->hash_algo = "sha3-384";
crypto/asymmetric_keys/x509_cert_parser.c
222
ctx->cert->sig->hash_algo = "sha3-512";
crypto/asymmetric_keys/x509_cert_parser.c
226
ctx->cert->sig->hash_algo = "sha224";
crypto/asymmetric_keys/x509_cert_parser.c
230
ctx->cert->sig->hash_algo = "sha256";
crypto/asymmetric_keys/x509_cert_parser.c
234
ctx->cert->sig->hash_algo = "sha384";
crypto/asymmetric_keys/x509_cert_parser.c
238
ctx->cert->sig->hash_algo = "sha512";
crypto/asymmetric_keys/x509_cert_parser.c
242
ctx->cert->sig->hash_algo = "sha3-256";
crypto/asymmetric_keys/x509_cert_parser.c
246
ctx->cert->sig->hash_algo = "sha3-384";
crypto/asymmetric_keys/x509_cert_parser.c
250
ctx->cert->sig->hash_algo = "sha3-512";
crypto/asymmetric_keys/x509_cert_parser.c
254
ctx->cert->sig->hash_algo = "streebog256";
crypto/asymmetric_keys/x509_cert_parser.c
258
ctx->cert->sig->hash_algo = "streebog512";
crypto/asymmetric_keys/x509_cert_parser.c
288
ctx->cert->sig->hash_algo = "none";
crypto/asymmetric_keys/x509_public_key.c
186
cert->sig->pkey_algo, cert->sig->hash_algo);
crypto/asymmetric_keys/x509_public_key.c
65
tfm = crypto_alloc_shash(sig->hash_algo, 0, 0);
drivers/char/tpm/tpm2-cmd.c
529
enum hash_algo crypto_algo = tpm2_hash_map[i].crypto_id;
drivers/crypto/virtio/virtio_crypto_akcipher_algs.c
342
int hash_algo)
drivers/crypto/virtio/virtio_crypto_akcipher_algs.c
396
para.u.rsa.hash_algo = cpu_to_le32(hash_algo);
drivers/crypto/virtio/virtio_crypto_common.h
61
u32 hash_algo;
drivers/crypto/virtio/virtio_crypto_core.c
353
u32 hash_algo = 0;
drivers/crypto/virtio/virtio_crypto_core.c
402
hash_algo, &hash_algo);
drivers/crypto/virtio/virtio_crypto_core.c
436
vcrypto->hash_algo = hash_algo;
drivers/crypto/virtio/virtio_crypto_mgr.c
273
algo_mask = vcrypto->hash_algo;
drivers/firmware/turris-mox-rwtm.c
365
.hash_algo = "sha512",
drivers/gpu/drm/nouveau/include/nvfw/acr.h
123
u16 hash_algo;
drivers/net/ethernet/fungible/funeth/funeth.h
136
enum fun_eth_hash_alg hash_algo;
drivers/net/ethernet/fungible/funeth/funeth_ethtool.c
1007
algo = fp->hash_algo;
drivers/net/ethernet/fungible/funeth/funeth_ethtool.c
1026
fp->hash_algo = algo;
drivers/net/ethernet/fungible/funeth/funeth_ethtool.c
988
rxfh->hfunc = fp->hash_algo == FUN_ETH_RSS_ALG_TOEPLITZ ?
drivers/net/ethernet/fungible/funeth/funeth_main.c
1405
err = fun_config_rss(dev, fp->hash_algo, fp->rss_key,
drivers/net/ethernet/fungible/funeth/funeth_main.c
1434
fp->hash_algo = FUN_ETH_RSS_ALG_TOEPLITZ;
drivers/net/ethernet/fungible/funeth/funeth_main.c
805
err = fun_config_rss(dev, fp->hash_algo, fp->rss_key,
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c
124
u8 hash_algo;
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c
127
ret = hclge_comm_parse_rss_hfunc(rss_cfg, hfunc, &hash_algo);
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c
133
ret = hclge_comm_set_rss_algo_key(hw, hash_algo, key);
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c
140
ret = hclge_comm_set_rss_algo_key(hw, hash_algo,
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c
145
rss_cfg->rss_algo = hash_algo;
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c
201
const u8 hfunc, u8 *hash_algo)
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c
205
*hash_algo = HCLGE_COMM_RSS_HASH_ALGO_TOEPLITZ;
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c
208
*hash_algo = HCLGE_COMM_RSS_HASH_ALGO_SIMPLE;
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c
211
*hash_algo = rss_cfg->rss_algo;
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.h
103
const u8 hfunc, u8 *hash_algo);
drivers/platform/cznic/turris-omnia-mcu-keyctl.c
102
.hash_algo = "sha256",
drivers/platform/cznic/turris-signing-key.c
65
if (params->hash_algo && strcmp(params->hash_algo, subtype->hash_algo))
fs/ecryptfs/keystore.c
1447
(*new_auth_tok)->token.password.hash_algo = 0x01; /* MD5 */
fs/ubifs/sb.c
185
sup->hash_algo = cpu_to_le16(c->auth_hash_algo);
fs/ubifs/sb.c
190
sup->hash_algo = cpu_to_le16(0xffff);
fs/ubifs/sb.c
546
int hash_algo;
fs/ubifs/sb.c
568
hash_algo = le16_to_cpu(sup->hash_algo);
fs/ubifs/sb.c
569
if (hash_algo >= HASH_ALGO__LAST) {
fs/ubifs/sb.c
571
hash_algo);
fs/ubifs/sb.c
575
if (strcmp(hash_algo_name[hash_algo], c->auth_hash_name)) {
fs/ubifs/sb.c
577
" but %s is specified", hash_algo_name[hash_algo],
fs/ubifs/ubifs-media.h
680
__le16 hash_algo;
fs/ubifs/ubifs.h
1493
enum hash_algo auth_hash_algo;
fs/verity/fsverity_private.h
31
enum hash_algo algo_id;
fs/verity/measure.c
88
u8 *alg, enum hash_algo *halg)
include/crypto/pkcs7.h
45
u32 *len, enum hash_algo *hash_algo);
include/crypto/public_key.h
52
const char *hash_algo;
include/linux/ecryptfs.h
69
s32 hash_algo;
include/linux/fsverity.h
186
u8 *alg, enum hash_algo *halg);
include/linux/fsverity.h
234
u8 *alg, enum hash_algo *halg)
include/linux/ima.h
18
extern enum hash_algo ima_get_current_hash_algo(void);
include/linux/ima.h
41
static inline enum hash_algo ima_get_current_hash_algo(void)
include/linux/keyctl.h
32
const char *hash_algo; /* Digest algorithm used (eg. "sha1") or NULL if N/A */
include/linux/tsm-mr.h
41
enum hash_algo mr_hash;
include/linux/turris-signing-key.h
20
const char *hash_algo;
include/uapi/linux/virtio_crypto.h
203
__le32 hash_algo;
include/uapi/linux/virtio_crypto.h
514
__le32 hash_algo;
scripts/sign-file.c
201
char *hash_algo = NULL;
scripts/sign-file.c
241
hash_algo = argv[1];
scripts/sign-file.c
243
hash_algo = argv[0];
scripts/sign-file.c
271
digest_algo = EVP_get_digestbyname(hash_algo);
security/integrity/digsig_asymmetric.c
108
pks.hash_algo = hash_algo_name[hdr->hash_algo];
security/integrity/digsig_asymmetric.c
99
if (hdr->hash_algo >= HASH_ALGO__LAST)
security/integrity/evm/evm_crypto.c
75
static struct shash_desc *init_desc(char type, uint8_t hash_algo)
security/integrity/evm/evm_crypto.c
90
if (hash_algo >= HASH_ALGO__LAST)
security/integrity/evm/evm_crypto.c
93
tfm = &evm_tfm[hash_algo];
security/integrity/evm/evm_crypto.c
94
algo = hash_algo_name[hash_algo];
security/integrity/evm/evm_main.c
253
digest.hdr.algo = hdr->hash_algo;
security/integrity/ima/ima.h
389
void *buf, loff_t size, enum hash_algo algo,
security/integrity/ima/ima.h
451
enum hash_algo ima_get_hash_algo(const struct evm_ima_xattr_data *xattr_value,
security/integrity/ima/ima.h
494
static inline enum hash_algo
security/integrity/ima/ima.h
517
int ima_get_modsig_digest(const struct modsig *modsig, enum hash_algo *algo,
security/integrity/ima/ima.h
535
enum hash_algo *algo, const u8 **digest,
security/integrity/ima/ima.h
55
enum hash_algo algo;
security/integrity/ima/ima_api.c
210
enum hash_algo alg;
security/integrity/ima/ima_api.c
244
void *buf, loff_t size, enum hash_algo algo,
security/integrity/ima/ima_appraise.c
179
enum hash_algo ima_get_hash_algo(const struct evm_ima_xattr_data *xattr_value,
security/integrity/ima/ima_appraise.c
183
enum hash_algo ret;
security/integrity/ima/ima_appraise.c
193
sig->hash_algo >= HASH_ALGO__LAST)
security/integrity/ima/ima_appraise.c
195
return sig->hash_algo;
security/integrity/ima/ima_appraise.c
199
|| sig->hash_algo >= HASH_ALGO__LAST)
security/integrity/ima/ima_appraise.c
201
return sig->hash_algo;
security/integrity/ima/ima_appraise.c
253
enum hash_algo algo, const u8 *digest,
security/integrity/ima/ima_appraise.c
450
enum hash_algo hash_algo;
security/integrity/ima/ima_appraise.c
459
ima_get_modsig_digest(modsig, &hash_algo, &digest, &digestsize);
security/integrity/ima/ima_appraise.c
732
enum hash_algo xattr_hash_algo;
security/integrity/ima/ima_crypto.c
112
enum hash_algo algo;
security/integrity/ima/ima_crypto.c
285
static struct crypto_ahash *ima_alloc_atfm(enum hash_algo algo)
security/integrity/ima/ima_crypto.c
86
static struct crypto_shash *ima_alloc_tfm(enum hash_algo algo)
security/integrity/ima/ima_fs.c
135
enum hash_algo algo;
security/integrity/ima/ima_fs.c
232
enum hash_algo algo;
security/integrity/ima/ima_main.c
100
enum hash_algo ima_get_current_hash_algo(void)
security/integrity/ima/ima_main.c
255
enum hash_algo hash_algo;
security/integrity/ima/ima_main.c
405
hash_algo = ima_get_hash_algo(xattr_value, xattr_len);
security/integrity/ima/ima_main.c
407
rc = ima_collect_measurement(iint, file, buf, size, hash_algo, modsig);
security/integrity/ima/ima_main.c
446
(allowed_algos & (1U << hash_algo)) == 0) {
security/integrity/ima/ima_main.c
676
int rc, hash_algo;
security/integrity/ima/ima_main.c
723
hash_algo = iint->ima_hash->algo;
security/integrity/ima/ima_main.c
729
return hash_algo;
security/integrity/ima/ima_modsig.c
116
&modsig->digest_size, &modsig->hash_algo);
security/integrity/ima/ima_modsig.c
125
int ima_get_modsig_digest(const struct modsig *modsig, enum hash_algo *algo,
security/integrity/ima/ima_modsig.c
128
*algo = modsig->hash_algo;
security/integrity/ima/ima_modsig.c
21
enum hash_algo hash_algo;
security/integrity/ima/ima_modsig.c
83
hdr->hash_algo = HASH_ALGO__LAST;
security/integrity/ima/ima_template_lib.c
290
u8 digest_type, u8 hash_algo,
security/integrity/ima/ima_template_lib.c
310
if (digest_type < DIGEST_TYPE__LAST && hash_algo < HASH_ALGO__LAST) {
security/integrity/ima/ima_template_lib.c
314
hash_algo_name[hash_algo]);
security/integrity/ima/ima_template_lib.c
315
} else if (hash_algo < HASH_ALGO__LAST) {
security/integrity/ima/ima_template_lib.c
318
hash_algo_name[hash_algo]);
security/integrity/ima/ima_template_lib.c
331
if (hash_algo < HASH_ALGO__LAST)
security/integrity/ima/ima_template_lib.c
332
offset += hash_digest_size[hash_algo];
security/integrity/ima/ima_template_lib.c
411
u8 *cur_digest = NULL, hash_algo = ima_hash_algo;
security/integrity/ima/ima_template_lib.c
420
hash_algo = event_data->iint->ima_hash->algo;
security/integrity/ima/ima_template_lib.c
423
DIGEST_TYPE__LAST, hash_algo,
security/integrity/ima/ima_template_lib.c
434
u8 *cur_digest = NULL, hash_algo = ima_hash_algo;
security/integrity/ima/ima_template_lib.c
444
hash_algo = event_data->iint->ima_hash->algo;
security/integrity/ima/ima_template_lib.c
449
digest_type, hash_algo,
security/integrity/ima/ima_template_lib.c
460
enum hash_algo hash_algo;
security/integrity/ima/ima_template_lib.c
469
hash_algo = HASH_ALGO_SHA1;
security/integrity/ima/ima_template_lib.c
475
rc = ima_get_modsig_digest(event_data->modsig, &hash_algo,
security/integrity/ima/ima_template_lib.c
479
else if (hash_algo == HASH_ALGO__LAST || cur_digestsize == 0)
security/integrity/ima/ima_template_lib.c
485
DIGEST_TYPE__LAST, hash_algo,
security/integrity/integrity.h
95
uint8_t hash_algo; /* Digest algorithm [enum hash_algo] */
security/ipe/eval.c
201
enum hash_algo alg;
security/keys/encrypted-keys/ecryptfs_format.c
72
auth_tok->token.password.hash_algo = PGP_DIGEST_ALGO_SHA512;
security/keys/keyctl_pkey.c
63
params->hash_algo = q;