HomeSort by relevance Sort by last modified time
    Searched refs:Hashing (Results 1 - 25 of 117) sorted by null

1 2 3 4 5

  /external/guava/guava-tests/test/com/google/common/hash/
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...]
HashingTest.java 19 import static com.google.common.hash.Hashing.ConcatenatedHashFunction;
20 import static com.google.common.hash.Hashing.goodFastHash;
42 * Unit tests for {@link Hashing}.
49 HashTestUtils.checkAvalanche(Hashing.md5(), 100, 0.4);
50 HashTestUtils.checkNo2BitCharacteristics(Hashing.md5());
51 HashTestUtils.checkNoFunnels(Hashing.md5());
52 HashTestUtils.assertInvariants(Hashing.md5());
53 assertEquals("Hashing.md5()", Hashing.md5().toString());
57 HashTestUtils.checkAvalanche(Hashing.sha1(), 100, 0.4)
    [all...]
MessageDigestHashFunctionTest.java 44 .put("MD5", Hashing.md5())
45 .put("SHA", Hashing.sha1()) // Not the official name, but still works
46 .put("SHA1", Hashing.sha1()) // Not the official name, but still works
47 .put("sHa-1", Hashing.sha1()) // Not the official name, but still works
48 .put("SHA-1", Hashing.sha1())
49 .put("SHA-256", Hashing.sha256())
50 .put("SHA-512", Hashing.sha512())
62 Hasher sha1 = Hashing.sha1().newHasher();
76 Hasher sha1 = Hashing.sha1().newHasher();
90 assertEquals("Hashing.md5()", Hashing.md5().toString())
    [all...]
HashingInputStreamTest.java 117 HashCode expectedHash = Hashing.md5().hashBytes(testBytes);
118 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer);
128 HashCode expectedHash = Hashing.md5().hashBytes(testBytes);
129 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer);
140 HashCode expectedHash = Hashing.md5().hashBytes(new byte[] {'m', 's'});
141 HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer);
156 tester.testAllPublicInstanceMethods(new HashingInputStream(Hashing.md5(), buffer));
HashingOutputStreamTest.java 82 HashCode expectedHash = Hashing.md5().hashBytes(buf);
83 HashingOutputStream out = new HashingOutputStream(Hashing.md5(), buffer);
93 new HashingOutputStream(Hashing.md5(), new ByteArrayOutputStream()));
SipHashFunctionTest.java 34 private static final HashFunction SIP_WITH_KEY = Hashing.sipHash24(K0, K1);
35 private static final HashFunction SIP_WITHOUT_KEY = Hashing.sipHash24();
124 assertEquals(0xa129ca6149be45e5L, Hashing.sipHash24(k0, k1).hashBytes(message).asLong());
159 assertEquals("Hashing.sipHash24(" + K0 + ", " + K1 + ")", SIP_WITH_KEY.toString());
160 assertEquals("Hashing.sipHash24(" + K0 + ", " + K1 + ")", SIP_WITHOUT_KEY.toString());
161 assertEquals("Hashing.sipHash24(20, 13)", Hashing.sipHash24(20, 13).toString());
ChecksumHashFunctionTest.java 17 import static com.google.common.hash.Hashing.ChecksumType.ADLER_32;
18 import static com.google.common.hash.Hashing.ChecksumType.CRC_32;
Murmur3Hash32Test.java 19 import static com.google.common.hash.Hashing.murmur3_32;
Murmur3Hash128Test.java 19 import static com.google.common.hash.Hashing.murmur3_128;
Crc32cHashFunctionTest.java 96 int actualCrc = Hashing.crc32c().hashBytes(data).asInt();
  /external/caliper/caliper/src/main/java/com/google/caliper/model/
PersistentHashing.java 20 import com.google.common.hash.Hashing;
29 return Hashing.murmur3_32();
  /libcore/ojluni/src/main/java/sun/misc/
