Home
last modified time | relevance | path

Searched refs:HASHSIZE (Results 1 – 19 of 19) sorted by relevance

/illumos-gate/usr/src/uts/common/crypto/io/
H A Dswrand.c67 #define HASHSIZE 20 macro
321 uint8_t digest[HASHSIZE], *pool; in swrand_get_entropy()
362 bytes = min(HASHSIZE, len); in swrand_get_entropy()
387 if (len >= HASHSIZE) { in swrand_get_entropy()
388 size = HASHSIZE; in swrand_get_entropy()
390 size = min(bytes, HASHSIZE); in swrand_get_entropy()
414 if (len < HASHSIZE) { in swrand_get_entropy()
426 bzero(digest, HASHSIZE); in swrand_get_entropy()
427 bzero(tempout, HASHSIZE); in swrand_get_entropy()
473 uint8_t digest[HASHSIZE]; in swrand_mix_pool()
[all …]
/illumos-gate/usr/src/uts/common/crypto/api/
H A Dkcf_random.c92 #define HASHSIZE 20 macro
641 nblock = howmany(len, HASHSIZE); in rnd_generate_pseudo_bytes()
685 for (i = 0; i < HASHSIZE; i++) { in rnd_generate_pseudo_bytes()
694 if (bytes >= HASHSIZE) { in rnd_generate_pseudo_bytes()
695 size = HASHSIZE; in rnd_generate_pseudo_bytes()
697 size = min(bytes, HASHSIZE); in rnd_generate_pseudo_bytes()
710 if (i == HASHSIZE/BYTES_IN_WORD) { in rnd_generate_pseudo_bytes()
720 HASHSIZE); in rnd_generate_pseudo_bytes()
730 bzero(seed, HASHSIZE); in rnd_generate_pseudo_bytes()
731 bzero(tempout, HASHSIZE); in rnd_generate_pseudo_bytes()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/
H A Dmpool.h57 #define HASHSIZE 128 macro
58 #define HASHKEY(pgno) ((pgno - 1) % HASHSIZE)
76 CIRCLEQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
H A Dmpool.c85 for (entry = 0; entry < HASHSIZE; ++entry)
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Drc_common.h28 #ifndef HASHSIZE
29 #define HASHSIZE 997 /* a convenient prime */ macro
H A Drc_mem.c212 t->hsize = HASHSIZE; /* no need to store---it's memory-only */ in krb5_rc_mem_resolve()
H A Drc_file.c217 t->hsize = HASHSIZE; /* no need to store---it's memory-only */ in krb5_rc_file_resolve()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dlookup.c31 static struct syment *hashtab[HASHSIZE];
117 n %= HASHSIZE;
H A Ddefs.h67 #define HASHSIZE 1021 macro
/illumos-gate/usr/src/lib/libpkg/common/
H A Dncgrpw.c45 #define HASHSIZE 151 macro
123 if (init_cache(&grnam_cache, HASHSIZE, BSZ, in cgrnam()
190 if (init_cache(&pwnam_cache, HASHSIZE, BSZ, in cpwnam()
282 if (init_cache(&grgid_cache, HASHSIZE, BSZ, in cgrgid()
346 if (init_cache(&pwuid_cache, HASHSIZE, BSZ, in cpwuid()
/illumos-gate/usr/src/cmd/spell/
H A Dhash.h28 #define HASHSIZE 134217689L /* prime under 2^HASHWIDTH */ macro
H A Dhash.c46 static long hashsize = HASHSIZE;
/illumos-gate/usr/src/uts/common/io/
H A Drandom.c61 #define HASHSIZE 20 /* Assuming a SHA1 hash algorithm */ macro
235 uint8_t random_bytes[2 * HASHSIZE]; in rnd_read()
/illumos-gate/usr/src/cmd/svr4pkg/pkgparam/
H A Dpkgparam.c56 #define HASHSIZE 151 macro
/illumos-gate/usr/src/cmd/cmd-crypto/tpmadm/
H A Dadmin_cmds.c353 #define HASHSIZE 17 macro
354 hash_node_t *hash_table[HASHSIZE];
366 index = index % HASHSIZE; in hash_insert()
/illumos-gate/usr/src/cmd/backup/restore/
H A Ddirs.c26 #define HASHSIZE 1000 macro
27 #define INOHASH(val) (val % HASHSIZE)
35 static struct inotab *inotab[HASHSIZE];
/illumos-gate/usr/src/lib/libproc/common/
H A DPcontrol.h206 #define HASHSIZE 1024 /* hash table size, power of 2 */ macro
H A DPcontrol.c1199 for (i = 0; i < HASHSIZE; i++) { in Pfree()
3153 for (Lp = &P->hashtab[lwpid % (HASHSIZE - 1)]; in Lfind_slot()
3194 (P->hashtab = calloc(HASHSIZE, sizeof (struct ps_lwphandle *))) in Lgrab()
/illumos-gate/usr/src/cmd/tar/
H A Dtar.c6241 #define HASHSIZE 256 macro
6243 static cachenode_t *names[HASHSIZE];
6244 static cachenode_t *groups[HASHSIZE];
6245 static cachenode_t *uids[HASHSIZE];
6246 static cachenode_t *gids[HASHSIZE];
6268 for (c = table[h & (HASHSIZE - 1)]; c != NULL; c = c->next) { in hash_lookup_byval()
6281 for (c = table[h & (HASHSIZE - 1)]; c != NULL; c = c->next) { in hash_lookup_byname()
6308 c->next = table[signature & (HASHSIZE - 1)]; in hash_insert()
6309 table[signature & (HASHSIZE - 1)] = c; in hash_insert()