Lines Matching defs:hash
460 int hash = HASH_UID(uid);
462 debug(KEYSERV_DEBUG, ("mapuid2cache %d %d %x", uid, hash, mdp));
463 for (cpp = &mdp->bucket[hash];
781 int hash = HASH_UID(uid);
784 for (l = &g_secretkey_netname[hash]; *l != NULL && (*l)->uid != uid;
965 int hash = HASH_UID(uid);
968 for (l = g_secretkey_netname[hash]; l != NULL; l = l->next) {
1163 readcache(pub, sec, deskey, hash)
1167 int hash;
1171 for (l = &g_cachedkeys[hash]; (*l) != NULL && !cachehit(pub, sec, *l);
1184 writecache(pub, sec, deskey, hash)
1188 int hash;
1200 new->next = g_cachedkeys[hash];
1201 g_cachedkeys[hash] = new;
1242 int hash = HASH_UID(uid);
1245 for (l = g_secretkey_netname[hash]; l != NULL; l = l->next) {
1289 int hash;
1312 hash = hash_keys(xpublic, xsecret);
1314 if (!readcache(xpublic, xsecret, &deskey, hash)) {
1317 if (!readcache(xpublic, xsecret, &deskey, hash)) {
1328 writecache(xpublic, xsecret, &deskey, hash);
1348 int hash = 0;
1357 hash ^= *pub;
1358 hash ^= *sec;
1360 debug(KEYSERV_DEBUG, ("hash_keys3 ret %d", hash & 0xff));
1361 return (hash & 0xff);
1368 int hash = hash_keys3(public, secret);
1370 debug(KEYSERV_DEBUG, ("map_ps2cache %x %d", pdp, hash));
1371 for (cpp = &pdp->common[hash];
1652 int hash;
1668 hash = hash_keys(xpublic, xsecret);
1670 if (!readcache(xpublic, xsecret, &result->cryptkeyres_u.deskey, hash)) {
1674 hash)) {
1686 &result->cryptkeyres_u.deskey, hash);
1739 int hash = HASH_UID(uid);
1742 for (l = &g_secretkey_netname[hash]; *l != NULL && (*l)->uid != uid;
1831 int hash = 0;
1834 hash ^= *pub;
1835 hash ^= *sec;
1837 return (hash & 0xff);