Searched refs:hashBytes (Results 1 - 25 of 33) sorted by relevance

12

/external/guava/guava/src/com/google/common/hash/
H A DHashFunction.java174 HashCode hashBytes(byte[] input); method in interface:HashFunction
184 HashCode hashBytes(byte[] input, int off, int len); method in interface:HashFunction
H A DAbstractNonStreamingHashFunction.java28 * #hashBytes(byte[], int, int)} method.
58 return hashBytes(input.toString().getBytes(charset));
69 @Override public HashCode hashBytes(byte[] input) { method in class:AbstractNonStreamingHashFunction
70 return hashBytes(input, 0, input.length);
145 return hashBytes(stream.byteArray(), 0, stream.length());
H A DAbstractStreamingHashFunction.java56 @Override public HashCode hashBytes(byte[] input) { method in class:AbstractStreamingHashFunction
60 @Override public HashCode hashBytes(byte[] input, int off, int len) { method in class:AbstractStreamingHashFunction
/external/guava/guava-tests/test/com/google/common/hash/
H A DSipHashFunctionTest.java124 assertEquals(0xa129ca6149be45e5L, Hashing.sipHash24(k0, k1).hashBytes(message).asLong());
152 SIP_WITH_KEY.hashBytes(col1),
153 SIP_WITH_KEY.hashBytes(col2),
154 SIP_WITH_KEY.hashBytes(col3));
172 assertEquals(expected, SIP_WITH_KEY.hashBytes(input).asLong());
174 assertEquals(expected, SIP_WITHOUT_KEY.hashBytes(input).asLong());
H A DChecksumHashFunctionTest.java77 assertEquals(value, func.hashBytes(bytes).padToLong());
84 assertEquals(expected, func.hashBytes(bytes).asInt());
H A DMessageDigestHashFunctionTest.java101 ALGORITHMS.get(algorithmName).hashBytes(input));
105 new MessageDigestHashFunction(algorithmName, bytes, algorithmName).hashBytes(input));
H A DHashTestUtils.java59 int hashBytes = hashbits / 8;
62 byte[] hashes = new byte[hashBytes * 256];
69 System.arraycopy(hash, 0, hashes, i * hashBytes, hash.length);
434 hashFunction.hashBytes(new byte[64], 0, 0);
437 hashFunction.hashBytes(new byte[128], -1, 128);
441 hashFunction.hashBytes(new byte[128], 64, 256 /* too long len */);
445 hashFunction.hashBytes(new byte[64], 0, -1);
493 assertEquals(hashFunction.hashBytes(bytes),
497 assertEquals(hashFunction.hashBytes(bytes, off, len),
H A DAbstractNonStreamingHashFunctionTest.java133 public HashCode hashBytes(byte[] input) { method in class:AbstractNonStreamingHashFunctionTest.NonStreamingVersion
138 public HashCode hashBytes(byte[] input, int off, int len) { method in class:AbstractNonStreamingHashFunctionTest.NonStreamingVersion
H A DMurmur3Hash128Test.java54 assertEquals(expected, murmur3_128(seed).hashBytes(input));
H A DAbstractStreamingHasherTest.java252 public HashCode hashBytes(byte[] input) { method in class:AbstractStreamingHasherTest.Control
257 public HashCode hashBytes(byte[] input, int off, int len) { method in class:AbstractStreamingHasherTest.Control
258 return hashBytes(Arrays.copyOfRange(input, off, off + len));
H A DHashingInputStreamTest.java117 HashCode expectedHash = Hashing.md5().hashBytes(testBytes);
128 HashCode expectedHash = Hashing.md5().hashBytes(testBytes);
140 HashCode expectedHash = Hashing.md5().hashBytes(new byte[] {'m', 's'});
H A DCrc32cHashFunctionTest.java96 int actualCrc = Hashing.crc32c().hashBytes(data).asInt();
H A DHashingOutputStreamTest.java82 HashCode expectedHash = Hashing.md5().hashBytes(buf);
H A DHashCodeTest.java374 byte[] hashBytes = hashCode.asBytes();
381 assertTrue(Arrays.equals(Arrays.copyOf(hashBytes, bytes), bb));
H A DHashingTest.java358 Hashing.md5().hashBytes(Ints.toByteArray(input)),
/external/guava/guava-tests/benchmark/com/google/common/hash/
H A DHashFunctionBenchmark.java58 result ^= hashFunction.hashBytes(testBytes).asBytes()[0];
H A DChecksumBenchmark.java91 result ^= hashFunction.hashBytes(testBytes).asBytes()[0];
H A DMessageDigestAlgorithmBenchmark.java57 return algorithm.getHashFunction().hashBytes(input).asBytes();
/external/guava/guava-tests/test/com/google/common/io/
H A DByteSourceTester.java189 HashCode expectedHash = Hashing.md5().hashBytes(expected);
/external/guava/guava/src/com/google/common/io/
H A DByteSource.java537 return hashFunction.hashBytes(bytes);
/external/conscrypt/common/src/jni/main/cpp/
H A DNativeCrypto.cpp2192 ScopedByteArrayRW hashBytes(env, hash);
2193 if (hashBytes.get() == nullptr) {
2198 reinterpret_cast<unsigned char*>(hashBytes.get() + offset),
/external/guice/lib/
H A Dguava-16.0.1.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META-INF/maven/com. ...
/external/jacoco/
H A Dasm-debug-all-5.0.1.jarMETA-INF/MANIFEST.MF org/ org/objectweb/ org/objectweb/asm/ org/objectweb/asm/AnnotationVisitor.class AnnotationVisitor ...
/external/owasp/sanitizer/distrib/lib/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ...
/external/owasp/sanitizer/lib/guava-libraries/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ...

Completed in 2971 milliseconds

12