This adds support for computing any hash over the update in the dtu area by providing a closure to the hash update function.