/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/dropbear/libtomcrypt/src/mac/hmac/ |
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_init.c | 20 #define HMAC_BLOCKSIZE hash_descriptor[hash].blocksize 25 @param hash The index of the hash you want to use 30 int hmac_init(hmac_state *hmac, int hash, const unsigned char *key, unsigned long keylen) argument 40 /* valid hash? */ 41 if ((err = hash_is_valid(hash)) != CRYPT_OK) { 44 hmac->hash = hash; 45 hashsize = hash_descriptor[hash].hashsize; 68 if ((err = hash_memory(hash, ke [all...] |
/external/apache-http/src/org/apache/http/conn/scheme/ |
H A D | Scheme.java | 209 * Obtains a hash code for this scheme. 211 * @return the hash code 215 int hash = LangUtils.HASH_SEED; 216 hash = LangUtils.hashCode(hash, this.defaultPort); 217 hash = LangUtils.hashCode(hash, this.name); 218 hash = LangUtils.hashCode(hash, this.layered); 219 hash [all...] |
/external/chromium_org/chrome/browser/chromeos/policy/ |
H A D | cloud_external_data_store.cc | 19 // Encodes (policy, hash) into a single string. 20 std::string GetSubkey(const std::string& policy, const std::string& hash) { argument 22 DCHECK(!hash.empty()); 24 base::IntToString(hash.size()) + ":" + 25 policy + hash; 49 subkeys_to_keep.insert(GetSubkey(it->first, it->second.hash)); 55 const std::string& hash, 58 return cache_->Store(cache_key_, GetSubkey(policy, hash), data); 62 const std::string& hash, 66 const std::string subkey = GetSubkey(policy, hash); 54 Store(const std::string& policy, const std::string& hash, const std::string& data) argument 61 Load(const std::string& policy, const std::string& hash, size_t max_size, std::string* data) argument [all...] |
/external/chromium_org/net/quic/crypto/ |
H A D | null_decrypter.cc | 29 uint128 hash; local 30 if (!ReadHash(&reader, &hash)) { 39 if (hash != ComputeHash(buffer)) { 54 uint128 hash; local 55 if (!ReadHash(&reader, &hash)) { 65 if (hash != ComputeHash(buffer)) { 75 bool NullDecrypter::ReadHash(QuicDataReader* reader, uint128* hash) { argument 82 *hash = hi; 83 *hash <<= 64; 84 *hash [all...] |
/external/kernel-headers/original/linux/sunrpc/ |
H A D | svcauth.h | 17 #include <linux/hash.h> 49 struct hlist_node hash; member in struct:auth_domain 132 unsigned long hash = 0; local 143 hash = hash_long(hash^l, BITS_PER_LONG); 145 return hash >> (BITS_PER_LONG - bits); 150 unsigned long hash = 0; local 162 hash = hash_long(hash^l, BITS_PER_LONG); 164 return hash >> (BITS_PER_LON [all...] |
/external/chromium_org/third_party/WebKit/Source/wtf/ |
H A D | StringHasherTest.cpp | 60 ASSERT_EQ(emptyStringHash, hasher.hash()); 71 ASSERT_EQ(singleNullCharacterHash, hasher.hash()); 77 ASSERT_EQ(testAHash1, hasher.hash()); 80 ASSERT_EQ(testAHash2, hasher.hash()); 83 ASSERT_EQ(testAHash3, hasher.hash()); 86 ASSERT_EQ(testAHash4, hasher.hash()); 89 ASSERT_EQ(testAHash5, hasher.hash()); 95 ASSERT_EQ(testBHash1, hasher.hash()); 98 ASSERT_EQ(testBHash2, hasher.hash()); 101 ASSERT_EQ(testBHash3, hasher.hash()); [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | hash.h | 59 // Make hash<T> be the same as less<T>. Note that everywhere where custom 60 // hash functions are defined in the protobuf code, they are also defined such 63 struct hash { struct in namespace:google::protobuf 64 // Dummy, just to make derivative hash functions compile. 77 struct hash<const char*> { struct in namespace:google::protobuf 78 // Dummy, just to make derivative hash functions compile. 90 typename HashFcn = hash<Key>, 98 typename HashFcn = hash<Key>, 108 struct hash : public HASH_NAMESPACE::hash_compare<Key> { 121 struct hash<cons 190 struct hash<string> { struct in namespace:google::protobuf 203 struct hash<pair<First, Second> > { struct in namespace:google::protobuf [all...] |
/external/protobuf/src/google/protobuf/stubs/ |
H A D | hash.h | 59 // Make hash<T> be the same as less<T>. Note that everywhere where custom 60 // hash functions are defined in the protobuf code, they are also defined such 63 struct hash { struct in namespace:google::protobuf 64 // Dummy, just to make derivative hash functions compile. 77 struct hash<const char*> { struct in namespace:google::protobuf 78 // Dummy, just to make derivative hash functions compile. 90 typename HashFcn = hash<Key>, 96 typename HashFcn = hash<Key>, 104 struct hash : public HASH_NAMESPACE::hash_compare<Key> { 117 struct hash<cons 178 struct hash<string> { struct in namespace:google::protobuf 191 struct hash<pair<First, Second> > { struct in namespace:google::protobuf [all...] |
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/ |
H A D | Phonenumber.java | 227 int hash = 41; 228 hash = (53 * hash) + getCountryCode(); 229 hash = (53 * hash) + Long.valueOf(getNationalNumber()).hashCode(); 230 hash = (53 * hash) + getExtension().hashCode(); 231 hash = (53 * hash) + (isItalianLeadingZero() ? 1231 : 1237); 232 hash [all...] |
/external/chromium_org/third_party/leveldatabase/src/util/ |
H A D | cache.cc | 11 #include "util/hash.h" 34 uint32_t hash; // Hash of key(); used for fast sharding and comparisons member in struct:leveldb::__anon12024::LRUHandle 48 // We provide our own simple hash table since it removes a whole bunch 49 // of porting hacks and is also faster than some of the built-in hash 58 LRUHandle* Lookup(const Slice& key, uint32_t hash) { argument 59 return *FindPointer(key, hash); 63 LRUHandle** ptr = FindPointer(h->key(), h->hash); 78 LRUHandle* Remove(const Slice& key, uint32_t hash) { argument 79 LRUHandle** ptr = FindPointer(key, hash); 90 // a linked list of cache entries that hash int 98 FindPointer(const Slice& key, uint32_t hash) argument 119 uint32_t hash = h->hash; local 209 Lookup(const Slice& key, uint32_t hash) argument 225 Insert( const Slice& key, uint32_t hash, void* value, size_t charge, void (*deleter)(const Slice& key, void* value)) argument 258 Erase(const Slice& key, uint32_t hash) argument 280 Shard(uint32_t hash) argument 295 const uint32_t hash = HashSlice(key); local 299 const uint32_t hash = HashSlice(key); local 307 const uint32_t hash = HashSlice(key); local [all...] |
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/selector/ |
H A D | MSOutlookKeyIdCalculator.java | 15 byte[] hash = new byte[dig.getDigestSize()]; 29 dig.doFinal(hash, 0); 31 return hash;
|
/external/chromium_org/content/test/data/fileapi/ |
H A D | common.js | 12 if (document.location.hash == '#fail') 18 document.location.hash = '#pass'; 24 document.location.hash = '#fail';
|
/external/clang/test/CXX/temp/temp.spec/temp.explicit/ |
H A D | p6.cpp | 17 template<typename T> struct hash { }; struct 24 hash<T> h; 32 template<> struct hash<S> { struct
|
/external/wpa_supplicant_8/hostapd/src/eap_common/ |
H A D | eap_pwd_common.c | 26 void eap_pwd_h_update(struct crypto_hash *hash, const u8 *data, size_t len) argument 28 crypto_hash_update(hash, data, len); 32 void eap_pwd_h_final(struct crypto_hash *hash, u8 *digest) argument 35 crypto_hash_finish(hash, digest, &len); 43 struct crypto_hash *hash; local 54 hash = crypto_hash_init(CRYPTO_HASH_ALG_HMAC_SHA256, 56 if (hash == NULL) 59 crypto_hash_update(hash, digest, SHA256_MAC_LEN); 60 crypto_hash_update(hash, (u8 *) &i, sizeof(u16)); 61 crypto_hash_update(hash, labe 94 struct crypto_hash *hash; local 289 struct crypto_hash *hash; local [all...] |
/external/wpa_supplicant_8/src/eap_common/ |
H A D | eap_pwd_common.c | 26 void eap_pwd_h_update(struct crypto_hash *hash, const u8 *data, size_t len) argument 28 crypto_hash_update(hash, data, len); 32 void eap_pwd_h_final(struct crypto_hash *hash, u8 *digest) argument 35 crypto_hash_finish(hash, digest, &len); 43 struct crypto_hash *hash; local 54 hash = crypto_hash_init(CRYPTO_HASH_ALG_HMAC_SHA256, 56 if (hash == NULL) 59 crypto_hash_update(hash, digest, SHA256_MAC_LEN); 60 crypto_hash_update(hash, (u8 *) &i, sizeof(u16)); 61 crypto_hash_update(hash, labe 94 struct crypto_hash *hash; local 289 struct crypto_hash *hash; local [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/ |
H A D | eap_pwd_common.c | 26 void eap_pwd_h_update(struct crypto_hash *hash, const u8 *data, size_t len) argument 28 crypto_hash_update(hash, data, len); 32 void eap_pwd_h_final(struct crypto_hash *hash, u8 *digest) argument 35 crypto_hash_finish(hash, digest, &len); 43 struct crypto_hash *hash; local 54 hash = crypto_hash_init(CRYPTO_HASH_ALG_HMAC_SHA256, 56 if (hash == NULL) 59 crypto_hash_update(hash, digest, SHA256_MAC_LEN); 60 crypto_hash_update(hash, (u8 *) &i, sizeof(u16)); 61 crypto_hash_update(hash, labe 94 struct crypto_hash *hash; local 289 struct crypto_hash *hash; local [all...] |
/external/apache-http/src/org/apache/http/auth/ |
H A D | BasicUserPrincipal.java | 62 int hash = LangUtils.HASH_SEED; 63 hash = LangUtils.hashCode(hash, this.username); 64 return hash;
|
/external/chromium/base/ |
H A D | sha1.h | 18 SHA1_LENGTH = 20 // Length in bytes of a SHA-1 hash. 21 // Computes the SHA-1 hash of the input string |str| and returns the full 22 // hash. 25 // Computes the SHA-1 hash of the |len| bytes in |data| and puts the hash 26 // in |hash|. |hash| must be SHA1_LENGTH bytes long. 28 unsigned char* hash);
|
/external/chromium/net/http/ |
H A D | des.h | 23 // bytes), and |hash| is an 8-byte buffer receiving the output ciphertext. 24 void DESEncrypt(const uint8* key, const uint8* src, uint8* hash);
|
/external/chromium_org/base/ |
H A D | sha1.h | 16 static const size_t kSHA1Length = 20; // Length in bytes of a SHA-1 hash. 18 // Computes the SHA-1 hash of the input string |str| and returns the full 19 // hash. 22 // Computes the SHA-1 hash of the |len| bytes in |data| and puts the hash 23 // in |hash|. |hash| must be kSHA1Length bytes long. 25 unsigned char* hash);
|
/external/chromium_org/net/http/ |
H A D | des.h | 23 // bytes), and |hash| is an 8-byte buffer receiving the output ciphertext. 25 uint8* hash);
|
/external/chromium_org/remoting/host/ |
H A D | pin_hash.cc | 16 std::string hash = protocol::AuthenticationMethod::ApplyHashFunction( local 19 base::Base64Encode(hash, &hash_base64); 23 bool VerifyHostPinHash(const std::string& hash, argument 27 if (!hash_parsed.Parse(hash)) { 28 LOG(FATAL) << "Invalid hash.";
|
/external/chromium_org/third_party/WebKit/public/platform/ |
H A D | WebCryptoAlgorithmParams.h | 117 explicit WebCryptoHmacParams(const WebCryptoAlgorithm& hash) argument 119 , m_hash(hash) 121 BLINK_ASSERT(!hash.isNull()); 124 const WebCryptoAlgorithm& hash() const { return m_hash; } function in class:blink::WebCryptoHmacParams 132 WebCryptoHmacKeyParams(const WebCryptoAlgorithm& hash, bool hasLengthBytes, unsigned lengthBytes) argument 134 , m_hash(hash) 138 BLINK_ASSERT(!hash.isNull()); 142 const WebCryptoAlgorithm& hash() const { return m_hash; } function in class:blink::WebCryptoHmacKeyParams 165 explicit WebCryptoRsaSsaParams(const WebCryptoAlgorithm& hash) argument 167 , m_hash(hash) 172 const WebCryptoAlgorithm& hash() const { return m_hash; } function in class:blink::WebCryptoRsaSsaParams 230 WebCryptoRsaOaepParams(const WebCryptoAlgorithm& hash, bool hasLabel, const unsigned char* label, unsigned labelSize) argument 240 const WebCryptoAlgorithm& hash() const { return m_hash; } function in class:blink::WebCryptoRsaOaepParams [all...] |