| /linux/security/integrity/ima/ |
| H A 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() 331 if (hash_algo < HASH_ALGO__LAST) in ima_eventdigest_init_common() 332 offset += hash_digest_size[hash_algo]; in ima_eventdigest_init_common() 411 u8 *cur_digest = NULL, hash_algo = ima_hash_algo; in ima_eventdigest_ng_init() local 420 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ng_init() 423 DIGEST_TYPE__LAST, hash_algo, in ima_eventdigest_ng_init() [all …]
|
| H A D | ima_modsig.c | 21 enum hash_algo hash_algo; member 83 hdr->hash_algo = HASH_ALGO__LAST; in ima_read_modsig() 116 &modsig->digest_size, &modsig->hash_algo); in ima_collect_modsig() 125 int ima_get_modsig_digest(const struct modsig *modsig, enum hash_algo *algo, in ima_get_modsig_digest() 128 *algo = modsig->hash_algo; in ima_get_modsig_digest()
|
| H A D | ima_appraise.c | 179 enum hash_algo ima_get_hash_algo(const struct evm_ima_xattr_data *xattr_value, in ima_get_hash_algo() 183 enum hash_algo ret; in ima_get_hash_algo() 193 sig->hash_algo >= HASH_ALGO__LAST) in ima_get_hash_algo() 195 return sig->hash_algo; in ima_get_hash_algo() 199 || sig->hash_algo >= HASH_ALGO__LAST) in ima_get_hash_algo() 201 return sig->hash_algo; in ima_get_hash_algo() 420 enum hash_algo hash_algo; in modsig_verify() 429 ima_get_modsig_digest(modsig, &hash_algo, &digest, &digestsize); in modsig_verify() 707 enum hash_algo xattr_hash_alg in ima_reset_appraise_flags() 450 enum hash_algo hash_algo; ima_check_blacklist() local [all...] |
| H A D | ima.h | 55 enum hash_algo algo; 416 void *buf, loff_t size, enum hash_algo algo, 478 enum hash_algo ima_get_hash_algo(const struct evm_ima_xattr_data *xattr_value, in ima_update_xattr() 521 static inline enum hash_algo in ima_collect_modsig() 544 int ima_get_modsig_digest(const struct modsig *modsig, enum hash_algo *algo, 562 enum hash_algo *algo, const u8 **digest,
|
| H A D | ima_main.c | 100 enum hash_algo ima_get_current_hash_algo(void) in ima_get_current_hash_algo() 273 enum hash_algo hash_algo; in process_measurement() 423 hash_algo = ima_get_hash_algo(xattr_value, xattr_len); in process_measurement() 425 rc = ima_collect_measurement(iint, file, buf, size, hash_algo, modsig); in process_measurement() 464 (allowed_algos & (1U << hash_algo)) == 0) { in process_measurement() 694 int rc, hash_algo; in __ima_inode_hash() 741 hash_algo = iint->ima_hash->algo; 747 return hash_algo; in ima_file_hash() 756 * On success, return the hash algorithm (as defined in the enum hash_algo) 254 enum hash_algo hash_algo; process_measurement() local 672 int rc, hash_algo; __ima_inode_hash() local [all...] |
| H A D | ima_api.c | 210 enum hash_algo alg; in ima_get_verity_digest() 244 void *buf, loff_t size, enum hash_algo algo, in ima_collect_measurement()
|
| /linux/crypto/asymmetric_keys/ |
| H A D | x509_cert_parser.c | 190 ctx->cert->sig->hash_algo = "sha1"; in x509_note_sig_algo() 194 ctx->cert->sig->hash_algo = "sha256"; in x509_note_sig_algo() 198 ctx->cert->sig->hash_algo = "sha384"; in x509_note_sig_algo() 202 ctx->cert->sig->hash_algo = "sha512"; in x509_note_sig_algo() 206 ctx->cert->sig->hash_algo = "sha224"; in x509_note_sig_algo() 210 ctx->cert->sig->hash_algo = "sha1"; in x509_note_sig_algo() 214 ctx->cert->sig->hash_algo = "sha3-256"; in x509_note_sig_algo() 218 ctx->cert->sig->hash_algo = "sha3-384"; in x509_note_sig_algo() 222 ctx->cert->sig->hash_algo = "sha3-512"; in x509_note_sig_algo() 226 ctx->cert->sig->hash_algo = "sha224"; in x509_note_sig_algo() [all …]
|
| H A D | pkcs7_parser.c | 107 sinfo->sig->hash_algo = "none"; in pkcs7_check_authattrs() 116 sinfo->sig->hash_algo = "none"; in pkcs7_check_authattrs() 245 ctx->sinfo->sig->hash_algo = "sha1"; in pkcs7_sig_note_digest_algo() 248 ctx->sinfo->sig->hash_algo = "sha256"; in pkcs7_sig_note_digest_algo() 251 ctx->sinfo->sig->hash_algo = "sha384"; in pkcs7_sig_note_digest_algo() 254 ctx->sinfo->sig->hash_algo = "sha512"; in pkcs7_sig_note_digest_algo() 257 ctx->sinfo->sig->hash_algo = "sha224"; in pkcs7_sig_note_digest_algo() 260 ctx->sinfo->sig->hash_algo = "sm3"; in pkcs7_sig_note_digest_algo() 263 ctx->sinfo->sig->hash_algo = "streebog256"; in pkcs7_sig_note_digest_algo() 266 ctx->sinfo->sig->hash_algo = "streebog512"; in pkcs7_sig_note_digest_algo() [all …]
|
| H A D | x509_public_key.c | 65 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); in x509_get_sig_params() 186 cert->sig->pkey_algo, cert->sig->hash_algo); in x509_key_preparse()
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
| H A D | hclge_comm_rss.c | 124 u8 hash_algo; in hclge_comm_set_rss_hash_key() local 127 ret = hclge_comm_parse_rss_hfunc(rss_cfg, hfunc, &hash_algo); in hclge_comm_set_rss_hash_key() 133 ret = hclge_comm_set_rss_algo_key(hw, hash_algo, key); in hclge_comm_set_rss_hash_key() 140 ret = hclge_comm_set_rss_algo_key(hw, hash_algo, in hclge_comm_set_rss_hash_key() 145 rss_cfg->rss_algo = hash_algo; in hclge_comm_set_rss_hash_key() 201 const u8 hfunc, u8 *hash_algo) in hclge_comm_parse_rss_hfunc() argument 205 *hash_algo = HCLGE_COMM_RSS_HASH_ALGO_TOEPLITZ; in hclge_comm_parse_rss_hfunc() 208 *hash_algo = HCLGE_COMM_RSS_HASH_ALGO_SIMPLE; in hclge_comm_parse_rss_hfunc() 211 *hash_algo = rss_cfg->rss_algo; in hclge_comm_parse_rss_hfunc()
|
| /linux/security/integrity/ |
| H A 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() 138 * @algo: hash algorithm [enum hash_algo] 148 enum hash_algo algo, const u8 *digest,
|
| /linux/include/crypto/ |
| H A D | pkcs7.h | 45 u32 *len, enum hash_algo *hash_algo);
|
| /linux/scripts/ |
| H A D | sign-file.c | 189 char *hash_algo = NULL; in read_x509() 229 hash_algo = argv[1]; in main() 231 hash_algo = argv[0]; in main() 259 digest_algo = EVP_get_digestbyname(hash_algo); in main() 223 char *hash_algo = NULL; main() local
|
| /linux/drivers/platform/cznic/ |
| H A D | turris-signing-key.c | 65 if (params->hash_algo && strcmp(params->hash_algo, subtype->hash_algo)) in turris_signing_key_asym_valid_params()
|
| H A D | turris-omnia-mcu-keyctl.c | 102 .hash_algo = "sha256",
|
| /linux/fs/ubifs/ |
| H A 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/security/integrity/evm/ |
| H A D | evm_crypto.c | 75 static struct shash_desc *init_desc(char type, uint8_t hash_algo) in init_desc() 90 if (hash_algo >= HASH_ALGO__LAST) in init_desc() 93 tfm = &evm_tfm[hash_algo]; in init_desc() 94 algo = hash_algo_name[hash_algo]; in init_desc() 74 init_desc(char type,uint8_t hash_algo) init_desc() argument
|
| /linux/include/linux/ |
| H A D | fsverity.h | 186 u8 *alg, enum hash_algo *halg); 234 u8 *alg, enum hash_algo *halg) in fsverity_get_digest()
|
| H A D | keyctl.h | 32 const char *hash_algo; /* Digest algorithm used (eg. "sha1") or NULL if N/A */ member
|
| H A D | turris-signing-key.h | 20 const char *hash_algo; member
|
| H A D | tsm-mr.h | 41 enum hash_algo mr_hash;
|
| H A D | ecryptfs.h | 69 s32 hash_algo; member
|
| /linux/include/uapi/linux/ |
| H A D | hash_info.h | 17 enum hash_algo { enum
|
| /linux/security/keys/encrypted-keys/ |
| H A D | ecryptfs_format.c | 72 auth_tok->token.password.hash_algo = PGP_DIGEST_ALGO_SHA512; in ecryptfs_fill_auth_tok()
|
| /linux/drivers/crypto/virtio/ |
| H A D | virtio_crypto_akcipher_algs.c | 342 int hash_algo) in virtio_crypto_rsa_set_key() argument 396 para.u.rsa.hash_algo = cpu_to_le32(hash_algo); in virtio_crypto_rsa_set_key()
|