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

1234567891011>>

/netbsd-current/external/bsd/openldap/dist/contrib/slapd-modules/passwd/
H A Dapr1-ltoa.pl3 # OpenLDAP {APR1} to Apache $apr1$ hash converter
10 ($user, $hash) = split(/:/, $_);
11 unless ($hash =~ /^{APR1}/) {
12 print STDERR "Not an Apache MD5 hash\n";
16 chomp $hash;
17 $hash = decode_base64(substr($hash, 6));
18 ($hash, $salt) = (substr($hash, 0, 16), substr($hash, 1
[all...]
H A Dapr1-atol.pl3 # Apache $apr1$ to OpenLDAP {APR1} hash converter
10 ($user, $hash) = split(/:/, $_);
11 unless ($hash =~ /^\$apr1\$/) {
12 print STDERR "Not an Apache MD5 hash\n";
16 chomp $hash;
17 ($_,$_,$salt,$hash) = split(/\$/, $hash);
19 $hash =~ tr|./0-9A-Za-z|A-Za-z0-9+/|;
20 $hash .= "AA";
21 $hash
[all...]
/netbsd-current/sys/sys/
H A Dhash.h1 /* $NetBSD: hash.h,v 1.7 2012/07/08 01:24:08 rmind Exp $ */
38 #include <machine/hash.h>
41 #ifndef __HAVE_HASH32_BUF /* not overridden by MD hash */
47 * hash32_buf(const void *bf, size_t len, uint32_t hash)
48 * return a 32 bit hash of the binary buffer buf (size len),
49 * seeded with an initial hash value of hash (usually HASH32_BUF_INIT).
52 hash32_buf(const void *bf, size_t len, uint32_t hash) argument
57 hash = hash * 25
73 hash32_str(const void *bf, uint32_t hash) argument
91 hash32_strn(const void *bf, size_t len, uint32_t hash) argument
[all...]
/netbsd-current/lib/libintl/
H A Dstrhash.c40 * string hash function by P.J.Weinberger.
48 uint32_t hash = 0, tmp; local
51 hash <<= 4;
52 hash += *p;
53 tmp = hash & 0xF0000000;
55 hash ^= tmp;
56 hash ^= tmp >> 24;
59 return hash;
/netbsd-current/external/gpl3/gcc.old/dist/libstdc++-v3/src/c++98/
H A Dhash_tr1.cc1 // std::tr1::hash definitions -*- C++ -*-
29 #include "hash-long-double-tr1-aux.cc"
38 hash<string>::operator()(string __s) const
39 { return _Fnv_hash::hash(__s.data(), __s.length()); }
43 hash<const string&>::operator()(const string& __s) const
44 { return _Fnv_hash::hash(__s.data(), __s.length()); }
49 hash<wstring>::operator()(wstring __s) const
50 { return _Fnv_hash::hash(__s.data(), __s.length() * sizeof(wchar_t)); }
54 hash<const wstring&>::operator()(const wstring& __s) const
55 { return _Fnv_hash::hash(__
[all...]
/netbsd-current/external/gpl3/gcc/dist/libstdc++-v3/src/c++98/
H A Dhash_tr1.cc1 // std::tr1::hash definitions -*- C++ -*-
29 #include "hash-long-double-tr1-aux.cc"
38 hash<string>::operator()(string __s) const
39 { return _Fnv_hash::hash(__s.data(), __s.length()); }
43 hash<const string&>::operator()(const string& __s) const
44 { return _Fnv_hash::hash(__s.data(), __s.length()); }
49 hash<wstring>::operator()(wstring __s) const
50 { return _Fnv_hash::hash(__s.data(), __s.length() * sizeof(wchar_t)); }
54 hash<const wstring&>::operator()(const wstring& __s) const
55 { return _Fnv_hash::hash(__
[all...]
/netbsd-current/external/gpl3/gdb/dist/gdb/dwarf2/
H A Dindex-common.c52 uint32_t hash = 5381; local
54 hash = hash * 33 + tolower (c);
55 return hash;
66 uint32_t hash = 5381; local
68 hash = hash * 33 + tolower (c & 0xff);
69 return hash;
/netbsd-current/tests/lib/libcrypt/
H A Dt_crypt.c73 const char *hash; member in struct:__anon195
143 for (size_t i = 0; tests[i].hash; i++) {
144 char *hash = crypt(tests[i].pw, tests[i].hash); local
145 if (!hash) {
149 if (strcmp(hash, "*0") == 0 && strlen(tests[i].hash) < 13)
151 if (strcmp(hash, tests[i].hash))
153 i, hash, test
[all...]
/netbsd-current/external/gpl3/gcc.old/dist/gcc/
H A Drtlhash.h1 /* Register Transfer Language (RTL) hash functions.
27 extern void add_rtx (const_rtx, hash &);
/netbsd-current/external/gpl3/gcc/dist/gcc/
H A Drtlhash.h1 /* Register Transfer Language (RTL) hash functions.
27 extern void add_rtx (const_rtx, hash &);
/netbsd-current/lib/libc/citrus/
H A Dcitrus_db_hash.c57 uint32_t hash = 0, tmp; local
61 hash <<= 4;
62 hash += _bcs_tolower(*p);
63 tmp = hash & 0xF0000000;
65 hash ^= tmp;
66 hash ^= tmp >> 24;
70 return hash;
/netbsd-current/external/mit/isl/dist/
H A Disl_multi_hash.c10 #include <isl/hash.h>
12 /* Return a hash value that digests "multi".
17 uint32_t hash; local
22 hash = isl_hash_init();
26 isl_hash_hash(hash, el_hash);
29 return hash;
H A Disl_pw_hash.c10 #include <isl/hash.h>
12 /* Return a hash value that digests "pw".
17 uint32_t hash; local
22 hash = isl_hash_init();
27 isl_hash_hash(hash, set_hash);
29 isl_hash_hash(hash, el_hash);
32 return hash;
H A Disl_gmp.c12 uint32_t isl_gmp_hash(mpz_t v, uint32_t hash) argument
20 isl_hash_byte(hash, 0xFF);
22 isl_hash_byte(hash, *data);
23 return hash;
H A Disl_hash_private.h4 #include <isl/hash.h>
/netbsd-current/crypto/external/bsd/netpgp/dist/src/netpgpverify/
H A Ddigest.c102 /* initialise the hash structure */
104 digest_init(digest_t *hash, const uint32_t hashalg) argument
106 if (hash == NULL) {
109 switch(hash->alg = hashalg) {
111 netpgpv_MD5Init(&hash->u.md5ctx);
112 hash->size = 16;
113 hash->prefix = prefix_md5;
114 hash->len = sizeof(prefix_md5);
115 hash->ctx = &hash
180 digest_update(digest_t *hash, const uint8_t *data, size_t length) argument
208 digest_final(uint8_t *out, digest_t *hash) argument
238 digest_length(digest_t *hash, unsigned hashedlen) argument
[all...]
/netbsd-current/external/gpl3/gcc.old/dist/libstdc++-v3/libsupc++/
H A Dhash_bytes.cc25 // This file defines Hash_bytes, a primitive used for defining hash
30 // exactly the same interface but using a different hash algorithm,
31 // Fowler / Noll / Vo (FNV) Hash (type FNV-1a). The Murmur hash
32 // function apears to be better in both speed and hash quality, and
72 // Implementation of Murmur hash for 32-bit size_t.
77 size_t hash = seed ^ len; local
80 // Mix 4 bytes at a time into the hash.
87 hash *= m;
88 hash ^= k;
97 hash
119 _Fnv_hash_bytes(const void* ptr, size_t len, size_t hash) argument
[all...]
/netbsd-current/external/gpl3/gcc/dist/libstdc++-v3/libsupc++/
H A Dhash_bytes.cc25 // This file defines Hash_bytes, a primitive used for defining hash
30 // exactly the same interface but using a different hash algorithm,
31 // Fowler / Noll / Vo (FNV) Hash (type FNV-1a). The Murmur hash
32 // function apears to be better in both speed and hash quality, and
72 // Implementation of Murmur hash for 32-bit size_t.
77 size_t hash = seed ^ len; local
80 // Mix 4 bytes at a time into the hash.
87 hash *= m;
88 hash ^= k;
97 hash
119 _Fnv_hash_bytes(const void* ptr, size_t len, size_t hash) argument
[all...]
/netbsd-current/crypto/external/bsd/netpgp/dist/src/libdigest/
H A Ddigest.c186 /* initialise the hash structure */
188 digest_init(digest_t *hash, const uint32_t hashalg) argument
190 if (hash == NULL) {
193 switch(hash->alg = hashalg) {
195 MD5Init(&hash->u.md5ctx);
196 hash->size = 16;
197 hash->prefix = prefix_md5;
198 hash->len = sizeof(prefix_md5);
199 hash->ctx = &hash
280 digest_update(digest_t *hash, const uint8_t *data, size_t length) argument
312 digest_final(uint8_t *out, digest_t *hash) argument
345 digest_length(digest_t *hash, unsigned hashedlen) argument
[all...]
/netbsd-current/external/cddl/osnet/dist/tools/ctf/cvt/
H A Dhash.c35 * Routines for manipulating hash tables
44 #include "hash.h"
48 struct hash { struct
100 hash_t *hash; local
102 hash = xmalloc(sizeof (hash_t));
103 hash->h_buckets = xcalloc(sizeof (list_t *) * nbuckets);
104 hash->h_nbuckets = nbuckets;
105 hash->h_hashfn = hashfn ? hashfn : hash_def_hash;
106 hash->h_cmp = cmp ? cmp : hash_def_cmp;
108 return (hash);
112 hash_add(hash_t *hash, void *key) argument
135 hash_t *hash = arg; local
140 hash_remove(hash_t *hash, void *key) argument
149 hash_match(hash_t *hash, void *key, int (*fun)(void *, void *), void *private) argument
174 hash_find_iter(hash_t *hash, void *key, int (*fun)(void *, void *), void *private) argument
203 hash_find(hash_t *hash, void *key, void **value) argument
220 hash_iter(hash_t *hash, int (*fun)(void *, void *), void *private) argument
239 hash_count(hash_t *hash) argument
250 hash_free(hash_t *hash, void (*datafree)(void *, void *), void *private) argument
264 hash_stats(hash_t *hash, int verbose) argument
[all...]
/netbsd-current/external/gpl3/gcc.old/dist/libstdc++-v3/src/c++11/
H A Dcxx11-hash_tr1.cc1 // std::tr1::hash definitions with new string -*- C++ -*-
39 hash<string>::operator()(string __s) const
40 { return _Fnv_hash::hash(__s.data(), __s.length()); }
44 hash<const string&>::operator()(const string& __s) const
45 { return _Fnv_hash::hash(__s.data(), __s.length()); }
50 hash<wstring>::operator()(wstring __s) const
51 { return _Fnv_hash::hash(__s.data(), __s.length() * sizeof(wchar_t)); }
55 hash<const wstring&>::operator()(const wstring& __s) const
56 { return _Fnv_hash::hash(__s.data(), __s.length() * sizeof(wchar_t)); }
/netbsd-current/external/gpl3/gcc/dist/libstdc++-v3/src/c++11/
H A Dcxx11-hash_tr1.cc1 // std::tr1::hash definitions with new string -*- C++ -*-
39 hash<string>::operator()(string __s) const
40 { return _Fnv_hash::hash(__s.data(), __s.length()); }
44 hash<const string&>::operator()(const string& __s) const
45 { return _Fnv_hash::hash(__s.data(), __s.length()); }
50 hash<wstring>::operator()(wstring __s) const
51 { return _Fnv_hash::hash(__s.data(), __s.length() * sizeof(wchar_t)); }
55 hash<const wstring&>::operator()(const wstring& __s) const
56 { return _Fnv_hash::hash(__s.data(), __s.length() * sizeof(wchar_t)); }
/netbsd-current/external/gpl3/gdb.old/dist/gdb/dwarf2/
H A Dindex-common.c52 uint32_t hash = 5381; local
54 hash = hash * 33 + tolower (c);
55 return hash;
/netbsd-current/external/gpl3/gcc.old/dist/libgfortran/intrinsics/
H A Dextends_type_of.c32 GFC_INTEGER_4 hash; member in struct:vtype
61 if (v1->hash == v2->hash) return 1;
/netbsd-current/external/gpl3/gcc.old/dist/libstdc++-v3/include/backward/
H A Dhash_fun.h1 // 'struct hash' from SGI -*- C++ -*-
68 struct hash { }; struct
80 struct hash<char*> struct
88 struct hash<const char*> struct
96 struct hash<char> struct
104 struct hash<unsigned char> struct
112 struct hash<signed char> struct
120 struct hash<short> struct
128 struct hash<unsigned short> struct
136 struct hash<in struct
144 struct hash<unsigned int> struct
152 struct hash<long> struct
160 struct hash<unsigned long> struct
[all...]

Completed in 219 milliseconds

1234567891011>>