- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 31 for hashFunctions (0.1 seconds)
-
android/guava/src/com/google/common/hash/Hashing.java
* * @since 19.0 */ public static HashFunction concatenating(Iterable<HashFunction> hashFunctions) { checkNotNull(hashFunctions); // We can't use Iterables.toArray() here because there's no hash->collect dependency List<HashFunction> list = new ArrayList<>(); for (HashFunction hashFunction : hashFunctions) { list.add(hashFunction); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 29.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java
import org.jspecify.annotations.NullUnmarked; /** Tests for AbstractNonStreamingHashFunction. */ @NullUnmarked public class AbstractNonStreamingHashFunctionTest extends TestCase { /** * Constructs two trivial HashFunctions (output := input), one streaming and one non-streaming, * and checks that their results are identical, no matter which newHasher version we used. */ public void testExhaustive() { List<Hasher> hashers =Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4.5K bytes - Click Count (0) -
LICENSE
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Two classes (HashFunctions and PrimeFinder) included in Trove are licensed under the following terms: Copyright (c) 1999 CERN - European Organization for Nuclear Research. Permission to use, copy, modify, distribute and sell this software
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed May 07 12:40:53 GMT 2025 - 23.1K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/HashFunction.java
* * @author Kevin Bourrillion * @since 11.0 */ @Immutable public interface HashFunction { /** * Begins a new hash code computation by returning an initialized, stateful {@code Hasher} * instance that is ready to receive data. Example: * * {@snippet : * HashFunction hf = Hashing.md5(); * HashCode hc = hf.newHasher() * .putLong(id) * .putBoolean(isActive)Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 10.9K bytes - Click Count (0) -
guava/src/com/google/common/hash/HashFunction.java
* * @author Kevin Bourrillion * @since 11.0 */ @Immutable public interface HashFunction { /** * Begins a new hash code computation by returning an initialized, stateful {@code Hasher} * instance that is ready to receive data. Example: * * {@snippet : * HashFunction hf = Hashing.md5(); * HashCode hc = hf.newHasher() * .putLong(id) * .putBoolean(isActive)Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 10.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/HashTestUtils.java
assertHashByteBufferMatchesBytes(hashFunction); assertHashByteBufferExhaustsBuffer(hashFunction); assertHashByteBufferPreservesByteOrder(hashFunction); assertHasherByteBufferPreservesByteOrder(hashFunction); } static void assertHashByteBufferMatchesBytes(HashFunction hashFunction) { Random rng = new Random(0L);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 25.6K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/hash/HashFunctionBenchmark.java
} @Benchmark int hasher(int reps) { HashFunction hashFunction = hashFunctionEnum.getHashFunction(); int result = 37; for (int i = 0; i < reps; i++) { result ^= hashFunction.newHasher().putBytes(testBytes).hash().asBytes()[0]; } return result; } @Benchmark int hashFunction(int reps) { HashFunction hashFunction = hashFunctionEnum.getHashFunction(); int result = 37;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.4K bytes - Click Count (0) -
android/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))
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 27 16:19:35 GMT 2024 - 13.8K bytes - Click Count (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; } MessageDigest getMessageDigest() { try {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 3.5K bytes - Click Count (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; } MessageDigest getMessageDigest() { try {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 3.5K bytes - Click Count (0)