Hashing.java 30 * Hashing utilities.
32 * Little endian implementations of Murmur3 hashing.
34 public class Hashing {
39 private Hashing() {
  /external/guava/guava-tests/benchmark/com/google/common/hash/
ChecksumBenchmark.java 54 return runHashFunction(reps, Hashing.crc32());
70 return runHashFunction(reps, Hashing.adler32());
88 result ^= Hashing.crc32().hashInt(reps).asBytes()[0];
89 result ^= Hashing.adler32().hashInt(reps).asBytes()[0];
MessageDigestAlgorithmBenchmark.java 23 import com.google.common.hash.Hashing;
37 * <li>hashMethod: how to hash the data (using the Hashing API or the MessageDigest API).
64 MD5("MD5", Hashing.md5()),
65 SHA_1("SHA-1", Hashing.sha1()),
66 SHA_256("SHA-256", Hashing.sha256()),
67 SHA_512("SHA-512", Hashing.sha512());
97 @Benchmark byte hashing(int reps) { method in class:MessageDigestAlgorithmBenchmark
  /external/guava/guava/src/com/google/common/collect/
Hashing.java 32 final class Hashing {
33 private Hashing() {}
RegularImmutableMap.java 55 int tableSize = Hashing.closedTableSize(size, MAX_LOAD_FACTOR);
62 int tableIndex = Hashing.smear(key.hashCode()) & mask;
80 int tableSize = Hashing.closedTableSize(size, MAX_LOAD_FACTOR);
89 int tableIndex = Hashing.smear(key.hashCode()) & mask;
155 int index = Hashing.smear(key.hashCode()) & mask;
RegularImmutableBiMap.java 56 int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR);
71 int keyBucket = Hashing.smear(keyHash) & mask;
72 int valueBucket = Hashing.smear(valueHash) & mask;
105 int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR);
120 int keyBucket = Hashing.smear(keyHash) & mask;
121 int valueBucket = Hashing.smear(valueHash) & mask;
192 int bucket = Hashing.smear(key.hashCode()) & mask;
267 int bucket = Hashing.smear(value.hashCode()) & mask;
RegularImmutableSet.java 49 for (int i = Hashing.smear(target.hashCode()); true; i++) {
  /external/guava/guava/src/com/google/common/hash/
BloomFilterStrategies.java 40 * See "Less Hashing, Same Performance: Building a Better Bloom Filter" by Adam Kirsch and
48 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong();
67 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong();
85 * This strategy uses all 128 bits of {@link Hashing#murmur3_128} when hashing. It looks
95 byte[] bytes = Hashing.murmur3_128().hashObject(object, funnel).getBytesInternal();
113 byte[] bytes = Hashing.murmur3_128().hashObject(object, funnel).getBytesInternal();
Hashing.java 32 * Static methods to obtain {@link HashFunction} instances, and other static hashing-related
44 public final class Hashing {
50 * Hashing} class is loaded. <b>Do not use this method</b> if hash codes may escape the current
53 * <p>Repeated calls to this method on the same loaded {@code Hashing} class, using the same value
186 static final HashFunction MD5 = new MessageDigestHashFunction("MD5", "Hashing.md5()");
199 new MessageDigestHashFunction("SHA-1", "Hashing.sha1()");
212 new MessageDigestHashFunction("SHA-256", "Hashing.sha256()");
225 new MessageDigestHashFunction("SHA-512", "Hashing.sha512()");
257 checksumHashFunction(ChecksumType.CRC_32, "Hashing.crc32()");
275 checksumHashFunction(ChecksumType.ADLER_32, "Hashing.adler32()")
    [all...]
  /external/guava/guava-tests/test/com/google/common/io/
ByteSourceTester.java 26 import com.google.common.hash.Hashing;
189 HashCode expectedHash = Hashing.md5().hashBytes(expected);
190 assertEquals(expectedHash, source.hash(Hashing.md5()));
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
LinkedHashMultimap.java 320 int tableSize = Hashing.closedTableSize(expectedValues, VALUE_SET_LOAD_FACTOR);
400 int smearedHash = Hashing.smearedHash(o);
412 int smearedHash = Hashing.smearedHash(value);
435 if (Hashing.needsResizing(size, hashTable.length, VALUE_SET_LOAD_FACTOR)) {
452 int smearedHash = Hashing.smearedHash(o);
  /external/llvm/lib/Support/
Android.mk 34 Hashing.cpp \
  /prebuilts/go/darwin-x86/src/runtime/
hash32.go 5 // Hashing algorithm inspired by
hash64.go 5 // Hashing algorithm inspired by

Completed in 698 milliseconds

1 2 3 4 5