Home
last modified time | relevance | path

Searched refs:Hashing (Results 1 – 25 of 44) 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.java44 .put("MD5", Hashing.md5())
45 .put("SHA", Hashing.sha1()) // Not the official name, but still works
46 .put("SHA1", Hashing.sha1()) // Not the official name, but still works
47 .put("sHa-1", Hashing.sha1()) // Not the official name, but still works
48 .put("SHA-1", Hashing.sha1())
49 .put("SHA-256", Hashing.sha256())
50 .put("SHA-512", Hashing.sha512())
62 Hasher sha1 = Hashing.sha1().newHasher(); in testPutAfterHash()
76 Hasher sha1 = Hashing.sha1().newHasher(); in testHashTwice()
90 assertEquals("Hashing.md5()", Hashing.md5().toString()); in testToString()
[all …]
DHashingInputStreamTest.java117 HashCode expectedHash = Hashing.md5().hashBytes(testBytes); in testHash_hashesCorrectly()
118 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer); in testHash_hashesCorrectly()
128 HashCode expectedHash = Hashing.md5().hashBytes(testBytes); in testHash_hashesCorrectlyReadOutOfBound()
129 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer); in testHash_hashesCorrectlyReadOutOfBound()
140 HashCode expectedHash = Hashing.md5().hashBytes(new byte[] {'m', 's'}); in testHash_hashesCorrectlyForSkipping()
141 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer); in testHash_hashesCorrectlyForSkipping()
156 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.java173 HashCode hash1 = Hashing.sha1().hashString("foo", Charsets.US_ASCII); in testRoundTripHashCodeUsingBaseEncoding()
206 HashCode hash1 = Hashing.sha1().hashString("foo", Charsets.US_ASCII); in testRoundTripHashCodeUsingFromString()
231 String string = Hashing.sha1().hashString("foo", Charsets.US_ASCII).toString().toUpperCase(); in testFromStringFailsWithUpperCaseString()
DMurmur3Hash32Test.java19 import static com.google.common.hash.Hashing.murmur3_32;
DCrc32cHashFunctionTest.java96 int actualCrc = Hashing.crc32c().hashBytes(data).asInt(); in assertCrc()
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()
/external/caliper/caliper/src/main/java/com/google/caliper/model/
DPersistentHashing.java20 import com.google.common.hash.Hashing;
29 return Hashing.murmur3_32(); in getPersistentHashFunction()
/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
486 private Hashing() {} in Hashing() method in Hashing
/external/guava/guava-tests/test/com/google/common/io/
DByteSourceTester.java26 import com.google.common.hash.Hashing;
189 HashCode expectedHash = Hashing.md5().hashBytes(expected); in testHash()
190 assertEquals(expectedHash, source.hash(Hashing.md5())); in testHash()
DFilesTest.java25 import com.google.common.hash.Hashing;
576 assertEquals(init, Hashing.md5().newHasher().hash().toString()); in testHash()
579 assertEquals(asciiHash, Files.hash(asciiFile, Hashing.md5()).toString()); in testHash()
582 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/python/cpython2/Doc/library/
Dhmac.rst1 :mod:`hmac` --- Keyed-Hashing for Message Authentication
5 :synopsis: Keyed-Hashing for Message Authentication (HMAC) implementation

12