Write hash type into hashfile header, check against what hash we were
compiled with.

Signed-off-by: Mark Fasheh <mfasheh@suse.de>