Home
last modified time | relevance | path

Searched refs:hash_algo (Results 1 – 25 of 42) sorted by relevance

12

/linux/security/integrity/ima/
A Dima_modsig.c21 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()
A Dima_template_lib.c268 u8 hash_algo, in ima_eventdigest_init_common() argument
282 if (hash_algo < HASH_ALGO__LAST) { in ima_eventdigest_init_common()
285 hash_algo_name[hash_algo]); in ima_eventdigest_init_common()
374 u8 *cur_digest = NULL, hash_algo = HASH_ALGO_SHA1; in ima_eventdigest_ng_init() local
383 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ng_init()
386 hash_algo, field_data); in ima_eventdigest_ng_init()
396 enum hash_algo hash_algo; in ima_eventdigest_modsig_init() local
405 hash_algo = HASH_ALGO_SHA1; in ima_eventdigest_modsig_init()
411 rc = ima_get_modsig_digest(event_data->modsig, &hash_algo, in ima_eventdigest_modsig_init()
415 else if (hash_algo == HASH_ALGO__LAST || cur_digestsize == 0) in ima_eventdigest_modsig_init()
[all …]
A Dima_appraise.c175 enum hash_algo ima_get_hash_algo(const struct evm_ima_xattr_data *xattr_value, in ima_get_hash_algo()
179 enum hash_algo ret; in ima_get_hash_algo()
189 || sig->hash_algo >= HASH_ALGO__LAST) in ima_get_hash_algo()
191 return sig->hash_algo; in ima_get_hash_algo()
347 enum hash_algo hash_algo; in ima_check_blacklist() local
356 ima_get_modsig_digest(modsig, &hash_algo, &digest, &digestsize); in ima_check_blacklist()
598 enum hash_algo xattr_hash_algo; in validate_hash_algo()
A Dima_main.c79 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()
525 int hash_algo; in __ima_inode_hash() local
551 hash_algo = iint->ima_hash->algo; in __ima_inode_hash()
554 return hash_algo; in __ima_inode_hash()
A Dima.h265 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()
A Dima_crypto.c62 enum hash_algo algo;
91 static struct crypto_shash *ima_alloc_tfm(enum hash_algo algo) in ima_alloc_tfm()
117 enum hash_algo algo; in ima_init_crypto()
289 static struct crypto_ahash *ima_alloc_atfm(enum hash_algo algo) in ima_alloc_atfm()
/linux/crypto/asymmetric_keys/
A Dx509_cert_parser.c207 ctx->cert->sig->hash_algo = "md4"; in x509_note_pkey_algo()
211 ctx->cert->sig->hash_algo = "sha1"; in x509_note_pkey_algo()
215 ctx->cert->sig->hash_algo = "sha256"; in x509_note_pkey_algo()
219 ctx->cert->sig->hash_algo = "sha384"; in x509_note_pkey_algo()
223 ctx->cert->sig->hash_algo = "sha512"; in x509_note_pkey_algo()
227 ctx->cert->sig->hash_algo = "sha224"; in x509_note_pkey_algo()
231 ctx->cert->sig->hash_algo = "sha1"; in x509_note_pkey_algo()
235 ctx->cert->sig->hash_algo = "sha224"; in x509_note_pkey_algo()
239 ctx->cert->sig->hash_algo = "sha256"; in x509_note_pkey_algo()
243 ctx->cert->sig->hash_algo = "sha384"; in x509_note_pkey_algo()
[all …]
A Dpkcs7_verify.c31 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()
A Dpublic_key.c67 const char *hash_algo, in software_key_determine_akcipher() argument
78 if (!hash_algo) in software_key_determine_akcipher()
85 pkey->pkey_algo, hash_algo); in software_key_determine_akcipher()
117 params->hash_algo, in software_key_query()
183 params->hash_algo, in software_key_eds_op()
270 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); in cert_sig_digest_update()
329 sig->hash_algo, in public_key_verify_signature()
A Dpkcs7_parser.c231 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()
A Dasym_tpm.c365 static int determine_akcipher(const char *encoding, const char *hash_algo, in determine_akcipher() argument
369 if (!hash_algo) { in determine_akcipher()
375 hash_algo) >= CRYPTO_MAX_ALG_NAME) in determine_akcipher()
404 ret = determine_akcipher(params->encoding, params->hash_algo, alg_name); in tpm_key_query()
458 ret = determine_akcipher(params->encoding, params->hash_algo, alg_name); in tpm_key_encrypt()
515 if (params->hash_algo) in tpm_key_decrypt()
644 if (params->hash_algo) { in tpm_key_sign()
646 lookup_asn1(params->hash_algo); in tpm_key_sign()
753 ret = determine_akcipher(sig->encoding, sig->hash_algo, alg_name); in tpm_key_verify_signature()
A Dx509_public_key.c43 if (!sig->hash_algo) { in x509_get_sig_params()
57 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); in x509_get_sig_params()
192 cert->sig->pkey_algo, cert->sig->hash_algo); in x509_key_preparse()
/linux/scripts/
A Dsign-file.c212 char *hash_algo = NULL; in main() local
265 hash_algo = argv[1]; in main()
267 hash_algo = argv[0]; in main()
282 if (strcmp(hash_algo, "sha1") != 0) { in main()
303 digest_algo = EVP_get_digestbyname(hash_algo); in main()
/linux/security/integrity/
A Ddigsig_asymmetric.c99 if (hdr->hash_algo >= HASH_ALGO__LAST) in asymmetric_verify()
108 pks.hash_algo = hash_algo_name[hdr->hash_algo]; in asymmetric_verify()
/linux/include/crypto/
A Dpkcs7.h45 u32 *len, enum hash_algo *hash_algo);
A Dpublic_key.h45 const char *hash_algo; member
/linux/drivers/crypto/virtio/
A Dvirtio_crypto_core.c296 u32 hash_algo = 0; in virtcrypto_probe() local
344 hash_algo, &hash_algo); in virtcrypto_probe()
375 vcrypto->hash_algo = hash_algo; in virtcrypto_probe()
A Dvirtio_crypto_common.h55 u32 hash_algo; member
/linux/fs/ubifs/
A Dsb.c185 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/
A Devm_crypto.c74 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/include/linux/
A Dima.h18 extern enum hash_algo ima_get_current_hash_algo(void);
69 static inline enum hash_algo ima_get_current_hash_algo(void) in ima_get_current_hash_algo()
A Dkeyctl.h32 const char *hash_algo; /* Digest algorithm used (eg. "sha1") or NULL if N/A */ member
A Decryptfs.h69 s32 hash_algo; member
/linux/include/uapi/linux/
A Dhash_info.h17 enum hash_algo { enum
/linux/security/keys/encrypted-keys/
A Decryptfs_format.c73 auth_tok->token.password.hash_algo = PGP_DIGEST_ALGO_SHA512; in ecryptfs_fill_auth_tok()

Completed in 32 milliseconds

12