Searched defs:hash (Results 76 - 100 of 881) sorted by relevance

1234567891011>>

/external/tensorflow/tensorflow/cc/framework/
H A Dops.cc17 #include "tensorflow/core/lib/hash/hash.h"
47 uint64 Operation::hash(int32 index) const { function in class:tensorflow::Operation
/external/tensorflow/tensorflow/core/lib/hash/
H A Dhash.h16 // Simple hash functions used for internal data structures
48 // instead of std::hash<T>.
50 // In particular, tensorflow::hash is not the identity function for pointers.
52 // because otherwise they waste the majority of their hash buckets.
54 struct hash { struct in namespace:tensorflow
55 size_t operator()(const T& t) const { return std::hash<T>()(t); }
59 struct hash<T*> { struct in namespace:tensorflow
68 struct hash<bfloat16> { struct in namespace:tensorflow
70 return std::hash<float>()(static_cast<float>(t));
75 struct hash<strin struct in namespace:tensorflow
82 struct hash<StringPiece> { struct in namespace:tensorflow
89 struct hash<std::pair<T, U>> { struct in namespace:tensorflow
[all...]
/external/v8/src/base/
H A Dhashmap-entry.h13 // HashMap entries are (key, value, hash) triplets, with a boolean indicating if
20 uint32_t hash; // The full hash value for key member in struct:v8::base::TemplateHashMapEntry
22 TemplateHashMapEntry(Key key, Value value, uint32_t hash) argument
23 : key(key), value(value), hash(hash), exists_(true) {}
38 uint32_t hash; // The full hash value for key member in struct:v8::base::TemplateHashMapEntry
40 TemplateHashMapEntry(Key* key, Value value, uint32_t hash) argument
41 : key(key), value(value), hash(has
[all...]
/external/vboot_reference/firmware/lib/cryptolib/
H A Dsha_utility.c87 Hash_ptr hash[] = { local
116 /* Call the appropriate hash function. */
117 return hash[sig_algorithm](buf, len, digest);
/external/vboot_reference/tests/
H A Dsha_benchmark.c17 /* Table of hash function pointers and their description. */
20 Hashptr hash; member in struct:HashFxTable
39 /* Iterate through all the hash functions. */
42 hash_functions[i].hash(buffer, TEST_BUFFER_SIZE, digest);
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Dsha1-prf.c35 u8 hash[SHA1_MAC_LEN]; local
57 hash))
59 os_memcpy(&buf[pos], hash, plen);
64 os_memset(hash, 0, sizeof(hash));
H A Dsha1-tprf.c34 u8 hash[SHA1_MAC_LEN]; local
40 addr[0] = hash;
57 if (hmac_sha1_vector(key, key_len, 5, addr, len, hash))
60 os_memcpy(&buf[pos], hash, SHA1_MAC_LEN);
63 os_memcpy(&buf[pos], hash, plen);
69 os_memset(hash, 0, SHA1_MAC_LEN);
/external/wpa_supplicant_8/hostapd/src/eap_common/
H A Deap_psk_common.c37 u8 hash[aes_block_size]; local
41 if (aes_128_encrypt_block(kdk, rand_p, hash))
44 hash[aes_block_size - 1] ^= counter;
45 if (aes_128_encrypt_block(kdk, hash, tek))
47 hash[aes_block_size - 1] ^= counter;
51 hash[aes_block_size - 1] ^= counter;
52 if (aes_128_encrypt_block(kdk, hash, &msk[i * aes_block_size]))
54 hash[aes_block_size - 1] ^= counter;
59 hash[aes_block_size - 1] ^= counter;
60 if (aes_128_encrypt_block(kdk, hash,
[all...]
/external/wpa_supplicant_8/hostapd/src/utils/
H A Duuid.c78 u8 hash[SHA256_MAC_LEN]; local
84 hmac_sha256(uuid, UUID_LEN, (const u8 *) &t, sizeof(t), hash) < 0)
87 os_memcpy(uuid, hash, UUID_LEN);
/external/wpa_supplicant_8/src/crypto/
H A Dsha1-prf.c35 u8 hash[SHA1_MAC_LEN]; local
57 hash))
59 os_memcpy(&buf[pos], hash, plen);
64 os_memset(hash, 0, sizeof(hash));
H A Dsha1-tprf.c34 u8 hash[SHA1_MAC_LEN]; local
40 addr[0] = hash;
57 if (hmac_sha1_vector(key, key_len, 5, addr, len, hash))
60 os_memcpy(&buf[pos], hash, SHA1_MAC_LEN);
63 os_memcpy(&buf[pos], hash, plen);
69 os_memset(hash, 0, SHA1_MAC_LEN);
/external/wpa_supplicant_8/src/eap_common/
H A Deap_psk_common.c37 u8 hash[aes_block_size]; local
41 if (aes_128_encrypt_block(kdk, rand_p, hash))
44 hash[aes_block_size - 1] ^= counter;
45 if (aes_128_encrypt_block(kdk, hash, tek))
47 hash[aes_block_size - 1] ^= counter;
51 hash[aes_block_size - 1] ^= counter;
52 if (aes_128_encrypt_block(kdk, hash, &msk[i * aes_block_size]))
54 hash[aes_block_size - 1] ^= counter;
59 hash[aes_block_size - 1] ^= counter;
60 if (aes_128_encrypt_block(kdk, hash,
[all...]
/external/wpa_supplicant_8/src/utils/
H A Duuid.c78 u8 hash[SHA256_MAC_LEN]; local
84 hmac_sha256(uuid, UUID_LEN, (const u8 *) &t, sizeof(t), hash) < 0)
87 os_memcpy(uuid, hash, UUID_LEN);
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Dsha1-prf.c35 u8 hash[SHA1_MAC_LEN]; local
57 hash))
59 os_memcpy(&buf[pos], hash, plen);
64 os_memset(hash, 0, sizeof(hash));
H A Dsha1-tprf.c34 u8 hash[SHA1_MAC_LEN]; local
40 addr[0] = hash;
57 if (hmac_sha1_vector(key, key_len, 5, addr, len, hash))
60 os_memcpy(&buf[pos], hash, SHA1_MAC_LEN);
63 os_memcpy(&buf[pos], hash, plen);
69 os_memset(hash, 0, SHA1_MAC_LEN);
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/
H A Deap_psk_common.c37 u8 hash[aes_block_size]; local
41 if (aes_128_encrypt_block(kdk, rand_p, hash))
44 hash[aes_block_size - 1] ^= counter;
45 if (aes_128_encrypt_block(kdk, hash, tek))
47 hash[aes_block_size - 1] ^= counter;
51 hash[aes_block_size - 1] ^= counter;
52 if (aes_128_encrypt_block(kdk, hash, &msk[i * aes_block_size]))
54 hash[aes_block_size - 1] ^= counter;
59 hash[aes_block_size - 1] ^= counter;
60 if (aes_128_encrypt_block(kdk, hash,
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Duuid.c78 u8 hash[SHA256_MAC_LEN]; local
84 hmac_sha256(uuid, UUID_LEN, (const u8 *) &t, sizeof(t), hash) < 0)
87 os_memcpy(uuid, hash, UUID_LEN);
/external/guava/guava/src/com/google/common/hash/
H A DAbstractNonStreamingHashFunction.java17 package com.google.common.hash;
27 * All the hash computation done using {@linkplain #newHasher()} are delegated to the {@linkplain
45 return newHasher().putObject(instance, funnel).hash();
54 return hasher.hash();
62 return newHasher(4).putInt(input).hash();
66 return newHasher(8).putLong(input).hash();
144 public HashCode hash() { method in class:AbstractNonStreamingHashFunction.BufferingHasher
H A DHashCode.java15 package com.google.common.hash;
32 * An immutable hash code of arbitrary bit length.
43 * Returns the number of bits in this hash code; a positive multiple of 8.
73 * Returns the value of this hash code as a byte array. The caller may modify the byte array;
81 * Copies bytes from this hash code into {@code dest}.
83 * @param dest the byte array into which the hash code will be written
119 public static HashCode fromInt(int hash) { argument
120 return new IntHashCode(hash);
124 final int hash; field in class:HashCode.IntHashCode
126 IntHashCode(int hash) { argument
179 fromLong(long hash) argument
184 final long hash; field in class:HashCode.LongHashCode
186 LongHashCode(long hash) argument
[all...]
H A DHasher.java15 package com.google.common.hash;
22 * A {@link PrimitiveSink} that can compute a hash code after reading the input. Each hasher should
26 * <p><b>Warning:</b> The result of calling any methods after calling {@link #hash} is undefined.
37 * the following three expressions all generate colliding hash codes: <pre> {@code
39 * newHasher().putByte(b1).putByte(b2).putByte(b3).hash()
40 * newHasher().putByte(b1).putBytes(new byte[] { b2, b3 }).hash()
41 * newHasher().putBytes(new byte[] { b1, b2, b3 }).hash()}</pre>
96 * Computes a hash code based on the data that have been provided to this hasher. The result is
99 HashCode hash(); method in interface:Hasher
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
H A DExtendedType.java32 private int hash; field in class:ExtendedType
36 * The hash code is calculated from the node type, namespace and local name.
47 this.hash = nodetype + namespace.hashCode() + localName.hashCode();
52 * and a given hash code.
57 * @param hash The given hash code
59 public ExtendedType (int nodetype, String namespace, String localName, int hash) argument
64 this.hash = hash;
77 this.hash
85 redefine(int nodetype, String namespace, String localName, int hash) argument
[all...]
/external/boringssl/src/fipstools/
H A Dcavp_sha_monte_test.cc30 std::string hash; member in struct:__anon994::TestCtx
38 const EVP_MD *md = EVP_get_digestbyname(ctx->hash.c_str());
84 fprintf(stderr, "usage: %s <hash> <test file>\n", arg);
H A Dcavp_sha_test.cc29 std::string hash; member in struct:__anon995::TestCtx
37 const EVP_MD *md = EVP_get_digestbyname(ctx->hash.c_str());
78 fprintf(stderr, "usage: %s <hash> <test file>\n", arg);
/external/curl/lib/
H A Dhash.h49 /* Hash function to be used for this hash table */
67 struct curl_hash *hash; member in struct:curl_hash_iterator
91 void Curl_hash_start_iterate(struct curl_hash *hash,
/external/deqp/framework/delibs/decpp/
H A DdeSha1.hpp23 * \brief SHA1 hash functions
39 Sha1 (const deSha1& hash) : m_hash(hash) {} argument
62 // Utility functions for building hash from values.
63 // \note This is not same as serializing the values and computing hash from the data.
66 // All vectors and strings will include their size in the hash. Following codes

Completed in 569 milliseconds

1234567891011>>