docs: def add_jar_entries(self, jar_file, digest_name="SHA-256"):
          """
          Add manifest sections for all but signature-related entries
          of :param jar_file.
          :param digest_name The digest algorithm to use
          :return None
          TODO: join code with cli_create
          """
  
          key_digest = digest_name + "-Digest"
          digest = _get_digest(digest_name)
  
          with ZipFile(jar_file, 'r') as jar:
              for entry in jar.namelist():
                  if file_skips_verification(entry):
                      continue
                  section = self.create_section(entry)
                  section[key_digest] = b64_encoded_digest(jar.read(entry),
                                                           digest)