Home
last modified time | relevance | path

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

/openbmc/linux/drivers/nvme/common/
H A Dauth.c154 u8 key_hash) in nvme_auth_extract_key() argument
190 if (key_hash > 0 && in nvme_auth_extract_key()
191 (key_len - 4) != nvme_auth_hmac_hash_len(key_hash)) { in nvme_auth_extract_key()
193 nvme_auth_hmac_name(key_hash)); in nvme_auth_extract_key()
213 key->hash = key_hash; in nvme_auth_extract_key()
461 u8 key_hash; in nvme_auth_generate_key() local
468 if (sscanf(secret, "DHHC-1:%hhd:%*s:", &key_hash) != 1) in nvme_auth_generate_key()
472 key = nvme_auth_extract_key(secret + 10, key_hash); in nvme_auth_generate_key()
/openbmc/linux/drivers/nvme/target/
H A Dauth.c25 unsigned char key_hash; in nvmet_auth_set_key() local
28 if (sscanf(secret, "DHHC-1:%hhd:%*s", &key_hash) != 1) in nvmet_auth_set_key()
30 if (key_hash > 3) { in nvmet_auth_set_key()
32 key_hash); in nvmet_auth_set_key()
35 if (key_hash > 0) { in nvmet_auth_set_key()
37 const char *hmac = nvme_auth_hmac_name(key_hash); in nvmet_auth_set_key()
50 host->dhchap_ctrl_key_hash = key_hash; in nvmet_auth_set_key()
54 host->dhchap_key_hash = key_hash; in nvmet_auth_set_key()
/openbmc/linux/fs/ubifs/
H A Dkey.h150 uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); in dent_key_init()
186 uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); in dent_key_init_flash()
219 uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); in xent_key_init()
237 uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); in xent_key_init_flash()
369 static inline uint32_t key_hash(const struct ubifs_info *c, in key_hash() function
H A Dsb.c194 sup->key_hash = UBIFS_KEY_HASH_R5; in create_default_filesystem()
277 c->key_hash = key_r5_hash; in create_default_filesystem()
384 if (!c->key_hash) { in validate_sb()
691 switch (sup->key_hash) { in ubifs_read_superblock()
693 c->key_hash = key_r5_hash; in ubifs_read_superblock()
698 c->key_hash = key_test_hash; in ubifs_read_superblock()
H A Dubifs-media.h655 __u8 key_hash; member
H A Dgc.c190 uint32_t hasha = key_hash(c, &sa->key); in nondata_nodes_cmp()
191 uint32_t hashb = key_hash(c, &sb->key); in nondata_nodes_cmp()
H A Ddebug.c107 get_key_type(type), key_hash(c, key)); in dbg_snprintf_key()
356 (int)sup->key_hash, get_key_hash(sup->key_hash)); in ubifs_dump_node()
H A Dubifs.h1369 uint32_t (*key_hash)(const char *str, int len); member
H A Dtnc.c1948 if (key_hash(c, key) == key_hash(c, dkey) && in search_dh_cookie()
/openbmc/u-boot/fs/ubifs/
H A Dkey.h144 uint32_t hash = c->key_hash(nm->name, nm->len); in dent_key_init()
179 uint32_t hash = c->key_hash(nm->name, nm->len); in dent_key_init_flash()
212 uint32_t hash = c->key_hash(nm->name, nm->len); in xent_key_init()
230 uint32_t hash = c->key_hash(nm->name, nm->len); in xent_key_init_flash()
362 static inline uint32_t key_hash(const struct ubifs_info *c, in key_hash() function
H A Dsb.c165 sup->key_hash = UBIFS_KEY_HASH_R5; in create_default_filesystem()
270 c->key_hash = key_r5_hash; in create_default_filesystem()
355 if (!c->key_hash) { in validate_sb()
582 switch (sup->key_hash) { in ubifs_read_superblock()
584 c->key_hash = key_r5_hash; in ubifs_read_superblock()
589 c->key_hash = key_test_hash; in ubifs_read_superblock()
H A Dubifs-media.h617 __u8 key_hash; member
H A Dgc.c199 uint32_t hasha = key_hash(c, &sa->key); in nondata_nodes_cmp()
200 uint32_t hashb = key_hash(c, &sb->key); in nondata_nodes_cmp()
H A Ddebug.c117 get_key_type(type), key_hash(c, key)); in dbg_snprintf_key()
334 (int)sup->key_hash, get_key_hash(sup->key_hash)); in ubifs_dump_node()
H A Dubifs.h1917 uint32_t (*key_hash)(const char *str, int len); member
/openbmc/u-boot/board/freescale/common/
H A Dfsl_validate.c538 int key_hash = 0; in calc_esbchdr_esbc_hash() local
567 key_hash = 1; in calc_esbchdr_esbc_hash()
571 if (!key_hash && check_ie(img)) in calc_esbchdr_esbc_hash()
572 key_hash = 1; in calc_esbchdr_esbc_hash()
576 if (!key_hash) { in calc_esbchdr_esbc_hash()
579 key_hash = 1; in calc_esbchdr_esbc_hash()
584 if (!key_hash) in calc_esbchdr_esbc_hash()
/openbmc/linux/fs/fscache/
H A Dvolume.c127 if (a->key_hash != b->key_hash || in fscache_volume_same()
167 bucket = candidate->key_hash & (ARRAY_SIZE(fscache_volume_hash) - 1); in fscache_hash_volume()
245 volume->key_hash = fscache_hash(0, key, hlen); in fscache_alloc_volume()
365 bucket = volume->key_hash & (ARRAY_SIZE(fscache_volume_hash) - 1); in fscache_unhash_volume()
H A Dcookie.c295 cookie->key_hash = fscache_hash(cookie->volume->key_hash, in fscache_set_key()
305 if (a->key_hash != b->key_hash || in fscache_cookie_same()
408 bucket = candidate->key_hash & (ARRAY_SIZE(fscache_cookie_hash) - 1); in fscache_hash_cookie()
934 bucket = cookie->key_hash & (ARRAY_SIZE(fscache_cookie_hash) - 1); in fscache_unhash_cookie()
/openbmc/linux/kernel/trace/
H A Dtracing_map.c518 u32 idx, key_hash, test_key; in __tracing_map_insert() local
523 key_hash = jhash(key, map->key_size, 0); in __tracing_map_insert()
524 if (key_hash == 0) in __tracing_map_insert()
525 key_hash = 1; in __tracing_map_insert()
526 idx = key_hash >> (32 - (map->map_bits + 1)); in __tracing_map_insert()
533 if (test_key && test_key == key_hash) { in __tracing_map_insert()
566 if (!cmpxchg(&entry->key, 0, key_hash)) { in __tracing_map_insert()
/openbmc/linux/include/linux/
H A Dnvme-auth.h28 u8 key_hash);
H A Dfscache.h77 unsigned int key_hash; /* Hash of key string */ member
139 u32 key_hash; /* Hash of volume, key, len */ member
/openbmc/linux/tools/perf/util/
H A Dexpr.c55 static size_t key_hash(long key, void *ctx __maybe_unused) in key_hash() function
77 hash = hashmap__new(key_hash, key_equal, NULL); in ids__new()
299 ctx->ids = hashmap__new(key_hash, key_equal, NULL); in expr__ctx_new()
/openbmc/linux/fs/cachefiles/
H A Dnamei.c419 struct dentry *fan = volume->fanout[(u8)object->cookie->key_hash]; in cachefiles_delete_object()
443 struct dentry *fan = volume->fanout[(u8)object->cookie->key_hash]; in cachefiles_create_tmpfile()
624 struct dentry *dentry, *fan = volume->fanout[(u8)object->cookie->key_hash]; in cachefiles_look_up_object()
674 struct dentry *dentry, *fan = volume->fanout[(u8)object->cookie->key_hash]; in cachefiles_commit_tmpfile()
H A Dinterface.c419 struct dentry *fan = volume->fanout[(u8)cookie->key_hash]; in cachefiles_invalidate_cookie()
/openbmc/linux/Documentation/filesystems/caching/
H A Dbackend-api.rst144 unsigned int key_hash;
162 * ``key_hash`` - A hash of the index key. This should work out the same, no
186 u32 key_hash;
222 * ``key_hash`` - A hash of the index key. This should work out the same, no