Also added extra checks to the manifest to reflect the possibility of choosing another hash algorithm.