/external/guava/guava-tests/test/com/google/common/hash/ |
D | SipHashFunctionTest.java | 124 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()
|
D | HashTestUtils.java | 59 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()
|
D | HashingInputStreamTest.java | 116 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()
|
D | ChecksumHashFunctionTest.java | 77 assertEquals(value, func.hashBytes(bytes).padToLong()); in assertChecksum() 84 assertEquals(expected, func.hashBytes(bytes).asInt()); in assertHash32()
|
D | MessageDigestHashFunctionTest.java | 100 ALGORITHMS.get(algorithmName).hashBytes(input)); in assertMessageDigestHashing() 104 new MessageDigestHashFunction(algorithmName, bytes, algorithmName).hashBytes(input)); in assertMessageDigestHashing()
|
D | AbstractNonStreamingHashFunctionTest.java | 135 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
|
D | AbstractStreamingHasherTest.java | 253 public HashCode hashBytes(byte[] input) { 258 public HashCode hashBytes(byte[] input, int off, int len) { 259 return hashBytes(Arrays.copyOfRange(input, off, off + len));
|
D | Murmur3Hash128Test.java | 54 assertEquals(expected, murmur3_128(seed).hashBytes(input)); in assertHash()
|
D | HashCodeTest.java | 372 byte[] hashBytes = hashCode.asBytes(); in assertReadableBytes() 379 assertTrue(Arrays.equals(Arrays.copyOf(hashBytes, bytes), bb)); in assertReadableBytes()
|
D | HashingOutputStreamTest.java | 82 HashCode expectedHash = Hashing.md5().hashBytes(buf); in testHash_hashesCorrectly()
|
D | HashingTest.java | 365 Hashing.md5().hashBytes(Ints.toByteArray(input)), in testHashIntReverseBytesVsHashBytesIntsToByteArray()
|
/external/guava/guava/src/com/google/common/hash/ |
D | AbstractNonStreamingHashFunction.java | 68 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()
|
D | HashFunction.java | 174 HashCode hashBytes(byte[] input); in hashBytes() method 184 HashCode hashBytes(byte[] input, int off, int len); in hashBytes() method
|
D | AbstractStreamingHashFunction.java | 64 @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/ |
D | HashFunctionBenchmark.java | 58 result ^= hashFunction.hashBytes(testBytes).asBytes()[0]; in hashFunction()
|
D | ChecksumBenchmark.java | 91 result ^= hashFunction.hashBytes(testBytes).asBytes()[0]; in runHashFunction()
|
D | MessageDigestAlgorithmBenchmark.java | 57 return algorithm.getHashFunction().hashBytes(input).asBytes(); in HASH_FUNCTION_API()
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | ByteSourceTester.java | 199 HashCode expectedHash = Hashing.md5().hashBytes(expected); in testHash()
|
/external/guava/guava/src/com/google/common/io/ |
D | ByteSource.java | 552 return hashFunction.hashBytes(bytes); in hash()
|
/external/conscrypt/src/main/native/ |
D | org_conscrypt_NativeCrypto.cpp | 4352 ScopedByteArrayRW hashBytes(env, hash); local 4353 if (hashBytes.get() == NULL) { 4358 reinterpret_cast<unsigned char*>(hashBytes.get() + offset),
|
/external/owasp/sanitizer/lib/guava-libraries/ |
D | guava.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/google/
com/ ... |
/external/owasp/sanitizer/distrib/lib/ |
D | guava.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/google/
com/ ... |