Does anyone know any good hash functions with the following property:
Given buffers
buf1
andbuf2
of bytes of lengthn
andm
with hashesA
andB
.Compute in constant time the hash of the concatenation of the data in
buf1
andbuf2
givenn
,m
,A
,B
.
In other words, I can piece the hash of the whole thing from its parts without having to reread any parts of the data more than once.