Re-apply JtR-Dynamic_validation_raw_hashes-2.patch but with some missing
stuff added.