Home
last modified time | relevance | path

Searched refs:HashFunction (Results 1 – 25 of 100) sorted by relevance

1234

/external/guava/android/guava/src/com/google/common/hash/
DHashing.java64 public static HashFunction goodFastHash(int minimumBits) { in goodFastHash()
76 HashFunction[] hashFunctions = new HashFunction[hashFunctionsNeeded]; in goodFastHash()
107 public static HashFunction murmur3_32(int seed) { in murmur3_32()
125 public static HashFunction murmur3_32() { in murmur3_32()
141 public static HashFunction murmur3_32_fixed(int seed) { in murmur3_32_fixed()
157 public static HashFunction murmur3_32_fixed() { in murmur3_32_fixed()
168 public static HashFunction murmur3_128(int seed) { in murmur3_128()
179 public static HashFunction murmur3_128() { in murmur3_128()
189 public static HashFunction sipHash24() { in sipHash24()
199 public static HashFunction sipHash24(long k0, long k1) { in sipHash24()
[all …]
/external/guava/guava/src/com/google/common/hash/
DHashing.java64 public static HashFunction goodFastHash(int minimumBits) { in goodFastHash()
76 HashFunction[] hashFunctions = new HashFunction[hashFunctionsNeeded]; in goodFastHash()
107 public static HashFunction murmur3_32(int seed) { in murmur3_32()
125 public static HashFunction murmur3_32() { in murmur3_32()
141 public static HashFunction murmur3_32_fixed(int seed) { in murmur3_32_fixed()
157 public static HashFunction murmur3_32_fixed() { in murmur3_32_fixed()
168 public static HashFunction murmur3_128(int seed) { in murmur3_128()
179 public static HashFunction murmur3_128() { in murmur3_128()
189 public static HashFunction sipHash24() { in sipHash24()
199 public static HashFunction sipHash24(long k0, long k1) { in sipHash24()
[all …]
/external/guava/android/guava-tests/test/com/google/common/hash/
DHashingTest.java140 HashFunction hasher = Hashing.goodFastHash(i); in testGoodFastHash()
430 private static final ImmutableTable<HashFunction, String, String> KNOWN_HASHES =
431 ImmutableTable.<HashFunction, String, String>builder()
513 if (method.getReturnType().equals(HashFunction.class) // must return HashFunction in testAllHashFunctionsHaveKnownHashes()
517 HashFunction hashFunction = (HashFunction) method.invoke(Hashing.class); in testAllHashFunctionsHaveKnownHashes()
526 for (Cell<HashFunction, String, String> cell : KNOWN_HASHES.cellSet()) { in testKnownUtf8Hashing()
527 HashFunction func = cell.getRowKey(); in testKnownUtf8Hashing()
561 HashFunction hashFunction1a = Hashing.goodFastHash(1); in testGoodFastHashEquals()
562 HashFunction hashFunction1b = Hashing.goodFastHash(32); in testGoodFastHashEquals()
563 HashFunction hashFunction2a = Hashing.goodFastHash(33); in testGoodFastHashEquals()
[all …]
DHashTestUtils.java279 static void checkNoFunnels(HashFunction function) { in checkNoFunnels()
330 static void checkAvalanche(HashFunction function, int trials, double epsilon) { in checkAvalanche()
370 static void checkNo2BitCharacteristics(HashFunction function) { in checkNo2BitCharacteristics()
424 static void check2BitAvalanche(HashFunction function, int trials, double epsilon) { in check2BitAvalanche()
463 static void assertInvariants(HashFunction hashFunction) { in assertInvariants()
483 static void assertHashByteBufferInvariants(HashFunction hashFunction) { in assertHashByteBufferInvariants()
490 static void assertHashByteBufferMatchesBytes(HashFunction hashFunction) { in assertHashByteBufferMatchesBytes()
497 static void assertHashByteBufferExhaustsBuffer(HashFunction hashFunction) { in assertHashByteBufferExhaustsBuffer()
506 static void assertHashByteBufferPreservesByteOrder(HashFunction hashFunction) { in assertHashByteBufferPreservesByteOrder()
517 static void assertHasherByteBufferPreservesByteOrder(HashFunction hashFunction) { in assertHasherByteBufferPreservesByteOrder()
[all …]
DHashFunctionEnum.java47 private final HashFunction hashFunction;
49 private HashFunctionEnum(HashFunction hashFunction) { in HashFunctionEnum()
53 HashFunction getHashFunction() { in getHashFunction()
DMacHashFunctionTest.java54 private static final ImmutableTable<String, SecretKey, HashFunction> ALGORITHMS =
55 new ImmutableTable.Builder<String, SecretKey, HashFunction>()
71 for (Table.Cell<String, SecretKey, HashFunction> cell : ALGORITHMS.cellSet()) { in testHashing()
74 HashFunction hashFunc = cell.getValue(); in testHashing()
278 byte[] input, String algorithm, SecretKey key, HashFunction hashFunc) throws Exception { in assertMacHashing()
403 private static void checkHmac(String expected, HashFunction hashFunc, byte[] data) { in checkHmac()
/external/guava/guava-tests/test/com/google/common/hash/
DHashingTest.java140 HashFunction hasher = Hashing.goodFastHash(i); in testGoodFastHash()
430 private static final ImmutableTable<HashFunction, String, String> KNOWN_HASHES =
431 ImmutableTable.<HashFunction, String, String>builder()
513 if (method.getReturnType().equals(HashFunction.class) // must return HashFunction in testAllHashFunctionsHaveKnownHashes()
517 HashFunction hashFunction = (HashFunction) method.invoke(Hashing.class); in testAllHashFunctionsHaveKnownHashes()
526 for (Cell<HashFunction, String, String> cell : KNOWN_HASHES.cellSet()) { in testKnownUtf8Hashing()
527 HashFunction func = cell.getRowKey(); in testKnownUtf8Hashing()
561 HashFunction hashFunction1a = Hashing.goodFastHash(1); in testGoodFastHashEquals()
562 HashFunction hashFunction1b = Hashing.goodFastHash(32); in testGoodFastHashEquals()
563 HashFunction hashFunction2a = Hashing.goodFastHash(33); in testGoodFastHashEquals()
[all …]
DHashTestUtils.java279 static void checkNoFunnels(HashFunction function) { in checkNoFunnels()
330 static void checkAvalanche(HashFunction function, int trials, double epsilon) { in checkAvalanche()
370 static void checkNo2BitCharacteristics(HashFunction function) { in checkNo2BitCharacteristics()
424 static void check2BitAvalanche(HashFunction function, int trials, double epsilon) { in check2BitAvalanche()
463 static void assertInvariants(HashFunction hashFunction) { in assertInvariants()
483 static void assertHashByteBufferInvariants(HashFunction hashFunction) { in assertHashByteBufferInvariants()
490 static void assertHashByteBufferMatchesBytes(HashFunction hashFunction) { in assertHashByteBufferMatchesBytes()
497 static void assertHashByteBufferExhaustsBuffer(HashFunction hashFunction) { in assertHashByteBufferExhaustsBuffer()
506 static void assertHashByteBufferPreservesByteOrder(HashFunction hashFunction) { in assertHashByteBufferPreservesByteOrder()
517 static void assertHasherByteBufferPreservesByteOrder(HashFunction hashFunction) { in assertHasherByteBufferPreservesByteOrder()
[all …]
DHashFunctionEnum.java47 private final HashFunction hashFunction;
49 private HashFunctionEnum(HashFunction hashFunction) { in HashFunctionEnum()
53 HashFunction getHashFunction() { in getHashFunction()
DMacHashFunctionTest.java54 private static final ImmutableTable<String, SecretKey, HashFunction> ALGORITHMS =
55 new ImmutableTable.Builder<String, SecretKey, HashFunction>()
71 for (Table.Cell<String, SecretKey, HashFunction> cell : ALGORITHMS.cellSet()) { in testHashing()
74 HashFunction hashFunc = cell.getValue(); in testHashing()
278 byte[] input, String algorithm, SecretKey key, HashFunction hashFunc) throws Exception { in assertMacHashing()
403 private static void checkHmac(String expected, HashFunction hashFunc, byte[] data) { in checkHmac()
/external/setfilters/java/com/google/setfilters/cuckoofilter/
DCuckooFilterConfig.java33 private final HashFunction hashFunction;
38 Size size, HashFunction hashFunction, Strategy strategy, boolean useSpaceOptimization) { in CuckooFilterConfig()
49 public HashFunction hashFunction() { in hashFunction()
68 private HashFunction hashFunction;
81 public Builder setHashFunction(HashFunction hashFunction) { in setHashFunction()
306 public interface HashFunction { interface in CuckooFilterConfig
352 long fingerprint, int bucketIndex, int bucketCount, HashFunction hashFunction); in computeOtherBucketIndex()
/external/flatbuffers/include/flatbuffers/
Dhash.h73 typedef T (*HashFunction)(const char *);
74 HashFunction function;
92 inline NamedHashFunction<uint16_t>::HashFunction FindHashFunction16(
103 inline NamedHashFunction<uint32_t>::HashFunction FindHashFunction32(
114 inline NamedHashFunction<uint64_t>::HashFunction FindHashFunction64(
/external/pigweed/pw_software_update/py/pw_software_update/
Dmetadata.py23 HashFunction,
29 HashFunction.SHA256: hashlib.sha256,
31 DEFAULT_HASHES = (HashFunction.SHA256,)
92 if func == HashFunction.UNKNOWN_HASH_FUNCTION:
/external/pigweed/pw_software_update/py/
Dmetadata_test.py19 from pw_software_update.tuf_pb2 import HashFunction
32 target_payloads, (HashFunction.SHA256,), version=42
48 sha256_hash = metadata.gen_hashes(data, (HashFunction.SHA256,))[0]
/external/google-fruit/include/fruit/impl/data_structures/
Dsemistatic_map.defn.h26 inline SemistaticMap<Key, Value>::HashFunction::HashFunction() : a(0), shift(0) {} in HashFunction() function
29 inline typename SemistaticMap<Key, Value>::Unsigned SemistaticMap<Key, Value>::HashFunction::hash(U… in hash()
Dsemistatic_map.h55 struct HashFunction { struct
59 HashFunction(); argument
71 HashFunction hash_function;
/external/caliper/caliper/src/main/java/com/google/caliper/model/
DHost.java27 import com.google.common.hash.HashFunction;
72 private void initHash(HashFunction hashFunction) { in initHash()
103 private HashFunction hashFunction = getPersistentHashFunction();
119 @VisibleForTesting public Builder hashFunctionForTesting(HashFunction hashFunction) { in hashFunctionForTesting()
DPersistentHashing.java19 import com.google.common.hash.HashFunction;
28 static HashFunction getPersistentHashFunction() { in getPersistentHashFunction()
/external/guava/android/guava-tests/benchmark/com/google/common/hash/
DHashFunctionBenchmark.java56 HashFunction hashFunction = hashFunctionEnum.getHashFunction(); in hasher()
66 HashFunction hashFunction = hashFunctionEnum.getHashFunction(); in hashFunction()
76 HashFunction hashFunction = hashFunctionEnum.getHashFunction(); in hashFunctionWithOffset()
DMessageDigestAlgorithmBenchmark.java81 private final HashFunction hashFn;
83 Algorithm(String algorithmName, HashFunction hashFn) { in Algorithm()
96 public HashFunction getHashFunction() { in getHashFunction()
/external/guava/guava-tests/benchmark/com/google/common/hash/
DHashFunctionBenchmark.java56 HashFunction hashFunction = hashFunctionEnum.getHashFunction(); in hasher()
66 HashFunction hashFunction = hashFunctionEnum.getHashFunction(); in hashFunction()
76 HashFunction hashFunction = hashFunctionEnum.getHashFunction(); in hashFunctionWithOffset()
DMessageDigestAlgorithmBenchmark.java81 private final HashFunction hashFn;
83 Algorithm(String algorithmName, HashFunction hashFn) { in Algorithm()
96 public HashFunction getHashFunction() { in getHashFunction()
/external/okio/okio/src/hashFunctions/kotlin/okio/internal/
DHmac.kt22 private val hashFunction: HashFunction,
24 ) : HashFunction {
53 hashFunction: HashFunction, in sha1()
/external/okio/okio/src/jvmTest/java/okio/
DMessageDigestConsistencyTest.kt19 import okio.internal.HashFunction
51 private fun test(algorithm: String, newHashFunction: () -> HashFunction) { in test()
66 hashFunction: HashFunction, in test()
/external/flatbuffers/src/
Dflathash.cpp60 flatbuffers::NamedHashFunction<uint16_t>::HashFunction hash_function16 = in main()
62 flatbuffers::NamedHashFunction<uint32_t>::HashFunction hash_function32 = in main()
64 flatbuffers::NamedHashFunction<uint64_t>::HashFunction hash_function64 = in main()

1234