/linux-6.1.9/crypto/asymmetric_keys/ |
D | public_key.c | 69 const char *encoding, const char *hash_algo, in software_key_determine_akcipher() argument 82 if (!hash_algo) in software_key_determine_akcipher() 89 pkey->pkey_algo, hash_algo); in software_key_determine_akcipher() 98 if (hash_algo) in software_key_determine_akcipher() 110 if (!hash_algo) in software_key_determine_akcipher() 112 if (strcmp(hash_algo, "sha1") != 0 && in software_key_determine_akcipher() 113 strcmp(hash_algo, "sha224") != 0 && in software_key_determine_akcipher() 114 strcmp(hash_algo, "sha256") != 0 && in software_key_determine_akcipher() 115 strcmp(hash_algo, "sha384") != 0 && in software_key_determine_akcipher() 116 strcmp(hash_algo, "sha512") != 0) in software_key_determine_akcipher() [all …]
|
D | x509_cert_parser.c | 204 ctx->cert->sig->hash_algo = "md4"; in x509_note_sig_algo() 208 ctx->cert->sig->hash_algo = "sha1"; in x509_note_sig_algo() 212 ctx->cert->sig->hash_algo = "sha256"; in x509_note_sig_algo() 216 ctx->cert->sig->hash_algo = "sha384"; in x509_note_sig_algo() 220 ctx->cert->sig->hash_algo = "sha512"; in x509_note_sig_algo() 224 ctx->cert->sig->hash_algo = "sha224"; in x509_note_sig_algo() 228 ctx->cert->sig->hash_algo = "sha1"; in x509_note_sig_algo() 232 ctx->cert->sig->hash_algo = "sha224"; in x509_note_sig_algo() 236 ctx->cert->sig->hash_algo = "sha256"; in x509_note_sig_algo() 240 ctx->cert->sig->hash_algo = "sha384"; in x509_note_sig_algo() [all …]
|
D | pkcs7_verify.c | 31 kenter(",%u,%s", sinfo->index, sinfo->sig->hash_algo); in pkcs7_digest() 37 if (!sinfo->sig->hash_algo) in pkcs7_digest() 43 tfm = crypto_alloc_shash(sinfo->sig->hash_algo, 0, 0); in pkcs7_digest() 126 enum hash_algo *hash_algo) in pkcs7_get_digest() argument 145 sinfo->sig->hash_algo); in pkcs7_get_digest() 147 *hash_algo = i; in pkcs7_get_digest()
|
D | pkcs7_parser.c | 231 ctx->sinfo->sig->hash_algo = "md4"; in pkcs7_sig_note_digest_algo() 234 ctx->sinfo->sig->hash_algo = "md5"; in pkcs7_sig_note_digest_algo() 237 ctx->sinfo->sig->hash_algo = "sha1"; in pkcs7_sig_note_digest_algo() 240 ctx->sinfo->sig->hash_algo = "sha256"; in pkcs7_sig_note_digest_algo() 243 ctx->sinfo->sig->hash_algo = "sha384"; in pkcs7_sig_note_digest_algo() 246 ctx->sinfo->sig->hash_algo = "sha512"; in pkcs7_sig_note_digest_algo() 249 ctx->sinfo->sig->hash_algo = "sha224"; in pkcs7_sig_note_digest_algo() 252 ctx->sinfo->sig->hash_algo = "sm3"; in pkcs7_sig_note_digest_algo() 255 ctx->sinfo->sig->hash_algo = "streebog256"; in pkcs7_sig_note_digest_algo() 258 ctx->sinfo->sig->hash_algo = "streebog512"; in pkcs7_sig_note_digest_algo()
|
D | x509_public_key.c | 45 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); in x509_get_sig_params() 169 cert->sig->pkey_algo, cert->sig->hash_algo); in x509_key_preparse()
|
/linux-6.1.9/security/integrity/ima/ |
D | ima_template_lib.c | 290 u8 digest_type, u8 hash_algo, in ima_eventdigest_init_common() argument 310 if (digest_type < DIGEST_TYPE__LAST && hash_algo < HASH_ALGO__LAST) { in ima_eventdigest_init_common() 314 hash_algo_name[hash_algo]); in ima_eventdigest_init_common() 315 } else if (hash_algo < HASH_ALGO__LAST) { in ima_eventdigest_init_common() 318 hash_algo_name[hash_algo]); in ima_eventdigest_init_common() 329 offset += hash_digest_size[hash_algo]; in ima_eventdigest_init_common() 403 u8 *cur_digest = NULL, hash_algo = ima_hash_algo; in ima_eventdigest_ng_init() local 412 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ng_init() 415 DIGEST_TYPE__LAST, hash_algo, in ima_eventdigest_ng_init() 426 u8 *cur_digest = NULL, hash_algo = ima_hash_algo; in ima_eventdigest_ngv2_init() local [all …]
|
D | ima_modsig.c | 21 enum hash_algo hash_algo; member 83 hdr->hash_algo = HASH_ALGO__LAST; in ima_read_modsig() 113 &modsig->digest_size, &modsig->hash_algo); in ima_collect_modsig() 122 int ima_get_modsig_digest(const struct modsig *modsig, enum hash_algo *algo, in ima_get_modsig_digest() 125 *algo = modsig->hash_algo; in ima_get_modsig_digest()
|
D | ima_appraise.c | 177 enum hash_algo ima_get_hash_algo(const struct evm_ima_xattr_data *xattr_value, in ima_get_hash_algo() 181 enum hash_algo ret; in ima_get_hash_algo() 191 sig->hash_algo >= HASH_ALGO__LAST) in ima_get_hash_algo() 193 return sig->hash_algo; in ima_get_hash_algo() 197 || sig->hash_algo >= HASH_ALGO__LAST) in ima_get_hash_algo() 199 return sig->hash_algo; in ima_get_hash_algo() 251 enum hash_algo algo, const u8 *digest, in calc_file_id_hash() 446 enum hash_algo hash_algo; in ima_check_blacklist() local 455 ima_get_modsig_digest(modsig, &hash_algo, &digest, &digestsize); in ima_check_blacklist() 705 enum hash_algo xattr_hash_algo; in validate_hash_algo()
|
D | ima_main.c | 79 enum hash_algo ima_get_current_hash_algo(void) in ima_get_current_hash_algo() 217 enum hash_algo hash_algo; in process_measurement() local 335 hash_algo = ima_get_hash_algo(xattr_value, xattr_len); in process_measurement() 337 rc = ima_collect_measurement(iint, file, buf, size, hash_algo, modsig); in process_measurement() 369 (allowed_algos & (1U << hash_algo)) == 0) { in process_measurement() 527 int rc, hash_algo; in __ima_inode_hash() local 575 hash_algo = iint->ima_hash->algo; in __ima_inode_hash() 581 return hash_algo; in __ima_inode_hash()
|
D | ima.h | 265 enum hash_algo algo, struct modsig *modsig); 326 enum hash_algo ima_get_hash_algo(const struct evm_ima_xattr_data *xattr_value, 368 static inline enum hash_algo 386 int ima_get_modsig_digest(const struct modsig *modsig, enum hash_algo *algo, 404 enum hash_algo *algo, const u8 **digest, in ima_get_modsig_digest()
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
D | hclge_comm_rss.c | 121 u8 hash_algo; in hclge_comm_set_rss_hash_key() local 124 ret = hclge_comm_parse_rss_hfunc(rss_cfg, hfunc, &hash_algo); in hclge_comm_set_rss_hash_key() 130 ret = hclge_comm_set_rss_algo_key(hw, hash_algo, key); in hclge_comm_set_rss_hash_key() 137 ret = hclge_comm_set_rss_algo_key(hw, hash_algo, in hclge_comm_set_rss_hash_key() 142 rss_cfg->rss_algo = hash_algo; in hclge_comm_set_rss_hash_key() 195 const u8 hfunc, u8 *hash_algo) in hclge_comm_parse_rss_hfunc() argument 199 *hash_algo = HCLGE_COMM_RSS_HASH_ALGO_TOEPLITZ; in hclge_comm_parse_rss_hfunc() 202 *hash_algo = HCLGE_COMM_RSS_HASH_ALGO_SIMPLE; in hclge_comm_parse_rss_hfunc() 205 *hash_algo = rss_cfg->rss_algo; in hclge_comm_parse_rss_hfunc()
|
/linux-6.1.9/include/crypto/ |
D | pkcs7.h | 45 u32 *len, enum hash_algo *hash_algo);
|
D | public_key.h | 45 const char *hash_algo; member
|
/linux-6.1.9/security/integrity/ |
D | digsig_asymmetric.c | 99 if (hdr->hash_algo >= HASH_ALGO__LAST) in asymmetric_verify() 108 pks.hash_algo = hash_algo_name[hdr->hash_algo]; in asymmetric_verify()
|
/linux-6.1.9/scripts/ |
D | sign-file.c | 219 char *hash_algo = NULL; in main() local 272 hash_algo = argv[1]; in main() 274 hash_algo = argv[0]; in main() 289 if (strcmp(hash_algo, "sha1") != 0) { in main() 310 digest_algo = EVP_get_digestbyname(hash_algo); in main()
|
/linux-6.1.9/include/linux/ |
D | fsverity.h | 147 enum hash_algo *alg); 189 enum hash_algo *alg) in fsverity_get_digest()
|
D | ima.h | 18 extern enum hash_algo ima_get_current_hash_algo(void); 54 static inline enum hash_algo ima_get_current_hash_algo(void) in ima_get_current_hash_algo()
|
D | keyctl.h | 32 const char *hash_algo; /* Digest algorithm used (eg. "sha1") or NULL if N/A */ member
|
/linux-6.1.9/fs/ubifs/ |
D | sb.c | 185 sup->hash_algo = cpu_to_le16(c->auth_hash_algo); in create_default_filesystem() 190 sup->hash_algo = cpu_to_le16(0xffff); in create_default_filesystem() 546 int hash_algo; in authenticate_sb_node() local 568 hash_algo = le16_to_cpu(sup->hash_algo); in authenticate_sb_node() 569 if (hash_algo >= HASH_ALGO__LAST) { in authenticate_sb_node() 571 hash_algo); in authenticate_sb_node() 575 if (strcmp(hash_algo_name[hash_algo], c->auth_hash_name)) { in authenticate_sb_node() 577 " but %s is specified", hash_algo_name[hash_algo], in authenticate_sb_node()
|
/linux-6.1.9/security/integrity/evm/ |
D | evm_crypto.c | 74 static struct shash_desc *init_desc(char type, uint8_t hash_algo) in init_desc() argument 89 if (hash_algo >= HASH_ALGO__LAST) in init_desc() 92 tfm = &evm_tfm[hash_algo]; in init_desc() 93 algo = hash_algo_name[hash_algo]; in init_desc()
|
/linux-6.1.9/drivers/crypto/virtio/ |
D | virtio_crypto_core.c | 347 u32 hash_algo = 0; in virtcrypto_probe() local 396 hash_algo, &hash_algo); in virtcrypto_probe() 430 vcrypto->hash_algo = hash_algo; in virtcrypto_probe()
|
/linux-6.1.9/include/uapi/linux/ |
D | hash_info.h | 17 enum hash_algo { enum
|
D | virtio_crypto.h | 203 __le32 hash_algo; member 513 __le32 hash_algo; member
|
/linux-6.1.9/security/keys/encrypted-keys/ |
D | ecryptfs_format.c | 73 auth_tok->token.password.hash_algo = PGP_DIGEST_ALGO_SHA512; in ecryptfs_fill_auth_tok()
|
/linux-6.1.9/fs/verity/ |
D | measure.c | 75 enum hash_algo *alg) in fsverity_get_digest()
|