/linux/certs/ |
A D | blacklist.c | 116 int is_hash_blacklisted(const u8 *hash, size_t hash_len, const char *type) in is_hash_blacklisted() argument 123 buffer = kmalloc(type_len + 1 + hash_len * 2 + 1, GFP_KERNEL); in is_hash_blacklisted() 129 bin2hex(p, hash, hash_len); in is_hash_blacklisted() 130 p += hash_len * 2; in is_hash_blacklisted() 145 int is_binary_blacklisted(const u8 *hash, size_t hash_len) in is_binary_blacklisted() argument 147 if (is_hash_blacklisted(hash, hash_len, "bin") == -EKEYREJECTED) in is_binary_blacklisted()
|
/linux/drivers/md/ |
A D | dm-ima.c | 399 md->ima.active_table.hash_len = 0; in dm_ima_measure_on_device_resume() 411 md->ima.active_table.hash_len = md->ima.inactive_table.hash_len; in dm_ima_measure_on_device_resume() 413 md->ima.inactive_table.hash_len = 0; in dm_ima_measure_on_device_resume() 442 l += md->ima.active_table.hash_len; in dm_ima_measure_on_device_resume() 537 md->ima.active_table.hash_len); in dm_ima_measure_on_device_remove() 538 l += md->ima.active_table.hash_len; in dm_ima_measure_on_device_remove() 552 l += md->ima.inactive_table.hash_len; in dm_ima_measure_on_device_remove() 631 md->ima.inactive_table.hash_len) { in dm_ima_measure_on_table_clear() 640 md->ima.inactive_table.hash_len); in dm_ima_measure_on_table_clear() 672 md->ima.inactive_table.hash_len = 0; in dm_ima_measure_on_table_clear() [all …]
|
A D | dm-ima.h | 47 unsigned int hash_len; member
|
/linux/include/keys/ |
A D | system_keyring.h | 44 extern int is_hash_blacklisted(const u8 *hash, size_t hash_len, 46 extern int is_binary_blacklisted(const u8 *hash, size_t hash_len); 48 static inline int is_hash_blacklisted(const u8 *hash, size_t hash_len, in is_hash_blacklisted() argument 54 static inline int is_binary_blacklisted(const u8 *hash, size_t hash_len) in is_binary_blacklisted() argument
|
/linux/tools/perf/util/ |
A D | demangle-rust.c | 47 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/ |
A D | auth.c | 49 return crypto_shash_tfm_digest(c->hmac_tfm, hash, c->hash_len, hmac); in ubifs_hash_calc_hmac() 140 int len = min(c->hash_len, 20); in ubifs_bad_hash() 141 int cropped = len != c->hash_len; in ubifs_bad_hash() 310 c->hash_len = crypto_shash_digestsize(c->hash_tfm); in ubifs_init_authentication() 311 if (c->hash_len > UBIFS_HASH_ARR_SZ) { in ubifs_init_authentication() 313 c->auth_hash_name, c->hash_len, UBIFS_HASH_ARR_SZ); in ubifs_init_authentication()
|
A D | misc.h | 188 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()
|
A D | ubifs.h | 1344 int hash_len; member 1579 return crypto_memneq(expected, got, c->hash_len); in ubifs_check_hash() 1645 memcpy(to, from, c->hash_len); in ubifs_copy_hash()
|
A D | replay.c | 616 c->hash_len, hmac); in authenticate_sleb()
|
/linux/drivers/crypto/ccree/ |
A D | cc_hash.c | 98 unsigned int hash_len; member 155 ctx->hash_len); in cc_init_req() 159 ctx->hash_len); in cc_init_req() 396 ctx->hash_len); in cc_fin_hmac() 489 ctx->hash_len, NS_BIT); in cc_hash_digest() 508 ctx->hash_len, NS_BIT, 0); in cc_hash_digest() 546 ctx->hash_len, NS_BIT); in cc_restore_hash() 617 ctx->hash_len, NS_BIT, 1); in cc_hash_update() 681 ctx->hash_len, NS_BIT, 0); in cc_do_finup() 1515 out += ctx->hash_len; in cc_hash_export() [all …]
|
A D | cc_aead.c | 58 unsigned int hash_len; member 199 ctx->hash_len = cc_get_aead_hash_len(tfm); in cc_aead_init() 322 set_din_const(&desc[idx], 0, ctx->hash_len); in hmac_setkey() 468 set_din_const(&desc[idx], 0, ctx->hash_len); in cc_get_plain_hmac_key() 1013 ctx->hash_len); in cc_set_hmac_desc() 1112 ctx->hash_len); in cc_proc_scheme_desc() 1142 ctx->hash_len); in cc_proc_scheme_desc()
|
/linux/fs/cifs/ |
A D | cifsencrypt.c | 512 unsigned int hash_len; in CalcNTLMv2_response() local 515 hash_len = ses->auth_key.len - (CIFS_SESS_KEY_SIZE + in CalcNTLMv2_response() 544 ntlmv2->challenge.key, hash_len); in CalcNTLMv2_response()
|
/linux/fs/ |
A D | dcache.c | 1884 q.hash_len = hashlen_string(parent, name); in d_alloc_name() 2272 u64 hashlen = name->hash_len; in __d_lookup_rcu() 2341 if (dentry->d_name.hash_len != hashlen) in __d_lookup_rcu() 2826 swap(dentry->d_name.hash_len, target->d_name.hash_len); in swap_names() 2841 dentry->d_name.hash_len = target->d_name.hash_len; in copy_name()
|
A D | namei.c | 2235 u64 hash_len; in link_path_walk() local 2243 hash_len = hash_name(nd->path.dentry, name); in link_path_walk() 2246 if (name[0] == '.') switch (hashlen_len(hash_len)) { in link_path_walk() 2260 struct qstr this = { { .hash_len = hash_len }, .name = name }; in link_path_walk() 2264 hash_len = this.hash_len; in link_path_walk() 2269 nd->last.hash_len = hash_len; in link_path_walk() 2273 name += hashlen_len(hash_len); in link_path_walk()
|
/linux/include/linux/ |
A D | dcache.h | 53 u64 hash_len; member
|
/linux/drivers/crypto/ |
A D | n2_core.c | 215 unsigned int hash_len, in control_word_base() argument 234 if (hash_len) in control_word_base() 235 word |= ((u64) (hash_len - 1)) << CONTROL_HASH_LEN_SHIFT; in control_word_base()
|
/linux/fs/exfat/ |
A D | namei.c | 741 WARN_ON(alias->d_name.hash_len != in exfat_lookup() 742 dentry->d_name.hash_len); in exfat_lookup()
|
/linux/security/selinux/ |
A D | hooks.c | 3647 q.hash_len = hashlen_string(kn_dir, kn->name); in selinux_kernfs_init_security()
|