Searched defs:hash (Results 1 - 25 of 263) sorted by relevance

1234567891011

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Drc_common.c24 * static int hash(krb5_donot_replay *rep, int hsize)
25 * returns hash value of *rep, between 0 and hsize - 1
29 hash(krb5_donot_replay *rep, int hsize) function
/illumos-gate/usr/src/cmd/sgs/tools/common/
H A Dstrhash.c32 * classic Bernstein k=33 hash function
41 uint_t hash = 5381; local
45 hash = ((hash << 5) + hash) + c; /* hash * 33 + c */
46 return (hash);
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/raw/
H A Draw_decrypt.c40 const struct krb5_hash_provider *hash,
38 krb5_raw_decrypt(krb5_context context, const struct krb5_enc_provider *enc, const struct krb5_hash_provider *hash, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *ivec, const krb5_data *input, krb5_data *output) argument
H A Draw_encrypt.c39 const struct krb5_hash_provider *hash,
53 const struct krb5_hash_provider *hash,
38 krb5_raw_encrypt_length(const struct krb5_enc_provider *enc, const struct krb5_hash_provider *hash, size_t inputlen, size_t *length) argument
51 krb5_raw_encrypt(krb5_context context, const struct krb5_enc_provider *enc, const struct krb5_hash_provider *hash, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *ivec, const krb5_data *input, krb5_data *output) argument
/illumos-gate/usr/src/uts/common/fs/
H A Dpkp_hash.c28 * Pearson's string hash
59 uint_t hash; local
62 hash = MOD2((key + len), PKP_HASH_SIZE);
65 hash = MOD2((hash + str[i]), PKP_HASH_SIZE);
66 hash = pkp_tab[hash];
69 return (hash);
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_stat.c51 int hash; local
54 hash = 0;
56 hash += *cp;
58 hash &= 0xf;
60 for (scp = statcache_head[hash]; scp != NULL; scp = scp->sc_next)
83 scp->sc_next = statcache_head[hash];
84 statcache_head[hash] = scp;
/illumos-gate/usr/src/cmd/refer/
H A Ddeliv2.c22 hash(char *s) function
/illumos-gate/usr/src/cmd/geniconvtbl/
H A Dhash.h39 static itm_size_t hash(const char *, itm_size_t, itm_size_t);
46 hash(const char *ptr, itm_size_t size, itm_size_t hash_size) function
/illumos-gate/usr/src/cmd/sgs/link_audit/common/
H A Dhash.h36 typedef struct hash { struct
44 } hash; typedef in typeref:struct:hash
46 extern hash *make_hash(size_t);
47 extern hash *make_ihash(size_t);
48 extern char **get_hash(hash *, char *);
49 extern char **find_hash(hash *, const char *);
50 extern char *del_hash(hash *, const char *);
51 extern size_t operate_hash(hash *, void (*)(), const char *);
52 extern void destroy_hash(hash *, int (*)(), const char *);
/illumos-gate/usr/src/cmd/spell/
H A Dhash.c34 #include "hash.h"
69 hash(char *s) function
/illumos-gate/usr/src/tools/cscope-fast/
H A Dlookup.c112 j = hash(p->text) % HASHMOD;
127 for (p = hashtab[hash(ident) % HASHMOD]; p != NULL; p = p->next) {
139 /* form hash value for string */
142 hash(char *s) function
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Ddnlc.c65 nc_hash_t hash; local
75 if (mdb_vread(&hash, sizeof (hash), dwp->dw_head) == -1) {
81 addr = (uintptr_t)hash.hash_next;
/illumos-gate/usr/src/common/ficl/
H A Dprefix.c72 ficlHash *hash; local
83 hash = (ficlHash *)(word->param[0].p);
88 for (i = 0; i < (int)hash->size; i++) {
89 word = hash->table[i];
144 ficlHash *hash; local
151 hash = ficlDictionaryCreateWordlist(dictionary, 1);
152 hash->name = list_name;
153 ficlDictionaryAppendConstantPointer(dictionary, list_name, hash);
171 * dictionary->compilationWordlist = hash;
H A Dhash.c3 #define FICL_ASSERT_PHASH(hash, expression) FICL_ASSERT(NULL, expression)
7 * Unlink all words in the hash that have addresses greater than or
12 ficlHashForget(ficlHash *hash, void *where) argument
17 FICL_ASSERT_PHASH(hash, hash);
18 FICL_ASSERT_PHASH(hash, where);
20 for (i = 0; i < hash->size; i++) {
21 pWord = hash->table[i];
27 hash->table[i] = pWord;
66 * Put a word into the hash tabl
70 ficlHashInsertWord(ficlHash *hash, ficlWord *word) argument
97 ficlHashLookup(ficlHash *hash, ficlString name, ficlUnsigned16 hashCode) argument
130 ficlHashReset(ficlHash *hash) argument
[all...]
/illumos-gate/usr/src/lib/libnsctl/common/
H A Dhash.c37 hash_node_t **hash; local
39 hash = (hash_node_t **)calloc(HASH_PRIME, sizeof (hash_node_t *));
40 return (hash);
44 nsc_insert_node(hash_node_t **hash, void *data, const char *key) argument
61 node->next = hash[ index ];
62 hash[ index ] = node;
71 * Searches the hash to find a node.
78 nsc_lookup(hash_node_t **hash, const char *key) argument
84 node = hash[ index ];
94 nsc_remove_node(hash_node_t **hash, cha argument
132 nsc_remove_all(hash_node_t **hash, void (*callback)(void *)) argument
160 unsigned int hash, i; local
[all...]
/illumos-gate/usr/src/cmd/mailx/
H A Dvars.c69 h = hash(name);
110 h = hash(s);
190 h = hash(name);
207 h = hash(name);
235 * the variable or group hash table.
239 hash(char name[]) function
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dhmac.c98 * where H is a cryptographic hash
107 krb5_const struct krb5_hash_provider *hash,
122 if (hash == NULL) {
123 KRB5_LOG0(KRB5_ERR, "krb5_hmac() error hash == NULL\n");
139 hashsize = hash->hashsize;
140 blocksize = hash->blocksize;
147 array to compute the outer hash */
151 /* allocate space for the xor key, hash input vector, and inner hash */
173 /* compute the inner hash */
106 krb5_hmac(krb5_context context, krb5_const struct krb5_hash_provider *hash, krb5_const krb5_keyblock *key, krb5_const unsigned int icount, krb5_const krb5_data *input, krb5_data *output) argument
[all...]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/old/
H A Dold_decrypt.c40 const struct krb5_hash_provider *hash,
55 hashsize = hash->hashsize;
111 if ((ret = ((*(hash->hash))(context, 1, &output, &cksum))))
38 krb5_old_decrypt(krb5_context context, const struct krb5_enc_provider *enc, const struct krb5_hash_provider *hash, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *ivec, const krb5_data *input, krb5_data *arg_output) argument
H A Dold_encrypt.c38 const struct krb5_hash_provider *hash,
45 hashsize = hash->hashsize;
54 const struct krb5_hash_provider *hash,
67 hashsize = hash->hashsize;
69 krb5_old_encrypt_length(enc, hash, input->length, &enclen);
92 if ((ret = ((*(hash->hash))(context, 1, output, &datain))))
37 krb5_old_encrypt_length(const struct krb5_enc_provider *enc, const struct krb5_hash_provider *hash, size_t inputlen, size_t *length) argument
52 krb5_old_encrypt(krb5_context context, const struct krb5_enc_provider *enc, const struct krb5_hash_provider *hash, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *ivec, const krb5_data *input, krb5_data *output) argument
/illumos-gate/usr/src/uts/common/io/drm/
H A Ddrm_auth.c55 int hash; local
57 hash = drm_hash_magic(magic);
58 for (pt = dev->magiclist[hash].head; pt; pt = pt->next) {
71 int hash; local
74 hash = drm_hash_magic(magic);
83 if (dev->magiclist[hash].tail) {
84 dev->magiclist[hash].tail->next = entry;
85 dev->magiclist[hash].tail = entry;
87 dev->magiclist[hash].head = entry;
88 dev->magiclist[hash]
100 int hash; local
[all...]
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgetprojent.c40 uint_t hash = 0; local
53 hash = hash * 15 + name[i];
54 return (hash);
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Ddig_mgr.c480 CK_BYTE *hash,
491 if (hash == NULL && hash_len == NULL)
496 if (hash == NULL) {
502 SHA1Final(hash, ctx->context.sha1ctx);
508 if (hash == NULL) {
514 MD5Final(hash, ctx->context.md5ctx);
478 digest_mgr_digest_final(SESSION *sess, DIGEST_CONTEXT *ctx, CK_BYTE *hash, CK_ULONG *hash_len) argument
H A Dmech_md5.c331 CK_BYTE hash[MD5_DIGEST_LENGTH]; local
389 hash, &hash_len);
399 k_ipad[i] = hash[i] ^ 0x36;
400 k_opad[i] = hash[i] ^ 0x5C;
441 hash_len = sizeof (hash);
442 rc = digest_mgr_digest_final(sess, &digest_ctx, hash, &hash_len);
464 rc = digest_mgr_digest_update(sess, &digest_ctx, hash, hash_len);
470 hash_len = sizeof (hash);
471 rc = digest_mgr_digest_final(sess, &digest_ctx, hash, &hash_len);
477 (void) memcpy(out_data, hash, hmac_le
[all...]
H A Dmech_sha.c65 CK_BYTE hash[SHA1_DIGEST_LENGTH]; local
118 hash_len = sizeof (hash);
120 attr->pValue, attr->ulValueLen, hash, &hash_len);
130 k_ipad[i] = hash[i] ^ 0x36;
131 k_opad[i] = hash[i] ^ 0x5C;
170 hash_len = sizeof (hash);
171 rc = digest_mgr_digest_final(sess, &digest_ctx, hash, &hash_len);
193 rc = digest_mgr_digest_update(sess, &digest_ctx, hash, hash_len);
199 hash_len = sizeof (hash);
200 rc = digest_mgr_digest_final(sess, &digest_ctx, hash,
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/keyhash_provider/
H A Dk5_md5des.c98 /* hash the confounder, then the input data */
158 krb5_const krb5_data *hash,
175 if (hash->length != (CONFLENGTH + MD5_CKSUM_LENGTH)) {
177 if (hash->length != MD5_CKSUM_LENGTH)
213 (krb5_pointer) hash->data,
214 (krb5_pointer) plaintext, hash->length,
218 (krb5_pointer) hash->data,
219 (krb5_pointer) plaintext, hash->length,
224 /* hash the confounder, then the input data */
260 /* compare the decrypted hash t
153 k5_md5des_verify(krb5_context context, krb5_const krb5_keyblock *key, krb5_keyusage usage, krb5_const krb5_data *ivec, krb5_const krb5_data *input, krb5_const krb5_data *hash, krb5_boolean *valid) argument
[all...]

Completed in 175 milliseconds

1234567891011