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

1234567891011>>

/external/chromium/android/ext/
H A Dfake_hash.h11 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 Dcrypt_register_hash.c19 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 Dcrypt_unregister_hash.c15 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/guava/guava/src/com/google/common/hash/
H A Dpackage-info.java20 package com.google.common.hash;
H A DAbstractCompositeHashFunction.java3 package com.google.common.hash;
8 * An abstract composition of multiple hash functions. {@linkplain #newHasher()} delegates to the
9 * {@code Hasher} objects of the delegate hash functions, and in the end, they are used by
127 @Override public HashCode hash() {
H A DFunnel.java15 package com.google.common.hash;
H A DHashCodes.java15 package com.google.common.hash;
29 static HashCode fromInt(int hash) { argument
30 return new IntHashCode(hash);
34 final int hash; field in class:HashCodes.IntHashCode
36 IntHashCode(int hash) { argument
37 this.hash = hash;
46 (byte) hash,
47 (byte) (hash >> 8),
48 (byte) (hash >> 1
65 fromLong(long hash) argument
70 final long hash; field in class:HashCodes.LongHashCode
72 LongHashCode(long hash) argument
[all...]
/external/dropbear/libtomcrypt/src/hashes/helper/
H A Dhash_file.c19 @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 Dhash_filehandle.c20 @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 Dhash_memory.c20 @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...]
/external/dropbear/libtomcrypt/src/mac/hmac/
H A Dhmac_file.c22 @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 Dhmac_memory.c22 @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) {
/external/elfutils/libelf/
H A Ddl-hash.h1 /* Compute hash value for given string according to ELF standard.
62 unsigned int hash = (unsigned int) *iname++; local
65 hash = (hash << 4) + (unsigned int) *iname++;
68 hash = (hash << 4) + (unsigned int) *iname++;
71 hash = (hash << 4) + (unsigned int) *iname++;
74 hash = (hash <<
[all...]
/external/guava/guava-tests/test/com/google/common/hash/
H A DMurmur3Hash32Test.java17 package com.google.common.hash;
19 import static com.google.common.hash.Hashing.murmur3_32;
21 import com.google.common.hash.Funnels;
22 import com.google.common.hash.HashTestUtils.HashFn;
32 @Override public byte[] hash(byte[] input, int seed) {
35 return hasher.hash().asBytes();
H A DMessageDigestHashFunctionTest.java3 package com.google.common.hash;
H A DHashCodesTest.java3 package com.google.common.hash;
46 // expectedHashCodes must contain at least one hash code with 4 bytes
56 // expectedHashCodes must contain at least one hash code with 8 bytes
73 private void assertExpectedHashCode(ExpectedHashCode expected, HashCode hash) { argument
74 assertTrue(Arrays.equals(expected.bytes, hash.asBytes()));
75 byte[] bb = new byte[hash.bits() / 8];
76 hash.writeBytesTo(bb, 0, bb.length);
78 assertEquals(expected.asInt, hash.asInt());
81 hash.asLong();
85 assertEquals(expected.asLong.longValue(), hash
92 assertSideEffectFree(HashCode hash) argument
[all...]
/external/chromium/base/
H A Dsha1_win.cc26 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 Dhash.cc1 // 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 Dhashstr.c20 struct hash { struct
25 static struct hash hash_list[] = {
34 struct hash *p;
46 * Returns the hash algorithm, or -1 on error
50 struct hash *p;
/external/skia/include/gpu/
H A DGrKey.h20 explicit GrKey(Hash hash) : fHash(hash) {} argument
/external/stlport/stlport/stl/
H A D_string_hash.h46 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 DSecurityOriginHash.h39 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/webkit/Source/WebCore/workers/
H A DWorkerLocation.cpp72 String WorkerLocation::hash() const function in class:WebCore::WorkerLocation
/external/wpa_supplicant_6/wpa_supplicant/tests/
H A Dtest_md4.c24 u8 *hash; member in struct:__anon15357
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 Dtest_md5.c24 u8 *hash; member in struct:__anon15358
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) {

Completed in 9803 milliseconds

1234567891011>>