Home
last modified time | relevance | path

Searched refs:Hashing (Results 1 – 25 of 40) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/hash/
DHashingTest.java19 import static com.google.common.hash.Hashing.ConcatenatedHashFunction;
20 import static com.google.common.hash.Hashing.goodFastHash;
49 HashTestUtils.checkAvalanche(Hashing.md5(), 100, 0.4); in testMd5()
50 HashTestUtils.checkNo2BitCharacteristics(Hashing.md5()); in testMd5()
51 HashTestUtils.checkNoFunnels(Hashing.md5()); in testMd5()
52 HashTestUtils.assertInvariants(Hashing.md5()); in testMd5()
53 assertEquals("Hashing.md5()", Hashing.md5().toString()); in testMd5()
57 HashTestUtils.checkAvalanche(Hashing.sha1(), 100, 0.4); in testSha1()
58 HashTestUtils.checkNo2BitCharacteristics(Hashing.sha1()); in testSha1()
59 HashTestUtils.checkNoFunnels(Hashing.sha1()); in testSha1()
[all …]
DHashFunctionEnum.java25 ADLER32(Hashing.adler32()),
26 CRC32(Hashing.crc32()),
27 GOOD_FAST_HASH_32(Hashing.goodFastHash(32)),
28 GOOD_FAST_HASH_64(Hashing.goodFastHash(64)),
29 GOOD_FAST_HASH_128(Hashing.goodFastHash(128)),
30 GOOD_FAST_HASH_256(Hashing.goodFastHash(256)),
31 MD5(Hashing.md5()),
32 MURMUR3_128(Hashing.murmur3_128()),
33 MURMUR3_32(Hashing.murmur3_32()),
34 SHA1(Hashing.sha1()),
[all …]
DMessageDigestHashFunctionTest.java43 .put("MD5", Hashing.md5())
44 .put("SHA", Hashing.sha1()) // Not the official name, but still works
45 .put("SHA1", Hashing.sha1()) // Not the official name, but still works
46 .put("sHa-1", Hashing.sha1()) // Not the official name, but still works
47 .put("SHA-1", Hashing.sha1())
48 .put("SHA-256", Hashing.sha256())
49 .put("SHA-512", Hashing.sha512())
61 Hasher sha1 = Hashing.sha1().newHasher(); in testPutAfterHash()
75 Hasher sha1 = Hashing.sha1().newHasher(); in testHashTwice()
89 assertEquals("Hashing.md5()", Hashing.md5().toString()); in testToString()
[all …]
DHashingInputStreamTest.java116 HashCode expectedHash = Hashing.md5().hashBytes(testBytes); in testHash_hashesCorrectly()
117 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer); in testHash_hashesCorrectly()
127 HashCode expectedHash = Hashing.md5().hashBytes(testBytes); in testHash_hashesCorrectlyReadOutOfBound()
128 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer); in testHash_hashesCorrectlyReadOutOfBound()
139 HashCode expectedHash = Hashing.md5().hashBytes(new byte[] {'m', 's'}); in testHash_hashesCorrectlyForSkipping()
140 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer); in testHash_hashesCorrectlyForSkipping()
155 tester.testAllPublicInstanceMethods(new HashingInputStream(Hashing.md5(), buffer)); in testChecksForNull()
DSipHashFunctionTest.java34 private static final HashFunction SIP_WITH_KEY = Hashing.sipHash24(K0, K1);
35 private static final HashFunction SIP_WITHOUT_KEY = Hashing.sipHash24();
124 assertEquals(0xa129ca6149be45e5L, Hashing.sipHash24(k0, k1).hashBytes(message).asLong()); in test15ByteStringFromSipHashPaper()
161 assertEquals("Hashing.sipHash24(20, 13)", Hashing.sipHash24(20, 13).toString()); in testToString()
DHashingOutputStreamTest.java82 HashCode expectedHash = Hashing.md5().hashBytes(buf); in testHash_hashesCorrectly()
83 HashingOutputStream out = new HashingOutputStream(Hashing.md5(), buffer); in testHash_hashesCorrectly()
93 new HashingOutputStream(Hashing.md5(), new ByteArrayOutputStream())); in testChecksForNull()
DChecksumHashFunctionTest.java17 import static com.google.common.hash.Hashing.ChecksumType.ADLER_32;
18 import static com.google.common.hash.Hashing.ChecksumType.CRC_32;
DHashCodeTest.java171 HashCode hash1 = Hashing.sha1().hashString("foo"); in testRoundTripHashCodeUsingBaseEncoding()
204 HashCode hash1 = Hashing.sha1().hashString("foo"); in testRoundTripHashCodeUsingFromString()
229 String string = Hashing.sha1().hashString("foo").toString().toUpperCase(); in testFromStringFailsWithUpperCaseString()
DMurmur3Hash32Test.java19 import static com.google.common.hash.Hashing.murmur3_32;
DMurmur3Hash128Test.java19 import static com.google.common.hash.Hashing.murmur3_128;
/external/guava/guava-tests/benchmark/com/google/common/hash/
DMessageDigestAlgorithmBenchmark.java23 import com.google.common.hash.Hashing;
64 MD5("MD5", Hashing.md5()),
65 SHA_1("SHA-1", Hashing.sha1()),
66 SHA_256("SHA-256", Hashing.sha256()),
67 SHA_512("SHA-512", Hashing.sha512());
DChecksumBenchmark.java54 return runHashFunction(reps, Hashing.crc32()); in crc32HashFunction()
70 return runHashFunction(reps, Hashing.adler32()); in adler32HashFunction()
88 result ^= Hashing.crc32().hashInt(reps).asBytes()[0]; in runHashFunction()
89 result ^= Hashing.adler32().hashInt(reps).asBytes()[0]; in runHashFunction()
/external/guava/guava/src/com/google/common/collect/
DRegularImmutableBiMap.java56 int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR); in RegularImmutableBiMap()
71 int keyBucket = Hashing.smear(keyHash) & mask; in RegularImmutableBiMap()
72 int valueBucket = Hashing.smear(valueHash) & mask; in RegularImmutableBiMap()
105 int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR); in RegularImmutableBiMap()
120 int keyBucket = Hashing.smear(keyHash) & mask; in RegularImmutableBiMap()
121 int valueBucket = Hashing.smear(valueHash) & mask; in RegularImmutableBiMap()
192 int bucket = Hashing.smear(key.hashCode()) & mask; in get()
267 int bucket = Hashing.smear(value.hashCode()) & mask;
DRegularImmutableMap.java55 int tableSize = Hashing.closedTableSize(size, MAX_LOAD_FACTOR); in RegularImmutableMap()
62 int tableIndex = Hashing.smear(key.hashCode()) & mask; in RegularImmutableMap()
80 int tableSize = Hashing.closedTableSize(size, MAX_LOAD_FACTOR); in RegularImmutableMap()
89 int tableIndex = Hashing.smear(key.hashCode()) & mask; in RegularImmutableMap()
155 int index = Hashing.smear(key.hashCode()) & mask; in get()
DHashing.java32 final class Hashing { class
33 private Hashing() {} in Hashing() method in Hashing
DLinkedHashMultimap.java324 int tableSize = Hashing.closedTableSize(expectedValues, VALUE_SET_LOAD_FACTOR); in ValueSet()
404 int smearedHash = Hashing.smearedHash(o); in contains()
416 int smearedHash = Hashing.smearedHash(value); in add()
439 if (Hashing.needsResizing(size, hashTable.length, VALUE_SET_LOAD_FACTOR)) { in rehashIfNecessary()
456 int smearedHash = Hashing.smearedHash(o); in remove()
DRegularImmutableSet.java49 for (int i = Hashing.smear(target.hashCode()); true; i++) { in contains()
DHashBiMap.java112 int tableSize = Hashing.closedTableSize(expectedSize, LOAD_FACTOR); in init()
173 return Hashing.smear((o == null) ? 0 : o.hashCode()); in hash()
282 if (Hashing.needsResizing(size, oldKToV.length, LOAD_FACTOR)) { in rehashIfNecessary()
/external/guava/guava/src/com/google/common/hash/
DBloomFilterStrategies.java48 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong(); in MURMUR128_MITZ_32()
67 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong(); in MURMUR128_MITZ_32()
95 byte[] bytes = Hashing.murmur3_128().hashObject(object, funnel).getBytesInternal(); in MURMUR128_MITZ_64()
113 byte[] bytes = Hashing.murmur3_128().hashObject(object, funnel).getBytesInternal(); in MURMUR128_MITZ_64()
DHashing.java44 public final class Hashing { class
485 private Hashing() {} in Hashing() method in Hashing
/external/guava/guava-tests/test/com/google/common/io/
DByteSourceTester.java26 import com.google.common.hash.Hashing;
199 HashCode expectedHash = Hashing.md5().hashBytes(expected); in testHash()
200 assertEquals(expectedHash, source.hash(Hashing.md5())); in testHash()
DFilesTest.java25 import com.google.common.hash.Hashing;
606 assertEquals(init, Hashing.md5().newHasher().hash().toString()); in testHash()
609 assertEquals(asciiHash, Files.hash(asciiFile, Hashing.md5()).toString()); in testHash()
612 assertEquals(i18nHash, Files.hash(i18nFile, Hashing.md5()).toString()); in testHash()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DLinkedHashMultimap.java320 int tableSize = Hashing.closedTableSize(expectedValues, VALUE_SET_LOAD_FACTOR); in ValueSet()
400 int smearedHash = Hashing.smearedHash(o); in contains()
412 int smearedHash = Hashing.smearedHash(value); in add()
435 if (Hashing.needsResizing(size, hashTable.length, VALUE_SET_LOAD_FACTOR)) { in rehashIfNecessary()
452 int smearedHash = Hashing.smearedHash(o); in remove()
/external/lzma/
DMethods.txt144 03 - Rar29 Password Hashing (modified SHA1)
146 01 - SHA-256 Password Hashing
/external/llvm/lib/Support/
DAndroid.mk33 Hashing.cpp \

12