Lines Matching refs:hash
49 __slots__ = ["hash", "hash_alg", "sig_alg", "cert_ident",
59 self.hash = None
76 # If there's a hash, then there's a certificate to deliver
78 if not self.hash:
101 # given hash or compressed hash attribute to a list of the hash
144 # cert, so get the preferred chain hash value from the
162 # Remove any unused hash attributes.
202 # of pkg.chain.<hash alg>, so there's no need to look for
203 # other hash attributes here.
255 # "hash" is special since it shouldn't appear in
258 if "hash" in tmp_a.attrs:
259 tmp_a.hash = tmp_a.attrs["hash"]
260 del tmp_a.attrs["hash"]
262 # The use of self.hash here is just to point to a
263 # filename, the type of hash used for self.hash is
264 # irrelevant. Note that our use of self.hash for the
268 os.path.basename(self.hash), self.hash, data, size,
274 elif self.hash:
275 tmp_a.hash = self.hash
347 repository, we use the "least preferred" hash for backwards
349 "most preferred" hash."""
381 of simply being a hash. Since variant tagged signature
385 return self.hash is not None and not self.get_variant_template()
423 # hash algorithm, we can't handle it yet.
430 # If self.hash is None, then the signature is storing a hash
432 if self.hash is None:
446 # Verify a signature that's not just a hash.
509 # If key_path is None, then set value to be the hash
547 if self.hash is not None:
548 res.append((self.name, "certificate", self.hash,
549 self.hash))
555 # We already have an index entry for self.hash;
556 # we only want hash attributes other than "hash".
557 hash = self.attrs.get(attr)
558 if attr != "hash" and hash is not None:
559 res.append((self.name, attr, hash, None))
571 # Determine if we share any hash attribute values with the other
575 if attr == "hash":
576 # we deal with the 'hash' member later
583 # Technically 'hsh' isn't a hash attr, it's
584 # a hash attr value, but that's enough for us
588 if hsh == other.hash or self.hash == other.hash or \