Documentation ¶
Overview ¶
Package hashmerge provides functionality for merging hashes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineAdler32 ¶
CombineAdler32 combines two Adler-32 checksums together. Let AB be the string concatenation of two strings A and B. Then Combine computes the checksum of AB given only the checksum of A, the checksum of B, and the length of B:
adler32.Checksum(AB) == CombineAdler32(adler32.Checksum(A), adler32.Checksum(B), len(B))
func CombineCRC32 ¶
CombineCRC32 combines two CRC-32 checksums together. Let AB be the string concatenation of two strings A and B. Then Combine computes the checksum of AB given only the checksum of A, the checksum of B, and the length of B:
tab := crc32.MakeTable(poly) crc32.Checksum(AB, tab) == CombineCRC32(poly, crc32.Checksum(A, tab), crc32.Checksum(B, tab), len(B))
func CombineCRC64 ¶
CombineCRC64 combines two CRC-64 checksums together. Let AB be the string concatenation of two strings A and B. Then Combine computes the checksum of AB given only the checksum of A, the checksum of B, and the length of B:
tab := crc64.MakeTable(poly) crc64.Checksum(AB, tab) == CombineCRC64(poly, crc64.Checksum(A, tab), crc64.Checksum(B, tab), len(B))
Types ¶
This section is empty.