Home
last modified time | relevance | path

Searched refs:hash_len (Results 1 – 17 of 17) sorted by relevance

/linux/certs/
H A Dblacklist.c146 static char *get_raw_hash(const u8 *hash, size_t hash_len, in get_raw_hash() argument
166 buffer = kmalloc(type_len + 1 + hash_len * 2 + 1, GFP_KERNEL); in get_raw_hash()
172 bin2hex(p, hash, hash_len); in get_raw_hash()
173 p += hash_len * 2; in get_raw_hash()
204 int mark_hash_blacklisted(const u8 *hash, size_t hash_len, in mark_hash_blacklisted() argument
210 buffer = get_raw_hash(hash, hash_len, hash_type); in mark_hash_blacklisted()
224 int is_hash_blacklisted(const u8 *hash, size_t hash_len, in is_hash_blacklisted() argument
231 buffer = get_raw_hash(hash, hash_len, hash_type); in is_hash_blacklisted()
246 int is_binary_blacklisted(const u8 *hash, size_t hash_len) in is_binary_blacklisted() argument
248 if (is_hash_blacklisted(hash, hash_len, BLACKLIST_HASH_BINARY) == in is_binary_blacklisted()
/linux/include/keys/
H A Dsystem_keyring.h78 extern int mark_hash_blacklisted(const u8 *hash, size_t hash_len,
80 extern int is_hash_blacklisted(const u8 *hash, size_t hash_len,
82 extern int is_binary_blacklisted(const u8 *hash, size_t hash_len);
84 static inline int is_hash_blacklisted(const u8 *hash, size_t hash_len, in is_hash_blacklisted() argument
90 static inline int is_binary_blacklisted(const u8 *hash, size_t hash_len) in is_binary_blacklisted() argument
/linux/drivers/nvme/host/
H A Dauth.c37 size_t hash_len; member
188 chap->hash_len = 0; in nvme_auth_process_dhchap_challenge()
212 chap->hash_len = data->hl; in nvme_auth_process_dhchap_challenge()
274 memcpy(chap->c1, data->cval, chap->hash_len); in nvme_auth_process_dhchap_challenge()
282 memcpy(chap->ctrl_key, data->cval + chap->hash_len, in nvme_auth_process_dhchap_challenge()
297 size += 2 * chap->hash_len; in nvme_auth_set_dhchap_reply_data()
311 data->hl = chap->hash_len; in nvme_auth_set_dhchap_reply_data()
313 memcpy(data->rval, chap->response, chap->hash_len); in nvme_auth_set_dhchap_reply_data()
316 get_random_bytes(chap->c2, chap->hash_len); in nvme_auth_set_dhchap_reply_data()
318 memcpy(data->rval + chap->hash_len, chap->c2, in nvme_auth_set_dhchap_reply_data()
[all …]
/linux/drivers/md/
H A Ddm-ima.c343 table->md->ima.inactive_table.hash_len = strlen(digest_buf); in dm_ima_measure_on_table_load()
395 md->ima.active_table.hash_len = 0; in dm_ima_measure_on_device_resume()
407 md->ima.active_table.hash_len = md->ima.inactive_table.hash_len; in dm_ima_measure_on_device_resume()
409 md->ima.inactive_table.hash_len = 0; in dm_ima_measure_on_device_resume()
437 md->ima.active_table.hash_len); in dm_ima_measure_on_device_resume()
438 l += md->ima.active_table.hash_len; in dm_ima_measure_on_device_resume()
533 md->ima.active_table.hash_len); in dm_ima_measure_on_device_remove()
534 l += md->ima.active_table.hash_len; in dm_ima_measure_on_device_remove()
547 md->ima.inactive_table.hash_len); in dm_ima_measure_on_device_remove()
548 l += md->ima.inactive_table.hash_len; in dm_ima_measure_on_device_remove()
[all …]
H A Ddm-ima.h46 unsigned int hash_len; member
/linux/tools/perf/util/
H A Ddemangle-rust.c47 static const size_t hash_len = 16; variable
85 if (len <= hash_prefix_len + hash_len) in rust_is_mangled()
89 len_without_hash = len - (hash_prefix_len + hash_len); in rust_is_mangled()
112 for (end = str + hash_len; str < end; str++) in is_prefixed_hash()
193 end = sym + strlen(sym) - (hash_prefix_len + hash_len); in rust_demangle_sym()
/linux/fs/ubifs/
H A Dauth.c48 return crypto_shash_tfm_digest(c->hmac_tfm, hash, c->hash_len, hmac); in ubifs_hash_calc_hmac()
139 int len = min(c->hash_len, 20); in ubifs_bad_hash()
140 int cropped = len != c->hash_len; in ubifs_bad_hash()
309 c->hash_len = crypto_shash_digestsize(c->hash_tfm); in ubifs_init_authentication()
310 if (c->hash_len > UBIFS_HASH_ARR_SZ) { in ubifs_init_authentication()
312 c->auth_hash_name, c->hash_len, UBIFS_HASH_ARR_SZ); in ubifs_init_authentication()
H A Dmisc.h188 return UBIFS_IDX_NODE_SZ + (UBIFS_BRANCH_SZ + c->key_len + c->hash_len) in ubifs_idx_node_sz()
204 (UBIFS_BRANCH_SZ + c->key_len + c->hash_len) * bnum); in ubifs_idx_branch()
H A Dubifs.h1366 int hash_len; member
1602 return crypto_memneq(expected, got, c->hash_len); in ubifs_check_hash()
1673 memcpy(to, from, c->hash_len); in ubifs_copy_hash()
H A Dreplay.c618 c->hash_len, hmac); in authenticate_sleb()
/linux/drivers/nvme/target/
H A Dfabrics-cmd-auth.c358 int hash_len = nvme_auth_hmac_hash_len(ctrl->shash_id); in nvmet_auth_challenge() local
359 int data_size = sizeof(*d) + hash_len; in nvmet_auth_challenge()
374 data->hl = hash_len; in nvmet_auth_challenge()
397 int hash_len = nvme_auth_hmac_hash_len(ctrl->shash_id); in nvmet_auth_success1() local
404 data->hl = hash_len; in nvmet_auth_success1()
/linux/fs/smb/client/
H A Dcifsencrypt.c509 unsigned int hash_len; in CalcNTLMv2_response() local
512 hash_len = ses->auth_key.len - (CIFS_SESS_KEY_SIZE + in CalcNTLMv2_response()
532 rc = crypto_shash_update(hmacmd5, ntlmv2->challenge.key, hash_len); in CalcNTLMv2_response()
/linux/include/linux/
H A Ddcache.h54 u64 hash_len; member
/linux/net/ipv4/
H A Dtcp_ao.c529 int hash_offset, int hash_len) in tcp_ao_hash_header() argument
537 len = sizeof(*th) + sizeof(struct tcp_ao_hdr) + hash_len; in tcp_ao_hash_header()
543 0, hash_len); in tcp_ao_hash_header()
550 memset(hdr + hash_offset, 0, hash_len); in tcp_ao_hash_header()
/linux/fs/exfat/
H A Dnamei.c759 WARN_ON(alias->d_name.hash_len != in exfat_lookup()
760 dentry->d_name.hash_len); in exfat_lookup()
/linux/drivers/crypto/
H A Dn2_core.c216 unsigned int hash_len, in control_word_base() argument
235 if (hash_len) in control_word_base()
236 word |= ((u64) (hash_len - 1)) << CONTROL_HASH_LEN_SHIFT; in control_word_base()
/linux/security/selinux/
H A Dhooks.c3589 q.hash_len = hashlen_string(kn_dir, kn->name); in selinux_kernfs_init_security()