- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 40 for HashFunction (0.15 sec)
-
android/guava-tests/test/com/google/common/hash/HashFunctionEnum.java
// These can probably be removed sooner or later. ; private final HashFunction hashFunction; private HashFunctionEnum(HashFunction hashFunction) { this.hashFunction = hashFunction; } HashFunction getHashFunction() { return hashFunction; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 08 13:56:22 UTC 2021 - 1.7K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Files.java
imports = "com.google.common.io.Files") public static HashCode hash(File file, HashFunction hashFunction) throws IOException { return asByteSource(file).hash(hashFunction); } /** * Fully maps a file read-only in to memory as per {@link * FileChannel#map(java.nio.channels.FileChannel.MapMode, long, long)}. * * <p>Files are mapped from offset 0 to its length.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jul 22 19:03:12 UTC 2024 - 33.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java
SHA_256("SHA-256", Hashing.sha256()), SHA_384("SHA-384", Hashing.sha384()), SHA_512("SHA-512", Hashing.sha512()); private final String algorithmName; private final HashFunction hashFn; Algorithm(String algorithmName, HashFunction hashFn) { this.algorithmName = algorithmName; this.hashFn = hashFn; } public MessageDigest getMessageDigest() { try {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 3.5K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java
SHA_256("SHA-256", Hashing.sha256()), SHA_384("SHA-384", Hashing.sha384()), SHA_512("SHA-512", Hashing.sha512()); private final String algorithmName; private final HashFunction hashFn; Algorithm(String algorithmName, HashFunction hashFn) { this.algorithmName = algorithmName; this.hashFn = hashFn; } public MessageDigest getMessageDigest() { try {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 3.5K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java
result = (byte) (result ^ checksum.asLong()); } return result; } // Helpers + main private byte runHashFunction(int reps, HashFunction hashFunction) { byte result = 0x01; // Trick the JVM to prevent it from using the hash function non-polymorphically result ^= Hashing.crc32().hashInt(reps).asBytes()[0];
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 16:53:43 UTC 2024 - 3.4K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/HashingOutputStream.java
// be (optionally) be combined with another if needed (with something like // MultiplexingOutputStream). public HashingOutputStream(HashFunction hashFunction, OutputStream out) { super(checkNotNull(out)); this.hasher = checkNotNull(hashFunction.newHasher()); } @Override public void write(int b) throws IOException { hasher.putByte((byte) b); out.write(b); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 11 22:00:03 UTC 2024 - 2.6K bytes - Viewed (0) -
guava/src/com/google/common/hash/Murmur3_32HashFunction.java
*/ @Immutable @ElementTypesAreNonnullByDefault final class Murmur3_32HashFunction extends AbstractHashFunction implements Serializable { static final HashFunction MURMUR3_32 = new Murmur3_32HashFunction(0, /* supplementaryPlaneFix= */ false); static final HashFunction MURMUR3_32_FIXED = new Murmur3_32HashFunction(0, /* supplementaryPlaneFix= */ true);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Aug 02 13:50:22 UTC 2024 - 11.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
// From http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Mac private static final ImmutableTable<String, SecretKey, HashFunction> ALGORITHMS = new ImmutableTable.Builder<String, SecretKey, HashFunction>() .put("HmacMD5", MD5_KEY, Hashing.hmacMd5(MD5_KEY)) .put("HmacSHA1", SHA1_KEY, Hashing.hmacSha1(SHA1_KEY))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 13.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java
// - For example, the "SHA-1" algorithm might be referred to as "SHA1". // - The algorithm name is not case-sensitive. private static final ImmutableMap<String, HashFunction> ALGORITHMS = new ImmutableMap.Builder<String, HashFunction>() .put("MD5", Hashing.md5()) .put("SHA", Hashing.sha1()) // Not the official name, but still works
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 4.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java
byte[] bytes = HashTestUtils.ascii(input); Checksum checksum = supplier.get(); checksum.update(bytes, 0, bytes.length); long value = checksum.getValue(); String toString = "name"; HashFunction func = new ChecksumHashFunction(supplier, 32, toString); assertEquals(toString, func.toString()); assertEquals(value, func.hashBytes(bytes).padToLong()); } private static void assertHash32(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 30 14:33:12 UTC 2018 - 3.1K bytes - Viewed (0)