Searched refs:hash (Results 1 - 25 of 202) sorted by relevance

123456789

/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/
H A Dhash.h28 unsigned long hash = val; local
32 unsigned long n = hash;
34 hash -= n;
36 hash -= n;
38 hash += n;
40 hash -= n;
42 hash += n;
44 hash += n;
47 hash *= GOLDEN_RATIO_PRIME;
51 return hash >> (BITS_PER_LON
[all...]
/asus-wl-520gu-7.0.1.45/src/router/vsftpd/
H A Dhash.h4 struct hash;
8 struct hash* hash_alloc(unsigned int buckets, unsigned int key_size,
10 void* hash_lookup_entry(struct hash* p_hash, void* p_key);
11 void hash_add_entry(struct hash* p_hash, void* p_key, void* p_value);
12 void hash_free_entry(struct hash* p_hash, void* p_key);
H A Dhash.c5 * hash.c
7 * Routines to handle simple hash table lookups and modifications.
10 #include "hash.h"
22 struct hash struct
32 struct hash_node** hash_get_bucket(struct hash* p_hash, void* p_key);
33 struct hash_node* hash_get_node_by_key(struct hash* p_hash, void* p_key);
35 struct hash*
40 struct hash* p_hash = vsf_sysutil_malloc(sizeof(*p_hash));
52 hash_lookup_entry(struct hash* p_hash, void* p_key)
63 hash_add_entry(struct hash* p_has
[all...]
/asus-wl-520gu-7.0.1.45/src/router/ppp/pppd/plugins/pppoe/
H A Dpppoehash.c24 char hash[sizeof(int)]={0,}; local
27 hash[i% sizeof(int)] = hash[i%sizeof(int)] ^ key[i];
29 i = (*((int*)hash)) ;
39 int hash = hash_con(len, key); local
42 ret = con_ht[hash];
52 int hash = hash_con(pc->key_len, pc->key); local
55 ret = con_ht[hash];
64 pc->next = con_ht[hash];
65 con_ht[hash]
73 int hash = hash_con(len, key); local
[all...]
/asus-wl-520gu-7.0.1.45/src/router/samba/source/lib/
H A Dgenrand.c25 static unsigned char hash[258]; variable
54 hash[ind] = (unsigned char)ind;
59 j += (hash[ind] + seedval[ind%seedlen]);
61 tc = hash[ind];
62 hash[ind] = hash[j];
63 hash[j] = tc;
66 hash[256] = 0;
67 hash[257] = 0;
76 unsigned char index_i = hash[25
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv6/
H A Dprotocol.c47 unsigned char hash; local
50 hash = prot->protocol & (MAX_INET_PROTOS - 1);
52 prot->next = inet6_protos[hash];
53 inet6_protos[hash] = prot;
72 * Remove a protocol from the hash tables.
79 unsigned char hash; local
81 hash = prot->protocol & (MAX_INET_PROTOS - 1);
83 if (prot == inet6_protos[hash]) {
84 inet6_protos[hash] = (struct inet6_protocol *) inet6_protos[hash]
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/char/drm/
H A Ddrm_auth.h43 int hash = DRM(hash_magic)(magic); local
46 for (pt = dev->magiclist[hash].head; pt; pt = pt->next) {
58 int hash; local
63 hash = DRM(hash_magic)(magic);
71 if (dev->magiclist[hash].tail) {
72 dev->magiclist[hash].tail->next = entry;
73 dev->magiclist[hash].tail = entry;
75 dev->magiclist[hash].head = entry;
76 dev->magiclist[hash].tail = entry;
87 int hash; local
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/char/drm-4.0/
H A Dauth.c44 int hash = drm_hash_magic(magic); local
47 for (pt = dev->magiclist[hash].head; pt; pt = pt->next) {
59 int hash; local
64 hash = drm_hash_magic(magic);
72 if (dev->magiclist[hash].tail) {
73 dev->magiclist[hash].tail->next = entry;
74 dev->magiclist[hash].tail = entry;
76 dev->magiclist[hash].head = entry;
77 dev->magiclist[hash].tail = entry;
88 int hash; local
[all...]
/asus-wl-520gu-7.0.1.45/src/router/e2fsprogs-1.40.8/lib/e2p/
H A Dhashstr.c19 struct hash { struct
24 static struct hash hash_list[] = {
33 struct hash *p;
45 * Returns the hash algorithm, or -1 on error
49 struct hash *p;
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/hpfs/
H A Ddentry.c17 unsigned long hash; local
29 hash = init_name_hash();
31 hash = partial_name_hash(hpfs_upcase(dentry->d_sb->s_hpfs_cp_table,qstr->name[i]), hash);
32 qstr->hash = end_name_hash(hash);
/asus-wl-520gu-7.0.1.45/src/router/samba/source/libsmb/
H A Dntlmssp_sign.c30 static void NTLMSSPcalc_ap( unsigned char *hash, unsigned char *data, int len) argument
32 unsigned char index_i = hash[256];
33 unsigned char index_j = hash[257];
42 index_j += hash[index_i];
44 tc = hash[index_i];
45 hash[index_i] = hash[index_j];
46 hash[index_j] = tc;
48 t = hash[index_i] + hash[index_
56 calc_hash(unsigned char hash[258], const char *k2, int k2l) argument
81 calc_ntlmv2_hash(unsigned char hash[258], unsigned char digest[16], DATA_BLOB session_key, const char *constant) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/router/LPRng/src/
H A Dlprng_index_certs.sh48 hash="`$ssl_program x509 -noout -hash <$file`";
49 if [ -r "$hash.$n" ]; then
52 echo dummy | awk '{ printf("%-15s ... %s\n", file, hash); }' "file=$file" "hash=$hash.$n";
53 ln -s $file $hash.$n;
/asus-wl-520gu-7.0.1.45/src/router/shared/bcmcrypto/
H A Dmd5.h58 void MD5Final (unsigned char *hash, MD5_CTX *mdContext);
/asus-wl-520gu-7.0.1.45/src/router/shared.asus/bcmcrypto/
H A Dmd5.h58 void MD5Final (unsigned char *hash, MD5_CTX *mdContext);
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/
H A Dprotocol.c18 * Richard Colella : Hang on hash collision
105 * Add a protocol handler to the hash tables
110 unsigned char hash; local
113 hash = prot->protocol & (MAX_INET_PROTOS - 1);
115 prot ->next = inet_protos[hash];
116 inet_protos[hash] = prot;
135 * Remove a protocol from the hash tables.
142 unsigned char hash; local
144 hash = prot->protocol & (MAX_INET_PROTOS - 1);
146 if (prot == inet_protos[hash]) {
[all...]
/asus-wl-520gu-7.0.1.45/src/router/LPRng/UTILS/
H A DLPRng.pm101 # $conf_values = hash to store values in
107 my($title, $hash) = @_;
110 foreach $key (sort keys %$hash ){
111 print " '$key'='". $hash->{$key} . "'\n";
141 # dump the printcap hash
146 my($title, $hash) = @_;
149 $name = \@{$hash->{'NAME'}};
151 foreach $key (sort keys %$hash ){
152 print " '$key'='". $hash->{$key} . "'\n";
158 my($title, $hash)
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/tc/
H A Df_tcindex.c20 fprintf(stderr," Usage: ... tcindex [ hash SIZE ] [ mask MASK ]"
49 if (!strcmp(*argv,"hash")) {
50 int hash; local
53 hash = strtoul(*argv,&end,0);
54 if (*end || !hash || hash > 0x10000) {
58 addattr_l(n,4096,TCA_TCINDEX_HASH,&hash,sizeof(hash));
137 __u16 hash; local
139 if (RTA_PAYLOAD(tb[TCA_TCINDEX_HASH]) < sizeof(hash))
[all...]
/asus-wl-520gu-7.0.1.45/src/router/ppp/pppd/
H A Dtdb.c49 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
56 plus a separate data list for each hash value */
62 unsigned full_hash; /* the full 32 bit hash of the key */
159 /* the hash algorithm - turn a key into an integer
160 This is based on the hash agorithm from gdbm */
163 unsigned value; /* Used to compute the hash value. */
177 /* find the top of the hash chain for an open database */
178 static tdb_off tdb_hash_top(TDB_CONTEXT *tdb, unsigned hash) argument
181 hash
542 tdb_find(TDB_CONTEXT *tdb, TDB_DATA key, unsigned int hash, struct list_struct *rec) argument
615 unsigned hash; local
659 unsigned hash; local
696 unsigned hash; local
797 unsigned hash; local
847 unsigned hash, hbucket; local
902 unsigned hash; local
1008 unsigned hash; local
[all...]
/asus-wl-520gu-7.0.1.45/src/router/pppd/pppd/
H A Dtdb.c49 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
56 plus a separate data list for each hash value */
62 unsigned full_hash; /* the full 32 bit hash of the key */
159 /* the hash algorithm - turn a key into an integer
160 This is based on the hash agorithm from gdbm */
163 unsigned value; /* Used to compute the hash value. */
177 /* find the top of the hash chain for an open database */
178 static tdb_off tdb_hash_top(TDB_CONTEXT *tdb, unsigned hash) argument
181 hash
548 tdb_find(TDB_CONTEXT *tdb, TDB_DATA key, unsigned int hash, struct list_struct *rec) argument
621 unsigned hash; local
665 unsigned hash; local
702 unsigned hash; local
803 unsigned hash; local
853 unsigned hash, hbucket; local
908 unsigned hash; local
1014 unsigned hash; local
[all...]
H A Dchap-md5.c69 unsigned char hash[MD5_HASH_SIZE]; local
75 /* Generate hash of ID, secret, challenge */
80 MD5Final(hash, &ctx);
82 /* Test if our hash matches the peer's response */
83 if (memcmp(hash, response, MD5_HASH_SIZE) == 0) {
/asus-wl-520gu-7.0.1.45/src/router/pppd.mppe/pppd/
H A Dtdb.c49 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
56 plus a separate data list for each hash value */
62 unsigned full_hash; /* the full 32 bit hash of the key */
159 /* the hash algorithm - turn a key into an integer
160 This is based on the hash agorithm from gdbm */
163 unsigned value; /* Used to compute the hash value. */
177 /* find the top of the hash chain for an open database */
178 static tdb_off tdb_hash_top(TDB_CONTEXT *tdb, unsigned hash) argument
181 hash
548 tdb_find(TDB_CONTEXT *tdb, TDB_DATA key, unsigned int hash, struct list_struct *rec) argument
621 unsigned hash; local
665 unsigned hash; local
702 unsigned hash; local
803 unsigned hash; local
853 unsigned hash, hbucket; local
908 unsigned hash; local
1014 unsigned hash; local
[all...]
H A Dchap-md5.c69 unsigned char hash[MD5_HASH_SIZE]; local
75 /* Generate hash of ID, secret, challenge */
80 MD5Final(hash, &ctx);
82 /* Test if our hash matches the peer's response */
83 if (memcmp(hash, response, MD5_HASH_SIZE) == 0) {
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/bridge/
H A Dbr_fdb.c73 int hash)
75 ent->next_hash = br->hash[hash];
78 br->hash[hash] = ent;
79 ent->pprev_hash = &br->hash[hash];
103 f = br->hash[i];
129 f = br->hash[i];
153 f = br->hash[
71 __hash_link(struct net_bridge *br, struct net_bridge_fdb_entry *ent, int hash) argument
288 int hash; local
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/net/
H A Draw.h40 extern struct sock *raw_v4_input(struct sk_buff *skb, struct iphdr *iph, int hash);
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/net/
H A Draw.h40 extern struct sock *raw_v4_input(struct sk_buff *skb, struct iphdr *iph, int hash);

Completed in 287 milliseconds

123456789