Home
last modified time | relevance | path

Searched refs:hashBytes (Results 1 – 22 of 22) sorted by relevance

/external/guava/guava-tests/test/com/google/common/hash/
DSipHashFunctionTest.java124 assertEquals(0xa129ca6149be45e5L, Hashing.sipHash24(k0, k1).hashBytes(message).asLong()); in test15ByteStringFromSipHashPaper()
152 SIP_WITH_KEY.hashBytes(col1), in testCollisionsDueToIncorrectSignExtension()
153 SIP_WITH_KEY.hashBytes(col2), in testCollisionsDueToIncorrectSignExtension()
154 SIP_WITH_KEY.hashBytes(col3)); in testCollisionsDueToIncorrectSignExtension()
172 assertEquals(expected, SIP_WITH_KEY.hashBytes(input).asLong()); in assertSip()
174 assertEquals(expected, SIP_WITHOUT_KEY.hashBytes(input).asLong()); in assertSip()
DHashTestUtils.java59 int hashBytes = hashbits / 8; in verifyHashFunction() local
62 byte[] hashes = new byte[hashBytes * 256]; in verifyHashFunction()
69 System.arraycopy(hash, 0, hashes, i * hashBytes, hash.length); in verifyHashFunction()
434 hashFunction.hashBytes(new byte[64], 0, 0); in assertHashBytesThrowsCorrectExceptions()
437 hashFunction.hashBytes(new byte[128], -1, 128); in assertHashBytesThrowsCorrectExceptions()
441 hashFunction.hashBytes(new byte[128], 64, 256 /* too long len */); in assertHashBytesThrowsCorrectExceptions()
445 hashFunction.hashBytes(new byte[64], 0, -1); in assertHashBytesThrowsCorrectExceptions()
493 assertEquals(hashFunction.hashBytes(bytes), in assertHashBytesEquivalence()
497 assertEquals(hashFunction.hashBytes(bytes, off, len), in assertHashBytesEquivalence()
DHashingInputStreamTest.java116 HashCode expectedHash = Hashing.md5().hashBytes(testBytes); in testHash_hashesCorrectly()
127 HashCode expectedHash = Hashing.md5().hashBytes(testBytes); in testHash_hashesCorrectlyReadOutOfBound()
139 HashCode expectedHash = Hashing.md5().hashBytes(new byte[] {'m', 's'}); in testHash_hashesCorrectlyForSkipping()
DChecksumHashFunctionTest.java77 assertEquals(value, func.hashBytes(bytes).padToLong()); in assertChecksum()
84 assertEquals(expected, func.hashBytes(bytes).asInt()); in assertHash32()
DMessageDigestHashFunctionTest.java100 ALGORITHMS.get(algorithmName).hashBytes(input)); in assertMessageDigestHashing()
104 new MessageDigestHashFunction(algorithmName, bytes, algorithmName).hashBytes(input)); in assertMessageDigestHashing()
DAbstractNonStreamingHashFunctionTest.java135 public HashCode hashBytes(byte[] input) { in hashBytes() method in NonStreamingVersion
140 public HashCode hashBytes(byte[] input, int off, int len) { in hashBytes() method in NonStreamingVersion
DAbstractStreamingHasherTest.java253 public HashCode hashBytes(byte[] input) {
258 public HashCode hashBytes(byte[] input, int off, int len) {
259 return hashBytes(Arrays.copyOfRange(input, off, off + len));
DMurmur3Hash128Test.java54 assertEquals(expected, murmur3_128(seed).hashBytes(input)); in assertHash()
DHashCodeTest.java372 byte[] hashBytes = hashCode.asBytes(); in assertReadableBytes()
379 assertTrue(Arrays.equals(Arrays.copyOf(hashBytes, bytes), bb)); in assertReadableBytes()
DHashingOutputStreamTest.java82 HashCode expectedHash = Hashing.md5().hashBytes(buf); in testHash_hashesCorrectly()
DHashingTest.java365 Hashing.md5().hashBytes(Ints.toByteArray(input)), in testHashIntReverseBytesVsHashBytesIntsToByteArray()
/external/guava/guava/src/com/google/common/hash/
DAbstractNonStreamingHashFunction.java68 return hashBytes(input.toString().getBytes(charset.name())); in hashString()
82 @Override public HashCode hashBytes(byte[] input) { in hashBytes() method in AbstractNonStreamingHashFunction
83 return hashBytes(input, 0, input.length); in hashBytes()
158 return hashBytes(stream.byteArray(), 0, stream.length()); in hash()
DHashFunction.java174 HashCode hashBytes(byte[] input); in hashBytes() method
184 HashCode hashBytes(byte[] input, int off, int len); in hashBytes() method
DAbstractStreamingHashFunction.java64 @Override public HashCode hashBytes(byte[] input) { in hashBytes() method in AbstractStreamingHashFunction
68 @Override public HashCode hashBytes(byte[] input, int off, int len) { in hashBytes() method in AbstractStreamingHashFunction
/external/guava/guava-tests/benchmark/com/google/common/hash/
DHashFunctionBenchmark.java58 result ^= hashFunction.hashBytes(testBytes).asBytes()[0]; in hashFunction()
DChecksumBenchmark.java91 result ^= hashFunction.hashBytes(testBytes).asBytes()[0]; in runHashFunction()
DMessageDigestAlgorithmBenchmark.java57 return algorithm.getHashFunction().hashBytes(input).asBytes(); in HASH_FUNCTION_API()
/external/guava/guava-tests/test/com/google/common/io/
DByteSourceTester.java199 HashCode expectedHash = Hashing.md5().hashBytes(expected); in testHash()
/external/guava/guava/src/com/google/common/io/
DByteSource.java552 return hashFunction.hashBytes(bytes); in hash()
/external/conscrypt/src/main/native/
Dorg_conscrypt_NativeCrypto.cpp4352 ScopedByteArrayRW hashBytes(env, hash); local
4353 if (hashBytes.get() == NULL) {
4358 reinterpret_cast<unsigned char*>(hashBytes.get() + offset),
/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/ ...