Uses of Interface
com.google.common.hash.HashFunction
-
Packages that use HashFunction Package Description com.google.common.hash Hash functions and related structures.com.google.common.io This package contains utility methods and classes for working with Java I/O; for example input streams, output streams, readers, writers, and files. -
-
Uses of HashFunction in com.google.common.hash
Classes in com.google.common.hash that implement HashFunction Modifier and Type Class Description (package private) classAbstractCompositeHashFunctionAn abstract composition of multiple hash functions.(package private) classAbstractHashFunctionSkeleton implementation ofHashFunctionin terms ofnewHasher().(package private) classAbstractNonStreamingHashFunctionSkeleton implementation ofHashFunction, appropriate for non-streaming algorithms.(package private) classChecksumHashFunctionHashFunctionadapter forChecksuminstances.(package private) classCrc32cHashFunctionThis class generates a CRC32C checksum, defined by RFC 3720, Section 12.1.(package private) classFarmHashFingerprint64Implementation of FarmHash Fingerprint64, an open-source fingerprinting algorithm for strings.private static classHashing.ConcatenatedHashFunction(package private) classMacHashFunctionHashFunctionadapter forMacinstances.(package private) classMessageDigestHashFunctionHashFunctionadapter forMessageDigestinstances.(package private) classMurmur3_128HashFunctionSee MurmurHash3_x64_128 in the C++ implementation.(package private) classMurmur3_32HashFunctionSee MurmurHash3_x86_32 in the C++ implementation.(package private) classSipHashFunctionHashFunctionimplementation of SipHash-c-d.Fields in com.google.common.hash declared as HashFunction Modifier and Type Field Description (package private) static HashFunctionCrc32cHashFunction. CRC_32_C(package private) static HashFunctionFarmHashFingerprint64. FARMHASH_FINGERPRINT_64(package private) HashFunction[]AbstractCompositeHashFunction. functions(package private) static HashFunctionMurmur3_128HashFunction. GOOD_FAST_HASH_128(package private) static HashFunctionMurmur3_32HashFunction. GOOD_FAST_HASH_32HashFunctionHashing.ChecksumType. hashFunction(package private) static HashFunctionHashing.Md5Holder. MD5(package private) static HashFunctionMurmur3_128HashFunction. MURMUR3_128(package private) static HashFunctionMurmur3_32HashFunction. MURMUR3_32(package private) static HashFunctionHashing.Sha1Holder. SHA_1(package private) static HashFunctionHashing.Sha256Holder. SHA_256(package private) static HashFunctionHashing.Sha384Holder. SHA_384(package private) static HashFunctionHashing.Sha512Holder. SHA_512(package private) static HashFunctionSipHashFunction. SIP_HASH_24Methods in com.google.common.hash that return HashFunction Modifier and Type Method Description static HashFunctionHashing. adler32()Returns a hash function implementing the Adler-32 checksum algorithm (32 hash bits).static HashFunctionHashing. concatenating(HashFunction first, HashFunction second, HashFunction... rest)Returns a hash function which computes its hash code by concatenating the hash codes of the underlying hash functions together.static HashFunctionHashing. concatenating(java.lang.Iterable<HashFunction> hashFunctions)Returns a hash function which computes its hash code by concatenating the hash codes of the underlying hash functions together.static HashFunctionHashing. crc32()Returns a hash function implementing the CRC-32 checksum algorithm (32 hash bits).static HashFunctionHashing. crc32c()Returns a hash function implementing the CRC32C checksum algorithm (32 hash bits) as described by RFC 3720, Section 12.1.static HashFunctionHashing. farmHashFingerprint64()Returns a hash function implementing FarmHash's Fingerprint64, an open-source algorithm.static HashFunctionHashing. goodFastHash(int minimumBits)Returns a general-purpose, temporary-use, non-cryptographic hash function.static HashFunctionHashing. hmacMd5(byte[] key)Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the MD5 (128 hash bits) hash function and aSecretKeySpeccreated from the given byte array and the MD5 algorithm.static HashFunctionHashing. hmacMd5(java.security.Key key)Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the MD5 (128 hash bits) hash function and the given secret key.static HashFunctionHashing. hmacSha1(byte[] key)Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the SHA-1 (160 hash bits) hash function and aSecretKeySpeccreated from the given byte array and the SHA-1 algorithm.static HashFunctionHashing. hmacSha1(java.security.Key key)Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the SHA-1 (160 hash bits) hash function and the given secret key.static HashFunctionHashing. hmacSha256(byte[] key)Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the SHA-256 (256 hash bits) hash function and aSecretKeySpeccreated from the given byte array and the SHA-256 algorithm.static HashFunctionHashing. hmacSha256(java.security.Key key)Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the SHA-256 (256 hash bits) hash function and the given secret key.static HashFunctionHashing. hmacSha512(byte[] key)Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the SHA-512 (512 hash bits) hash function and aSecretKeySpeccreated from the given byte array and the SHA-512 algorithm.static HashFunctionHashing. hmacSha512(java.security.Key key)Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the SHA-512 (512 hash bits) hash function and the given secret key.static HashFunctionHashing. md5()Deprecated.If you must interoperate with a system that requires MD5, then use this method, despite its deprecation.static HashFunctionHashing. murmur3_128()Returns a hash function implementing the 128-bit murmur3 algorithm, x64 variant (little-endian variant), using a seed value of zero.static HashFunctionHashing. murmur3_128(int seed)Returns a hash function implementing the 128-bit murmur3 algorithm, x64 variant (little-endian variant), using the given seed value.static HashFunctionHashing. murmur3_32()Returns a hash function implementing the 32-bit murmur3 algorithm, x86 variant (little-endian variant), using a seed value of zero.static HashFunctionHashing. murmur3_32(int seed)Returns a hash function implementing the 32-bit murmur3 algorithm, x86 variant (little-endian variant), using the given seed value.static HashFunctionHashing. sha1()Deprecated.If you must interoperate with a system that requires SHA-1, then use this method, despite its deprecation.static HashFunctionHashing. sha256()Returns a hash function implementing the SHA-256 algorithm (256 hash bits).static HashFunctionHashing. sha384()Returns a hash function implementing the SHA-384 algorithm (384 hash bits).static HashFunctionHashing. sha512()Returns a hash function implementing the SHA-512 algorithm (512 hash bits).static HashFunctionHashing. sipHash24()Returns a hash function implementing the 64-bit SipHash-2-4 algorithm using a seed value ofk = 00 01 02 ....static HashFunctionHashing. sipHash24(long k0, long k1)Returns a hash function implementing the 64-bit SipHash-2-4 algorithm using the given seed.Methods in com.google.common.hash with parameters of type HashFunction Modifier and Type Method Description static HashFunctionHashing. concatenating(HashFunction first, HashFunction second, HashFunction... rest)Returns a hash function which computes its hash code by concatenating the hash codes of the underlying hash functions together.Method parameters in com.google.common.hash with type arguments of type HashFunction Modifier and Type Method Description static HashFunctionHashing. concatenating(java.lang.Iterable<HashFunction> hashFunctions)Returns a hash function which computes its hash code by concatenating the hash codes of the underlying hash functions together.Constructors in com.google.common.hash with parameters of type HashFunction Constructor Description AbstractCompositeHashFunction(HashFunction... functions)ConcatenatedHashFunction(HashFunction... functions)HashingInputStream(HashFunction hashFunction, java.io.InputStream in)Creates an input stream that hashes using the givenHashFunctionand delegates all data read from it to the underlyingInputStream.HashingOutputStream(HashFunction hashFunction, java.io.OutputStream out)Creates an output stream that hashes using the givenHashFunction, and forwards all data written to it to the underlyingOutputStream. -
Uses of HashFunction in com.google.common.io
Methods in com.google.common.io with parameters of type HashFunction Modifier and Type Method Description HashCodeByteSource.ByteArrayByteSource. hash(HashFunction hashFunction)HashCodeByteSource. hash(HashFunction hashFunction)Hashes the contents of this byte source using the given hash function.static HashCodeFiles. hash(java.io.File file, HashFunction hashFunction)Deprecated.PreferasByteSource(file).hash(hashFunction).
-