/external/guava/guava-tests/test/com/google/common/hash/ |
D | HashingTest.java | 50 HashTestUtils.checkAvalanche(Hashing.md5(), 100, 0.4); in testMd5() 51 HashTestUtils.checkNo2BitCharacteristics(Hashing.md5()); in testMd5() 52 HashTestUtils.checkNoFunnels(Hashing.md5()); in testMd5() 53 HashTestUtils.assertInvariants(Hashing.md5()); in testMd5() 54 assertEquals("Hashing.md5()", Hashing.md5().toString()); in testMd5() 58 HashTestUtils.checkAvalanche(Hashing.sha1(), 100, 0.4); in testSha1() 59 HashTestUtils.checkNo2BitCharacteristics(Hashing.sha1()); in testSha1() 60 HashTestUtils.checkNoFunnels(Hashing.sha1()); in testSha1() 61 HashTestUtils.assertInvariants(Hashing.sha1()); in testSha1() 62 assertEquals("Hashing.sha1()", Hashing.sha1().toString()); in testSha1() [all …]
|
D | HashFunctionEnum.java | 25 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 …]
|
D | MessageDigestHashFunctionTest.java | 42 .put("MD5", Hashing.md5()) 43 .put("SHA", Hashing.sha1()) // Not the official name, but still works 44 .put("SHA1", Hashing.sha1()) // Not the official name, but still works 45 .put("sHa-1", Hashing.sha1()) // Not the official name, but still works 46 .put("SHA-1", Hashing.sha1()) 47 .put("SHA-256", Hashing.sha256()) 48 .put("SHA-384", Hashing.sha384()) 49 .put("SHA-512", Hashing.sha512()) 61 Hasher sha1 = Hashing.sha1().newHasher(); in testPutAfterHash() 76 Hasher sha1 = Hashing.sha1().newHasher(); in testHashTwice() [all …]
|
D | MacHashFunctionTest.java | 56 .put("HmacMD5", MD5_KEY, Hashing.hmacMd5(MD5_KEY)) 57 .put("HmacSHA1", SHA1_KEY, Hashing.hmacSha1(SHA1_KEY)) 58 .put("HmacSHA256", SHA256_KEY, Hashing.hmacSha256(SHA256_KEY)) 59 .put("HmacSHA512", SHA512_KEY, Hashing.hmacSha512(SHA512_KEY)) 85 Hashing.hmacMd5(MD5_KEY); in testNoProviders() 101 Hashing.hmacSha1(SHA1_KEY) in testMultipleUpdates() 116 Hashing.hmacSha1(SHA1_KEY) in testMultipleUpdatesDoFinal() 144 Hashing.hmacMd5(customKey) in testCustomKey() 168 Hashing.hmacMd5(badKey); in testBadKey_emptyKey() 182 assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).newHasher().hash().toString()); in testEmptyInputs() [all …]
|
D | HashingInputStreamTest.java | 108 HashCode expectedHash = Hashing.md5().hashBytes(testBytes); in testHash_hashesCorrectly() 109 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer); in testHash_hashesCorrectly() 119 HashCode expectedHash = Hashing.md5().hashBytes(testBytes); in testHash_hashesCorrectlyReadOutOfBound() 120 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer); in testHash_hashesCorrectlyReadOutOfBound() 131 HashCode expectedHash = Hashing.md5().hashBytes(new byte[] {'m', 's'}); in testHash_hashesCorrectlyForSkipping() 132 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer); in testHash_hashesCorrectlyForSkipping() 147 tester.testAllPublicInstanceMethods(new HashingInputStream(Hashing.md5(), buffer)); in testChecksForNull()
|
D | SipHashFunctionTest.java | 33 private static final HashFunction SIP_WITH_KEY = Hashing.sipHash24(K0, K1); 34 private static final HashFunction SIP_WITHOUT_KEY = Hashing.sipHash24(); 126 assertEquals(0xa129ca6149be45e5L, Hashing.sipHash24(k0, k1).hashBytes(message).asLong()); in test15ByteStringFromSipHashPaper() 164 assertEquals("Hashing.sipHash24(20, 13)", Hashing.sipHash24(20, 13).toString()); in testToString()
|
D | HashingOutputStreamTest.java | 77 HashCode expectedHash = Hashing.md5().hashBytes(buf); in testHash_hashesCorrectly() 78 HashingOutputStream out = new HashingOutputStream(Hashing.md5(), buffer); in testHash_hashesCorrectly() 88 new HashingOutputStream(Hashing.md5(), new ByteArrayOutputStream())); in testChecksForNull()
|
/external/guava/android/guava-tests/test/com/google/common/hash/ |
D | HashingTest.java | 50 HashTestUtils.checkAvalanche(Hashing.md5(), 100, 0.4); in testMd5() 51 HashTestUtils.checkNo2BitCharacteristics(Hashing.md5()); in testMd5() 52 HashTestUtils.checkNoFunnels(Hashing.md5()); in testMd5() 53 HashTestUtils.assertInvariants(Hashing.md5()); in testMd5() 54 assertEquals("Hashing.md5()", Hashing.md5().toString()); in testMd5() 58 HashTestUtils.checkAvalanche(Hashing.sha1(), 100, 0.4); in testSha1() 59 HashTestUtils.checkNo2BitCharacteristics(Hashing.sha1()); in testSha1() 60 HashTestUtils.checkNoFunnels(Hashing.sha1()); in testSha1() 61 HashTestUtils.assertInvariants(Hashing.sha1()); in testSha1() 62 assertEquals("Hashing.sha1()", Hashing.sha1().toString()); in testSha1() [all …]
|
D | HashFunctionEnum.java | 25 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 …]
|
D | MessageDigestHashFunctionTest.java | 42 .put("MD5", Hashing.md5()) 43 .put("SHA", Hashing.sha1()) // Not the official name, but still works 44 .put("SHA1", Hashing.sha1()) // Not the official name, but still works 45 .put("sHa-1", Hashing.sha1()) // Not the official name, but still works 46 .put("SHA-1", Hashing.sha1()) 47 .put("SHA-256", Hashing.sha256()) 48 .put("SHA-384", Hashing.sha384()) 49 .put("SHA-512", Hashing.sha512()) 61 Hasher sha1 = Hashing.sha1().newHasher(); in testPutAfterHash() 76 Hasher sha1 = Hashing.sha1().newHasher(); in testHashTwice() [all …]
|
D | MacHashFunctionTest.java | 56 .put("HmacMD5", MD5_KEY, Hashing.hmacMd5(MD5_KEY)) 57 .put("HmacSHA1", SHA1_KEY, Hashing.hmacSha1(SHA1_KEY)) 58 .put("HmacSHA256", SHA256_KEY, Hashing.hmacSha256(SHA256_KEY)) 59 .put("HmacSHA512", SHA512_KEY, Hashing.hmacSha512(SHA512_KEY)) 85 Hashing.hmacMd5(MD5_KEY); in testNoProviders() 101 Hashing.hmacSha1(SHA1_KEY) in testMultipleUpdates() 116 Hashing.hmacSha1(SHA1_KEY) in testMultipleUpdatesDoFinal() 144 Hashing.hmacMd5(customKey) in testCustomKey() 168 Hashing.hmacMd5(badKey); in testBadKey_emptyKey() 182 assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).newHasher().hash().toString()); in testEmptyInputs() [all …]
|
D | HashingInputStreamTest.java | 108 HashCode expectedHash = Hashing.md5().hashBytes(testBytes); in testHash_hashesCorrectly() 109 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer); in testHash_hashesCorrectly() 119 HashCode expectedHash = Hashing.md5().hashBytes(testBytes); in testHash_hashesCorrectlyReadOutOfBound() 120 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer); in testHash_hashesCorrectlyReadOutOfBound() 131 HashCode expectedHash = Hashing.md5().hashBytes(new byte[] {'m', 's'}); in testHash_hashesCorrectlyForSkipping() 132 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer); in testHash_hashesCorrectlyForSkipping() 147 tester.testAllPublicInstanceMethods(new HashingInputStream(Hashing.md5(), buffer)); in testChecksForNull()
|
D | SipHashFunctionTest.java | 33 private static final HashFunction SIP_WITH_KEY = Hashing.sipHash24(K0, K1); 34 private static final HashFunction SIP_WITHOUT_KEY = Hashing.sipHash24(); 126 assertEquals(0xa129ca6149be45e5L, Hashing.sipHash24(k0, k1).hashBytes(message).asLong()); in test15ByteStringFromSipHashPaper() 164 assertEquals("Hashing.sipHash24(20, 13)", Hashing.sipHash24(20, 13).toString()); in testToString()
|
D | HashingOutputStreamTest.java | 77 HashCode expectedHash = Hashing.md5().hashBytes(buf); in testHash_hashesCorrectly() 78 HashingOutputStream out = new HashingOutputStream(Hashing.md5(), buffer); in testHash_hashesCorrectly() 88 new HashingOutputStream(Hashing.md5(), new ByteArrayOutputStream())); in testChecksForNull()
|
/external/guava/android/guava-tests/benchmark/com/google/common/hash/ |
D | MessageDigestAlgorithmBenchmark.java | 74 MD5("MD5", Hashing.md5()), 75 SHA_1("SHA-1", Hashing.sha1()), 76 SHA_256("SHA-256", Hashing.sha256()), 77 SHA_384("SHA-384", Hashing.sha384()), 78 SHA_512("SHA-512", Hashing.sha512());
|
D | ChecksumBenchmark.java | 58 return runHashFunction(reps, Hashing.crc32()); in crc32HashFunction() 76 return runHashFunction(reps, Hashing.adler32()); in adler32HashFunction() 95 result ^= Hashing.crc32().hashInt(reps).asBytes()[0]; in runHashFunction() 96 result ^= Hashing.adler32().hashInt(reps).asBytes()[0]; in runHashFunction()
|
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
D | MessageDigestAlgorithmBenchmark.java | 74 MD5("MD5", Hashing.md5()), 75 SHA_1("SHA-1", Hashing.sha1()), 76 SHA_256("SHA-256", Hashing.sha256()), 77 SHA_384("SHA-384", Hashing.sha384()), 78 SHA_512("SHA-512", Hashing.sha512());
|
D | ChecksumBenchmark.java | 58 return runHashFunction(reps, Hashing.crc32()); in crc32HashFunction() 76 return runHashFunction(reps, Hashing.adler32()); in adler32HashFunction() 95 result ^= Hashing.crc32().hashInt(reps).asBytes()[0]; in runHashFunction() 96 result ^= Hashing.adler32().hashInt(reps).asBytes()[0]; in runHashFunction()
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | HashBiMap.java | 114 int tableSize = Hashing.closedTableSize(expectedSize, 1.0); in init() 169 int newTableSize = Hashing.closedTableSize(minCapacity, 1.0); in ensureCapacity() 174 int keyHash = Hashing.smearedHash(keys[entryToRehash]); in ensureCapacity() 179 int valueHash = Hashing.smearedHash(values[entryToRehash]); in ensureCapacity() 197 return findEntryByKey(key, Hashing.smearedHash(key)); in findEntryByKey() 209 return findEntryByValue(value, Hashing.smearedHash(value)); in findEntryByValue() 261 int keyHash = Hashing.smearedHash(key); in put() 273 int valueHash = Hashing.smearedHash(value); in put() 306 int valueHash = Hashing.smearedHash(value); in putInverse() 319 int keyHash = Hashing.smearedHash(key); in putInverse() [all …]
|
D | Hashing.java | 31 final class Hashing { class 32 private Hashing() {} in Hashing() method in Hashing
|
/external/caliper/caliper/src/main/java/com/google/caliper/model/ |
D | PersistentHashing.java | 20 import com.google.common.hash.Hashing; 29 return Hashing.murmur3_32(); in getPersistentHashFunction()
|
/external/guava/guava/src/com/google/common/collect/ |
D | Hashing.java | 31 final class Hashing { class 32 private Hashing() {} in Hashing() method in Hashing
|
/external/guava/android/guava/src/com/google/common/hash/ |
D | BloomFilterStrategies.java | 50 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong(); in MURMUR128_MITZ_32() 70 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong(); in MURMUR128_MITZ_32() 98 byte[] bytes = Hashing.murmur3_128().hashObject(object, funnel).getBytesInternal(); in MURMUR128_MITZ_64() 116 byte[] bytes = Hashing.murmur3_128().hashObject(object, funnel).getBytesInternal(); in MURMUR128_MITZ_64()
|
/external/turbine/javatests/com/google/turbine/zip/ |
D | ZipTest.java | 24 import com.google.common.hash.Hashing; 95 je.setCrc(Hashing.crc32().hashBytes(bytes).padToLong()); in createEntry() 103 result.put(e.name(), Hashing.goodFastHash(128).hashBytes(e.data()).padToLong()); in actual() 116 Hashing.goodFastHash(128) in expected()
|
/external/guava/guava/src/com/google/common/hash/ |
D | BloomFilterStrategies.java | 50 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong(); in MURMUR128_MITZ_32() 70 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong(); in MURMUR128_MITZ_32() 98 byte[] bytes = Hashing.murmur3_128().hashObject(object, funnel).getBytesInternal(); in MURMUR128_MITZ_64() 116 byte[] bytes = Hashing.murmur3_128().hashObject(object, funnel).getBytesInternal(); in MURMUR128_MITZ_64()
|