key_hash
u8 key_hash)
key->hash = key_hash;
u8 key_hash;
if (sscanf(secret, "DHHC-1:%hhd:%*s:", &key_hash) != 1)
key = nvme_auth_extract_key(secret + 10, key_hash);
unsigned char key_hash;
if (sscanf(secret, "DHHC-1:%hhd:%*s", &key_hash) != 1)
if (key_hash > 3) {
key_hash);
if (key_hash > 0) {
const char *hmac = nvme_auth_hmac_name(key_hash);
host->dhchap_ctrl_key_hash = key_hash;
host->dhchap_key_hash = key_hash;
struct dentry *fan = volume->fanout[(u8)cookie->key_hash];
struct dentry *fan = volume->fanout[(u8)object->cookie->key_hash];
struct dentry *fan = volume->fanout[(u8)object->cookie->key_hash];
struct dentry *dentry, *fan = volume->fanout[(u8)object->cookie->key_hash];
struct dentry *dentry, *fan = volume->fanout[(u8)object->cookie->key_hash];
cookie->key_hash = fscache_hash(cookie->volume->key_hash,
if (a->key_hash != b->key_hash ||
bucket = candidate->key_hash & (ARRAY_SIZE(fscache_cookie_hash) - 1);
bucket = cookie->key_hash & (ARRAY_SIZE(fscache_cookie_hash) - 1);
if (a->key_hash != b->key_hash ||
bucket = candidate->key_hash & (ARRAY_SIZE(fscache_volume_hash) - 1);
volume->key_hash = fscache_hash(0, key, hlen);
bucket = volume->key_hash & (ARRAY_SIZE(fscache_volume_hash) - 1);
get_key_type(type), key_hash(c, key));
(int)sup->key_hash, get_key_hash(sup->key_hash));
uint32_t hasha = key_hash(c, &sa->key);
uint32_t hashb = key_hash(c, &sb->key);
uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm));
uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm));
uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm));
uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm));
sup->key_hash = UBIFS_KEY_HASH_R5;
c->key_hash = key_r5_hash;
if (!c->key_hash) {
switch (sup->key_hash) {
c->key_hash = key_r5_hash;
c->key_hash = key_test_hash;
if (key_hash(c, key) == key_hash(c, dkey) &&
__u8 key_hash;
uint32_t (*key_hash)(const char *str, int len);
u32 key_hash; /* Hash of volume, key, len */
unsigned int key_hash; /* Hash of key string */
u8 key_hash);
u32 idx, key_hash, test_key;
key_hash = jhash(key, map->key_size, 0);
if (key_hash == 0)
key_hash = 1;
idx = key_hash >> (32 - (map->map_bits + 1));
if (test_key && test_key == key_hash) {
if (!cmpxchg(&entry->key, 0, key_hash)) {
ctx->ids = hashmap__new(key_hash, key_equal, NULL);
hash = hashmap__new(key_hash, key_equal, NULL);
hashmap__init(&table->shard, key_hash, key_equal, NULL);