Home
last modified time | relevance | path

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

/Linux-v5.4/tools/perf/util/
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-v5.4/certs/
Dblacklist.c109 int is_hash_blacklisted(const u8 *hash, size_t hash_len, const char *type) in is_hash_blacklisted() argument
116 buffer = kmalloc(type_len + 1 + hash_len * 2 + 1, GFP_KERNEL); in is_hash_blacklisted()
122 bin2hex(p, hash, hash_len); in is_hash_blacklisted()
123 p += hash_len * 2; in is_hash_blacklisted()
/Linux-v5.4/include/keys/
Dsystem_keyring.h36 extern int is_hash_blacklisted(const u8 *hash, size_t hash_len,
39 static inline int is_hash_blacklisted(const u8 *hash, size_t hash_len, in is_hash_blacklisted() argument
/Linux-v5.4/fs/ubifs/
Dauth.c61 err = crypto_shash_digest(shash, hash, c->hash_len, hmac); in ubifs_hash_calc_hmac()
164 int len = min(c->hash_len, 20); in ubifs_bad_hash()
165 int cropped = len != c->hash_len; in ubifs_bad_hash()
334 c->hash_len = crypto_shash_digestsize(c->hash_tfm); in ubifs_init_authentication()
335 if (c->hash_len > UBIFS_HASH_ARR_SZ) { in ubifs_init_authentication()
337 c->auth_hash_name, c->hash_len, UBIFS_HASH_ARR_SZ); in ubifs_init_authentication()
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()
Dubifs.h1342 int hash_len; member
1576 return crypto_memneq(expected, got, c->hash_len); in ubifs_check_hash()
1642 memcpy(to, from, c->hash_len); in ubifs_copy_hash()
Dreplay.c578 return crypto_shash_digest(hmac_desc, hash, c->hash_len, hmac); in authenticate_sleb_hmac()
/Linux-v5.4/drivers/crypto/ccree/
Dcc_hash.c91 unsigned int hash_len; member
148 ctx->hash_len); in cc_init_req()
152 ctx->hash_len); in cc_init_req()
390 ctx->hash_len); in cc_fin_hmac()
482 ctx->hash_len, NS_BIT); in cc_hash_digest()
484 set_din_const(&desc[idx], 0, ctx->hash_len); in cc_hash_digest()
501 ctx->hash_len, NS_BIT, 0); in cc_hash_digest()
539 ctx->hash_len, NS_BIT); in cc_restore_hash()
610 ctx->hash_len, NS_BIT, 1); in cc_hash_update()
674 ctx->hash_len, NS_BIT, 0); in cc_do_finup()
[all …]
Dcc_aead.c57 unsigned int hash_len; member
203 ctx->hash_len = cc_get_aead_hash_len(tfm); in cc_aead_init()
325 set_din_const(&desc[idx], 0, ctx->hash_len); in hmac_setkey()
470 set_din_const(&desc[idx], 0, ctx->hash_len); in cc_get_plain_hmac_key()
1023 ctx->hash_len); in cc_set_hmac_desc()
1122 ctx->hash_len); in cc_proc_scheme_desc()
1152 ctx->hash_len); in cc_proc_scheme_desc()
/Linux-v5.4/fs/cifs/
Dcifsencrypt.c606 unsigned int hash_len; in CalcNTLMv2_response() local
609 hash_len = ses->auth_key.len - (CIFS_SESS_KEY_SIZE + in CalcNTLMv2_response()
638 ntlmv2->challenge.key, hash_len); in CalcNTLMv2_response()
/Linux-v5.4/fs/
Ddcache.c1828 q.hash_len = hashlen_string(parent, name); in d_alloc_name()
2216 u64 hashlen = name->hash_len; in __d_lookup_rcu()
2285 if (dentry->d_name.hash_len != hashlen) in __d_lookup_rcu()
2770 swap(dentry->d_name.hash_len, target->d_name.hash_len); in swap_names()
2785 dentry->d_name.hash_len = target->d_name.hash_len; in copy_name()
Dnamei.c2071 u64 hash_len; in link_path_walk() local
2078 hash_len = hash_name(nd->path.dentry, name); in link_path_walk()
2081 if (name[0] == '.') switch (hashlen_len(hash_len)) { in link_path_walk()
2095 struct qstr this = { { .hash_len = hash_len }, .name = name }; in link_path_walk()
2099 hash_len = this.hash_len; in link_path_walk()
2104 nd->last.hash_len = hash_len; in link_path_walk()
2108 name += hashlen_len(hash_len); in link_path_walk()
/Linux-v5.4/include/linux/
Ddcache.h52 u64 hash_len; member
/Linux-v5.4/drivers/crypto/
Dpicoxcell_crypto.c238 size_t hash_len) in spacc_load_ctx() argument
254 memcpy_toio32(hash_page_addr, hash_key, hash_len / 4); in spacc_load_ctx()
255 writel(hash_len | (indx << SPA_KEY_SZ_CTX_INDEX_OFFSET), in spacc_load_ctx()
Dn2_core.c213 unsigned int hash_len, in control_word_base() argument
232 if (hash_len) in control_word_base()
233 word |= ((u64) (hash_len - 1)) << CONTROL_HASH_LEN_SHIFT; in control_word_base()
/Linux-v5.4/security/selinux/
Dhooks.c3487 q.hash_len = hashlen_string(kn_dir, kn->name); in selinux_kernfs_init_security()