Home
last modified time | relevance | path

Searched refs:hash (Results 76 – 100 of 462) sorted by relevance

12345678910>>...19

/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_function_hashtable.h27 unsigned long hash = 5381; in djb2_hash() local
31 hash = ((hash << 5) + hash) + c; /* hash * 33 + c */ in djb2_hash()
33 return hash; in djb2_hash()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/keyhash_provider/
H A Dk5_kmd5des.c159 krb5_const krb5_data *hash, in k5_md5des_verify() argument
177 if (hash->length != (CONFLENGTH + MD5_CKSUM_LENGTH)) { in k5_md5des_verify()
179 if (hash->length != MD5_CKSUM_LENGTH) in k5_md5des_verify()
209 ret = mit_des_cbc_encrypt(context, (krb5_pointer) hash->data, in k5_md5des_verify()
210 (krb5_pointer) plaintext, hash->length, in k5_md5des_verify()
213 ret = mit_des_cbc_encrypt(context, (krb5_pointer) hash->data, in k5_md5des_verify()
214 (krb5_pointer) plaintext, hash->length, in k5_md5des_verify()
/illumos-gate/usr/src/common/inet/
H A Dinet_hash.c151 uint64_t hash = 0; in inet_pkt_hash() local
175 hash = PKT_HASH_MAC(mac_src) ^ PKT_HASH_MAC(mac_dst); in inet_pkt_hash()
249 hash ^= (PKT_HASH_4BYTES(ip_src) ^ in inet_pkt_hash()
256 hash ^= PKT_HASH_2BYTES(identp); in inet_pkt_hash()
291 hash ^= (PKT_HASH_4BYTES(ip_src) ^ in inet_pkt_hash()
298 hash ^= PKT_HASH_4BYTES(identp); in inet_pkt_hash()
332 hash ^= PKT_HASH_4BYTES((mp->b_rptr + skip_len)); in inet_pkt_hash()
358 return (hash); in inet_pkt_hash()
/illumos-gate/usr/src/uts/common/inet/
H A Dipsec_impl.h139 #define HASH_LOCK(table, hash) \ argument
140 mutex_enter(&(table)[hash].hash_lock)
141 #define HASH_UNLOCK(table, hash) \ argument
142 mutex_exit(&(table)[hash].hash_lock)
144 #define HASH_LOCKED(table, hash) \ argument
145 MUTEX_HELD(&(table)[hash].hash_lock)
147 #define HASH_ITERATE(var, field, table, hash) \ argument
153 #define HASH_INSERT(var, field, table, hash) \ argument
155 ASSERT(HASH_LOCKED(table, hash)); \
158 (table)[hash].hash_head = var; \
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/hash/
H A Dhashview.c66 b->name = (p->hash & HASH_HIDES) ? p->name : (char*)b; in hashview()
67 b->hash |= HASH_HIDES; in hashview()
79 if (b->hash & HASH_HIDES) in hashview()
81 b->hash &= ~HASH_HIDES; in hashview()
H A Dhashfree.c76 if (p->hash & HASH_FREENAME) in hashfree()
78 p->hash &= ~HASH_FREENAME; in hashfree()
82 if (!(p->hash & HASH_KEEP)) in hashfree()
87 else if (p->hash & HASH_HIDES) in hashfree()
89 p->hash &= ~HASH_HIDES; in hashfree()
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DAggregation.java269 int hash = 17; in hashCode() local
270 hash = (37 * hash) + name.hashCode(); in hashCode()
271 hash = (37 * hash) + map.hashCode(); in hashCode()
272 return hash; in hashCode()
H A DPrintaRecord.java460 int hash = 17; in hashCode() local
461 hash = (hash * 37) + aggregations.hashCode(); in hashCode()
462 hash = (hash * 37) + ((formattedStrings == null || in hashCode()
465 hash = (hash * 37) + tuples.hashCode(); in hashCode()
466 return hash; in hashCode()
H A DUserSymbolRecord.java406 int hash = 17; in hashCode() local
407 hash = 37 * hash + processID; in hashCode()
408 hash = 37 * hash + (int)(address ^ (address >>> 32)); in hashCode()
409 return hash; in hashCode()
H A DOption.java639 int hash = 17; in hashCode() local
640 hash = (37 * hash) + name.hashCode(); in hashCode()
641 hash = (37 * hash) + value.hashCode(); in hashCode()
642 return hash; in hashCode()
H A DDistribution.java482 int hash = 17; in hashCode() local
483 hash = (37 * hash) + ((int)(min ^ (min >>> 32))); in hashCode()
484 hash = (37 * hash) + ((int)(max ^ (max >>> 32))); in hashCode()
485 hash = (37 * hash) + ((int)(frequency ^ (frequency >>> 32))); in hashCode()
486 return hash; in hashCode()
/illumos-gate/usr/src/uts/common/sys/
H A Ddnlc.h83 int hash; /* hash signature */ member
166 #define DNLCHASH(name, dvp, hash, namlen) \ argument
170 hash = (int)((uintptr_t)(dvp)) >> 8; \
172 (hash) = ((hash) << 4) + (hash) + Xc; \
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c358 Word hash[2]; in fake_elf64() local
364 if (Pread(P, hash, sizeof (hash), hptr) != sizeof (hash)) { in fake_elf64()
370 hnbuckets = hash[0]; in fake_elf64()
371 hnchains = hash[1]; in fake_elf64()
615 uint_t *hash; in fake_elf64() local
640 hash = &((uint_t *)hptr)[2 + htmp]; in fake_elf64()
643 if (Pread(P, &ndx, sizeof (ndx), (uintptr_t)hash) != in fake_elf64()
645 dprintf("Pread of .hash at %lx failed\n", (long)hash); in fake_elf64()
668 hash = &((uint_t *)hptr)[2 + hnbuckets + ndx]; in fake_elf64()
669 if (Pread(P, &ndx, sizeof (ndx), (uintptr_t)hash) != in fake_elf64()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Ddnlc.c65 nc_hash_t hash; in dnlc_walk_step() local
75 if (mdb_vread(&hash, sizeof (hash), dwp->dw_head) == -1) { in dnlc_walk_step()
81 addr = (uintptr_t)hash.hash_next; in dnlc_walk_step()
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dstable.c143 unsigned hash = DEF_HASH_SIZE ^ ((unsigned)*s << 2); in stable() local
155 hash ^= (((unsigned)*sptr) << (slen % 3)) + in stable()
158 hash ^= slen; in stable()
161 hash %= Stablesz; in stable()
163 ptrp = &Stable[hash]; in stable()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/keyhash_provider/
H A Dk5_md5des.c158 krb5_const krb5_data *hash, in k5_md5des_verify() argument
175 if (hash->length != (CONFLENGTH + MD5_CKSUM_LENGTH)) { in k5_md5des_verify()
177 if (hash->length != MD5_CKSUM_LENGTH) in k5_md5des_verify()
213 (krb5_pointer) hash->data, in k5_md5des_verify()
214 (krb5_pointer) plaintext, hash->length, in k5_md5des_verify()
218 (krb5_pointer) hash->data, in k5_md5des_verify()
219 (krb5_pointer) plaintext, hash->length, in k5_md5des_verify()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/
H A DREADME23 hash: generic, scoped hash table support
25 hashalloc create a hash table or push new scope
26 hashdump debug dump of one or all hash tables
32 memhash return hash code for n-char chunk of memory
33 strhash return hash code for null terminated string
41 hash.h hash*() interface definitions
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_auth.c174 smb_auth_lm_response(unsigned char *hash, in smb_auth_lm_response() argument
185 bcopy(hash, S21, SMBAUTH_HASH_SZ); in smb_auth_lm_response()
199 smb_auth_ntlm_hash(const char *password, unsigned char *hash) in smb_auth_ntlm_hash() argument
205 if (password == NULL || hash == NULL) in smb_auth_ntlm_hash()
216 rc = smb_auth_md4(hash, (unsigned char *)unicode_password, length); in smb_auth_ntlm_hash()
231 smb_auth_ntlm_response(unsigned char *hash, in smb_auth_ntlm_response() argument
237 bcopy(hash, S21, SMBAUTH_HASH_SZ); in smb_auth_ntlm_response()
310 unsigned char *hash, in smb_auth_v2_response() argument
325 if (SMBAUTH_HMACT64(hmac_data, slen + clen, (unsigned char *)hash, in smb_auth_v2_response()
/illumos-gate/usr/src/uts/common/io/
H A Dcryptmod.c1951 mp->b_rptr += hash->hash_len + hash->confound_len; in arcfour_hmac_md5_decrypt()
2027 mp->b_rptr -= (hash->confound_len + hash->hash_len); in arcfour_hmac_md5_encrypt()
2272 mp->b_rptr -= (hash->confound_len + hash->hash_len); in des_cbc_encrypt()
2275 bzero(mp->b_rptr + hash->confound_len, (size_t)hash->hash_len); in des_cbc_encrypt()
2289 if (hash->hash_len > 0 && hash->hashfunc != NULL) { in des_cbc_encrypt()
2493 bcopy(optr + hash->confound_len, cksum, hash->hash_len); in des_cbc_decrypt()
2496 ASSERT(optr + hash->confound_len + hash->hash_len <= in des_cbc_decrypt()
2498 bzero(optr + hash->confound_len, hash->hash_len); in des_cbc_decrypt()
2522 datalen = inlen - hash->confound_len - hash->hash_len; in des_cbc_decrypt()
2525 if (hash->confound_len > 0 || hash->hash_len > 0) { in des_cbc_decrypt()
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/include/
H A Draw.h31 const struct krb5_hash_provider *hash,
37 const struct krb5_hash_provider *hash,
45 const struct krb5_hash_provider *hash,
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Ddig_mgr.c480 CK_BYTE *hash, in digest_mgr_digest_final() argument
491 if (hash == NULL && hash_len == NULL) in digest_mgr_digest_final()
496 if (hash == NULL) { in digest_mgr_digest_final()
502 SHA1Final(hash, ctx->context.sha1ctx); in digest_mgr_digest_final()
508 if (hash == NULL) { in digest_mgr_digest_final()
514 MD5Final(hash, ctx->context.md5ctx); in digest_mgr_digest_final()
/illumos-gate/usr/src/common/ficl/softcore/
H A Dficlclass.fr41 \ current --> .hash --> ?
42 \ current --> .hash --> next --> ?
48 c-word ref: .hash ( first entry in hash table )
58 i this my=[ .hash index ] ( 2list-head )
/illumos-gate/usr/src/cmd/mailx/
H A Dvars.c67 h = hash(name); in assign()
108 h = hash(s); in deassign()
188 h = hash(name); in lookup()
205 h = hash(name); in findgroup()
237 hash(char name[]) in hash() function
/illumos-gate/usr/src/cmd/refer/
H A Dinv2.c19 extern int hash();
69 fprintf(outf, "%04d %06ld\n", hash(keyv[i])%nhash, lp); in newkeys()
73 keyv[i], hash(keyv[i])%nhash); in newkeys()
87 hash(key)%nhash, lp); in newkeys()
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgetprojent.c38 uint_t hash = 0; in hash_projname() local
51 hash = hash * 15 + name[i]; in hash_projname()
52 return (hash); in hash_projname()

12345678910>>...19