Searched defs:hash (Results 1 - 25 of 274) 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/common/
H A Dstrhash.c30 * classic Bernstein k=33 hash function
39 uint_t hash = 5381; local
43 hash = ((hash << 5) + hash) + c; /* hash * 33 + c */
44 return (hash);
/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/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/cmd/refer/
H A Ddeliv2.c22 hash(char *s) function
H A Dinv6.c27 int hash = 0, hused = 0; local
47 if (hash < k) {
51 hfreq[hash] = ct;
52 while (hash < k) {
53 hpt[++hash] = lp;
54 hfreq[hash] = 0;
56 hpt[hash] = lp += iflong ? sizeof (long) : sizeof (int);
71 while (hash < nhash)
72 hpt[++hash] = lp;
/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/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/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/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...]
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Dstubs.c109 #pragma weak hash macro
111 hash(char *s) function
/illumos-gate/usr/src/lib/libcpc/common/
H A Dsubr.c163 __cpc_strhash_free(cpc_strhash_t *hash) argument
165 cpc_strhash_t *p = hash, *f;
175 * Insert a new key into the hash table.
184 __cpc_strhash_add(cpc_strhash_t *hash, char *key) argument
188 for (p = hash; p != NULL; p = p->next) {
197 tmp = hash->next;
198 hash->next = p;
204 hash->cur = p;
210 __cpc_strhash_next(cpc_strhash_t *hash) argument
214 if (hash
[all...]
/illumos-gate/usr/src/cmd/vi/misc/
H A Dmkstr.c46 * Modified March 1978 to hash old messages to be able to recompile
230 struct hash { struct
233 struct hash *hnext;
242 register struct hash *hp;
266 hp = (struct hash *) calloc(1, sizeof *hp);
/illumos-gate/usr/src/cmd/sh/
H A Dhash.c34 #include "hash.h"
49 #define hash(str) (int)(((unsigned)(crunch(str) * FACTOR)) >> shift) macro
119 i = hash(str);
/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

Completed in 70 milliseconds

1234567891011