/external/chromium/android/ext/ |
H A D | fake_hash.h | 11 template <class _Key> struct hash { }; struct in namespace:__gnu_cxx 15 struct hash<_type> { \ 17 return std::hash<_type>(val); \
|
/external/dropbear/libtomcrypt/src/misc/crypt/ |
H A D | crypt_register_hash.c | 19 Register a hash with the descriptor table 20 @param hash The hash you wish to register 23 int register_hash(const struct ltc_hash_descriptor *hash) argument 27 LTC_ARGCHK(hash != NULL); 32 if (XMEMCMP(&hash_descriptor[x], hash, sizeof(struct ltc_hash_descriptor)) == 0) { 41 XMEMCPY(&hash_descriptor[x], hash, sizeof(struct ltc_hash_descriptor));
|
H A D | crypt_unregister_hash.c | 15 Unregister a hash, Tom St Denis 19 Unregister a hash from the descriptor table 20 @param hash The hash descriptor to remove 23 int unregister_hash(const struct ltc_hash_descriptor *hash) argument 27 LTC_ARGCHK(hash != NULL); 32 if (XMEMCMP(&hash_descriptor[x], hash, sizeof(struct ltc_hash_descriptor)) == 0) {
|
/external/dropbear/libtomcrypt/src/hashes/helper/ |
H A D | hash_file.c | 19 @param hash The index of the hash desired 20 @param fname The name of the file you wish to hash 25 int hash_file(int hash, const char *fname, unsigned char *out, unsigned long *outlen) argument 36 if ((err = hash_is_valid(hash)) != CRYPT_OK) { 45 err = hash_filehandle(hash, in, out, outlen);
|
H A D | hash_filehandle.c | 20 @param hash The index of the hash you want to use 21 @param in The FILE* handle of the file you want to hash 26 int hash_filehandle(int hash, FILE *in, unsigned char *out, unsigned long *outlen) argument 40 if ((err = hash_is_valid(hash)) != CRYPT_OK) { 44 if (*outlen < hash_descriptor[hash].hashsize) { 45 *outlen = hash_descriptor[hash].hashsize; 48 if ((err = hash_descriptor[hash].init(&md)) != CRYPT_OK) { 52 *outlen = hash_descriptor[hash].hashsize; 55 if ((err = hash_descriptor[hash] [all...] |
H A D | hash_memory.c | 20 @param hash The index of the hash you wish to use 21 @param in The data you wish to hash 22 @param inlen The length of the data to hash (octets) 27 int hash_memory(int hash, const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen) argument 36 if ((err = hash_is_valid(hash)) != CRYPT_OK) { 40 if (*outlen < hash_descriptor[hash].hashsize) { 41 *outlen = hash_descriptor[hash].hashsize; 50 if ((err = hash_descriptor[hash].init(md)) != CRYPT_OK) { 53 if ((err = hash_descriptor[hash] [all...] |
H A D | hash_memory_multi.c | 20 @param hash The index of the hash you wish to use 23 @param in The data you wish to hash 24 @param inlen The length of the data to hash (octets) 25 @param ... tuples of (data,len) pairs to hash, terminated with a (NULL,x) (x=don't care) 28 int hash_memory_multi(int hash, unsigned char *out, unsigned long *outlen, argument 41 if ((err = hash_is_valid(hash)) != CRYPT_OK) { 45 if (*outlen < hash_descriptor[hash].hashsize) { 46 *outlen = hash_descriptor[hash].hashsize; 55 if ((err = hash_descriptor[hash] [all...] |
/external/bluetooth/bluez/src/ |
H A D | oob.c | 36 void oob_read_local_data_complete(struct btd_adapter *adapter, uint8_t *hash, argument 40 local_oob_read_cb(adapter, hash, randomizer);
|
/external/dropbear/libtomcrypt/src/mac/hmac/ |
H A D | hmac_file.c | 22 @param hash The index of the hash you wish to use 30 int hmac_file(int hash, const char *fname, argument 48 if((err = hash_is_valid(hash)) != CRYPT_OK) { 52 if ((err = hmac_init(&hmac, hash, key, keylen)) != CRYPT_OK) {
|
H A D | hmac_memory.c | 22 @param hash The index of the hash to use 31 int hmac_memory(int hash, argument 44 /* make sure hash descriptor is valid */ 45 if ((err = hash_is_valid(hash)) != CRYPT_OK) { 50 if (hash_descriptor[hash].hmac_block != NULL) { 51 return hash_descriptor[hash].hmac_block(key, keylen, in, inlen, out, outlen); 61 if ((err = hmac_init(hmac, hash, key, keylen)) != CRYPT_OK) {
|
H A D | hmac_done.c | 20 #define HMAC_BLOCKSIZE hash_descriptor[hash].blocksize 33 int hash, err; local 38 /* test hash */ 39 hash = hmac->hash; 40 if((err = hash_is_valid(hash)) != CRYPT_OK) { 44 /* get the hash message digest size */ 45 hashsize = hash_descriptor[hash].hashsize; 60 /* Get the hash of the first HMAC vector plus the data */ 61 if ((err = hash_descriptor[hash] [all...] |
/external/elfutils/libelf/ |
H A D | dl-hash.h | 1 /* Compute hash value for given string according to ELF standard. 30 unsigned int hash = (unsigned int) *iname++; local 33 hash = (hash << 4) + (unsigned int) *iname++; 36 hash = (hash << 4) + (unsigned int) *iname++; 39 hash = (hash << 4) + (unsigned int) *iname++; 42 hash = (hash << [all...] |
/external/chromium/base/ |
H A D | sha1_win.cc | 26 ScopedHCRYPTHASH hash; local 27 if (!CryptCreateHash(provider, CALG_SHA1, 0, 0, hash.receive())) { 32 if (!CryptHashData(hash, reinterpret_cast<CONST BYTE*>(str.data()), 40 if (!CryptGetHashParam(hash, HP_HASHSIZE, 48 if (!CryptGetHashParam(hash, HP_HASHVAL, 58 LOG(ERROR) << "Returned hash value is wrong length: " << hash_len
|
/external/chromium/net/disk_cache/ |
H A D | hash.cc | 1 // From http://www.azillionmonkeys.com/qed/hash.html 3 #include "net/disk_cache/hash.h" 22 uint32_t hash = len, tmp; local 33 hash += get16bits(data); 34 tmp = (get16bits(data + 2) << 11) ^ hash; 35 hash = (hash << 16) ^ tmp; 37 hash += hash >> 11; 42 case 3: hash [all...] |
/external/e2fsprogs/lib/e2p/ |
H A D | hashstr.c | 19 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;
|
/external/skia/gpu/include/ |
H A D | GrKey.h | 27 explicit GrKey(Hash hash) : fHash(hash) {} argument
|
/external/stlport/stlport/stl/ |
H A D | _string_hash.h | 46 struct hash<basic_string<_CharT,_Traits,_Alloc> > { struct 54 struct _STLP_CLASS_DECLSPEC hash<string> { struct 61 struct _STLP_CLASS_DECLSPEC hash<wstring> { struct
|
/external/webkit/Source/WebCore/page/ |
H A D | SecurityOriginHash.h | 39 static unsigned hash(SecurityOrigin* origin) function in struct:WebCore::SecurityOriginHash 42 origin->protocol().impl() ? origin->protocol().impl()->hash() : 0, 43 origin->host().impl() ? origin->host().impl()->hash() : 0, 48 static unsigned hash(const RefPtr<SecurityOrigin>& origin) function in struct:WebCore::SecurityOriginHash 50 return hash(origin.get()); 55 // FIXME: The hash function above compares three specific fields. 58 // equal without changing hash to match it.
|
/external/wpa_supplicant/tests/ |
H A D | test_md4.c | 24 u8 *hash; member in struct:__anon12460 65 u8 hash[16]; local 75 md4_vector(1, addr, len, hash); 76 if (memcmp(hash, tests[i].hash, 16) != 0) { 87 md4_vector(1, addr, len, hash); 88 if (memcmp(hash, tests[i].hash, 16) != 0) {
|
H A D | test_md5.c | 24 u8 *hash; member in struct:__anon12461 65 u8 hash[16]; local 75 md5_vector(1, addr, len, hash); 76 if (memcmp(hash, tests[i].hash, 16) != 0) { 87 md5_vector(1, addr, len, hash); 88 if (memcmp(hash, tests[i].hash, 16) != 0) {
|
/external/wpa_supplicant_6/wpa_supplicant/tests/ |
H A D | test_md4.c | 24 u8 *hash; member in struct:__anon12687 65 u8 hash[16]; local 75 md4_vector(1, addr, len, hash); 76 if (memcmp(hash, tests[i].hash, 16) != 0) { 87 md4_vector(1, addr, len, hash); 88 if (memcmp(hash, tests[i].hash, 16) != 0) {
|
H A D | test_md5.c | 24 u8 *hash; member in struct:__anon12688 65 u8 hash[16]; local 75 md5_vector(1, addr, len, hash); 76 if (memcmp(hash, tests[i].hash, 16) != 0) { 87 md5_vector(1, addr, len, hash); 88 if (memcmp(hash, tests[i].hash, 16) != 0) {
|
/external/bluetooth/glib/gio/ |
H A D | gicon.h | 49 * @hash: A hash for a given #GIcon. 68 guint (* hash) (GIcon *icon); member in struct:_GIconIface
|
/external/chromium/net/base/ |
H A D | ssl_false_start_blacklist.h | 14 // precompiled by the code in ssl_false_start_blacklist_process.cc into a hash 22 // Hash returns the modified djb2 hash of the given string. 24 // This is inline because the code which generates the hash table needs to 29 unsigned hash = 5381; local 33 hash = ((hash << 5) + hash) ^ c; 34 return hash; 73 // This is the number of buckets in the blacklist hash table. (Must be a 85 // kHashData contains the contents of the hash tabl [all...] |
/external/clang/test/CXX/temp/temp.spec/temp.explicit/ |
H A D | p6.cpp | 16 template<typename T> struct hash { }; struct 23 hash<T> h; 31 template<> struct hash<S> { struct
|