Home
last modified time | relevance | path

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

/external/guava/guava/src/com/google/common/hash/
DAbstractStreamingHashFunction.java37 return newHasher().putObject(instance, funnel).hash(); in hashObject()
49 return newHasher().putUnencodedChars(input).hash(); in hashUnencodedChars()
53 return newHasher().putString(input, charset).hash(); in hashString()
57 return newHasher().putInt(input).hash(); in hashInt()
61 return newHasher().putLong(input).hash(); in hashLong()
65 return newHasher().putBytes(input).hash(); in hashBytes()
69 return newHasher().putBytes(input, off, len).hash(); in hashBytes()
72 @Override public Hasher newHasher(int expectedInputSize) { in newHasher() method in AbstractStreamingHashFunction
74 return newHasher(); in newHasher()
DAbstractNonStreamingHashFunction.java35 public Hasher newHasher() { in newHasher() method in AbstractNonStreamingHashFunction
40 public Hasher newHasher(int expectedInputSize) { in newHasher() method in AbstractNonStreamingHashFunction
46 return newHasher().putObject(instance, funnel).hash(); in hashObject()
59 Hasher hasher = newHasher(len * 2); in hashUnencodedChars()
75 return newHasher(4).putInt(input).hash(); in hashInt()
79 return newHasher(8).putLong(input).hash(); in hashLong()
DHashFunction.java143 Hasher newHasher(); in newHasher() method
151 Hasher newHasher(int expectedInputSize); in newHasher() method
DAbstractCompositeHashFunction.java49 public Hasher newHasher() { in newHasher() method in AbstractCompositeHashFunction
52 hashers[i] = functions[i].newHasher(); in newHasher()
DHashingOutputStream.java47 this.hasher = checkNotNull(hashFunction.newHasher()); in HashingOutputStream()
DHashingInputStream.java43 this.hasher = checkNotNull(hashFunction.newHasher()); in HashingInputStream()
DChecksumHashFunction.java49 public Hasher newHasher() { in newHasher() method in ChecksumHashFunction
DSipHashFunction.java67 @Override public Hasher newHasher() { in newHasher() method in SipHashFunction
DMessageDigestHashFunction.java81 @Override public Hasher newHasher() { in newHasher() method in MessageDigestHashFunction
DMurmur3_32HashFunction.java61 @Override public Hasher newHasher() { in newHasher() method in Murmur3_32HashFunction
DMurmur3_128HashFunction.java55 @Override public Hasher newHasher() { in newHasher() method in Murmur3_128HashFunction
/external/guava/guava-tests/test/com/google/common/hash/
DAbstractNonStreamingHashFunctionTest.java43 new StreamingVersion().newHasher(), in testExhaustive()
44 new StreamingVersion().newHasher(52), in testExhaustive()
45 new NonStreamingVersion().newHasher(), in testExhaustive()
46 new NonStreamingVersion().newHasher(123)); in testExhaustive()
85 Hasher h1 = new NonStreamingVersion().newHasher(); in assertPutString()
86 Hasher h2 = new NonStreamingVersion().newHasher(); in assertPutString()
103 public Hasher newHasher() { in newHasher() method in AbstractNonStreamingHashFunctionTest.StreamingVersion
DHashTestUtils.java459 Hasher hasher1 = hashFunction.newHasher(); in assertIndependentHashers()
460 Hasher hasher2 = hashFunction.newHasher(); in assertIndependentHashers()
471 Hasher hasher = hashFunction.newHasher(); in randomHash()
494 hashFunction.newHasher(size).putBytes(bytes).hash()); in assertHashBytesEquivalence()
498 hashFunction.newHasher(size).putBytes(bytes, off, len).hash()); in assertHashBytesEquivalence()
504 hashFunction.newHasher().putInt(i).hash()); in assertHashIntEquivalence()
510 hashFunction.newHasher().putLong(l).hash()); in assertHashLongEquivalence()
526 hashFunction.newHasher().putUnencodedChars("abc").hash(), in assertHashStringEquivalence()
527 hashFunction.newHasher().putUnencodedChars("ab").putUnencodedChars("c").hash(), in assertHashStringEquivalence()
528 hashFunction.newHasher().putUnencodedChars("a").putUnencodedChars("bc").hash(), in assertHashStringEquivalence()
[all …]
DSipHashFunctionTest.java166 assertEquals(expected, SIP_WITH_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip()
168 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip()
173 assertEquals(expected, SIP_WITH_KEY.newHasher().putBytes(input).hash().asLong()); in assertSip()
175 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putBytes(input).hash().asLong()); in assertSip()
DMurmur3Hash128Test.java55 assertEquals(expected, murmur3_128(seed).newHasher().putBytes(input).hash()); in assertHash()
72 Hasher hasher = murmur3_128(seed).newHasher(); in testParanoid()
DMessageDigestHashFunctionTest.java61 Hasher sha1 = Hashing.sha1().newHasher(); in testPutAfterHash()
75 Hasher sha1 = Hashing.sha1().newHasher(); in testHashTwice()
DMurmur3Hash32Test.java62 Hasher hasher = murmur3_32(seed).newHasher(); in testParanoid()
DHashingOutputStreamTest.java40 EasyMock.expect(hashFunction.newHasher()).andReturn(hasher).once(); in setUp()
DHashingInputStreamTest.java45 EasyMock.expect(hashFunction.newHasher()).andReturn(hasher).once(); in setUp()
DAbstractStreamingHasherTest.java157 Hasher controlSink = control.newHasher(1024); in testExhaustive()
DHashingTest.java373 Hasher hasher = Hashing.md5().newHasher(); in testHashIntVsForLoop()
/external/guava/guava/src/com/google/common/io/
DByteSource.java311 Hasher hasher = hashFunction.newHasher(); in hash()
/external/guava/guava-tests/test/com/google/common/io/
DFilesTest.java606 assertEquals(init, Hashing.md5().newHasher().hash().toString()); in testHash()
/external/owasp/sanitizer/lib/guava-libraries/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/owasp/sanitizer/distrib/lib/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...