/pkg/src/modules/ |
H A D | sha512_t.py | 38 methods update(arg), digest() and hexdigest(), and an attribute hash_size. 47 #>>> a.digest() 82 def digest(self): member in class:SHA512_t 83 """Return the digest of the strings passed to the update() 86 digest = ffi.new("unsigned char[]", self.hash_size // 8) 91 lib.SHA512_t_Final(digest, shc) 93 return b"".join(six.int2byte(i) for i in digest) 96 """Return hexadecimal digest of the strings passed to the update() 101 return binary_to_hex(self.digest())
|
H A D | p5s.py | 34 import pkg.digest as digest namespace 192 digest.DEFAULT_HASH_FUNC(
|
H A D | p5p.py | 41 import pkg.digest as digest namespace 687 digest.get_least_preferred_hash(a)
|
H A D | misc.py | 74 import pkg.digest as digest namespace 410 shasums.append(digest.HASH_ALGS[f]()) 708 chash_attrs = digest.DEFAULT_CHASH_ATTRS 710 chash_algs = digest.CHASH_ALGS 720 digest.EXTRACT_GZIP, digest.PREFERRED_HASH)]() 764 digest.EXTRACT_GZIP, digest.PREFERRED_HASH, 792 digest [all...] |
/pkg/src/modules/actions/ |
H A D | license.py | 39 import pkg.digest as digest namespace 98 digest.get_preferred_hash(self) 144 digest.get_preferred_hash(self) 184 for attr in digest.DEFAULT_HASH_ATTRS: 204 digest.get_least_preferred_hash(self)
|
H A D | file.py | 45 import pkg.digest as digest namespace 107 digest.get_least_preferred_hash(self) 231 digest.get_preferred_hash(self) 388 not set(digest.DEFAULT_GELF_HASH_ATTRS).intersection( 415 digest.get_preferred_hash(self, 416 hash_type=pkg.digest.HASH_GELF) 433 digest.GELF_HASH_ALGS["gelf:sha256"]) 436 digest.GELF_HASH_ALGS["gelf:sha512t_256"]) 446 elfhash = list(digest [all...] |
H A D | signature.py | 40 import pkg.digest as digest namespace 108 for attr in digest.DEFAULT_CHAIN_ATTRS: 110 for attr in digest.DEFAULT_CHAIN_CHASH_ATTRS: 137 hash_attrs=digest.DEFAULT_CHAIN_ATTRS, 138 hash_algs=digest.CHAIN_ALGS) 146 alg = digest.PREFERRED_HASH 155 chash_attrs=digest.DEFAULT_CHAIN_CHASH_ATTRS, 156 chash_algs=digest.CHAIN_CHASH_ALGS) 175 for attr in digest [all...] |
H A D | generic.py | 47 import pkg.digest as digest namespace 468 hash_type = digest.HASH 479 hash_type = digest.HASH_GELF 491 hash_type = digest.HASH_GELF 493 # digest.get_common_preferred_hash() tries to return the 501 digest.get_common_preferred_hash( 523 a for a in sattrs if not digest.is_hash_attr(a)) 525 a for a in oattrs if not digest.is_hash_attr(a))
|
/pkg/src/tests/api/ |
H A D | t_p5p.py | 39 import pkg.digest as digest namespace 644 hash_func = digest.get_least_preferred_hash(None)[2]
|
H A D | t_action.py | 39 import pkg.digest namespace
|
H A D | t_manifest.py | 37 import pkg.digest as digest namespace 463 hash_func=digest.DEFAULT_HASH_FUNC), 465 hash_func=digest.DEFAULT_HASH_FUNC))
|
/pkg/src/modules/server/ |
H A D | transaction.py | 40 import pkg.digest as digest namespace 476 hash_attrs=digest.LEGACY_HASH_ATTRS, 477 hash_algs=digest.HASH_ALGS) 487 digest.get_least_preferred_hash(action) 513 digest.LEGACY_CONTENT_HASH_ATTRS: 638 return_content=True, hash_attrs=digest.DEFAULT_HASH_ATTRS, 639 hash_algs=digest.HASH_ALGS) 647 default_hash_attr = digest.get_least_preferred_hash( 661 chash_attrs=digest [all...] |
H A D | repository.py | 51 import pkg.digest as digest namespace 1508 digest.get_least_preferred_hash(a) 1884 for hash in digest.DEFAULT_HASH_ATTRS: 1960 digest.get_least_preferred_hash(a) 1962 digest.get_preferred_hash(a) 1969 digest.get_least_preferred_hash(a, 1970 hash_type=digest.CHAIN) 1972 digest.get_preferred_hash(a, 1973 hash_type=digest [all...] |
/pkg/src/ |
H A D | sign.py | 50 import pkg.digest as digest namespace 223 reload(digest)
|
H A D | sysrepo.py | 56 import pkg.digest as digest namespace 770 return digest.DEFAULT_HASH_FUNC(misc.force_bytes(uri)).hexdigest()
|
/pkg/src/tests/cli/ |
H A D | t_pkgsurf.py | 33 import pkg.digest as digest namespace 624 # rebuild repo catalog since manifest digest changed 701 hash_func=digest.DEFAULT_HASH_FUNC), 703 hash_func=digest.DEFAULT_HASH_FUNC))
|
H A D | t_pkg_sysrepo.py | 40 import pkg.digest as digest namespace 861 hash1 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" + 863 hash3 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" + 1373 hash1 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" + 1375 hash2 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" + 1377 hash3 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" + 1432 hash1 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" + 1434 hash2 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" + 1436 hash3 = digest [all...] |
H A D | t_pkgsign.py | 47 import pkg.digest as digest namespace 3023 alg = digest.HASH_ALGS["hash"] 3074 for attr in digest.DEFAULT_HASH_ATTRS: 3077 alg = digest.HASH_ALGS[attr]
|
H A D | t_pkg_install.py | 52 import pkg.digest as digest namespace 3281 # rebuild repo catalog since manifest digest changed 4977 # rebuild repo catalog since manifest digest changed 4995 # rebuild repo catalog since manifest digest changed
|
/pkg/src/modules/publish/ |
H A D | transaction.py | 40 import pkg.digest as digest namespace 345 digest.DEFAULT_GELF_HASH_ATTRS) 347 not digest.sha512_supported and 349 digest.DEFAULT_GELF_HASH_ATTRS) 351 digest.sha512_supported and 353 digest.DEFAULT_GELF_HASH_ATTRS) 390 for k in digest.DEFAULT_CHASH_ATTRS: 429 hash_attrs=digest.DEFAULT_HASH_ATTRS, 430 hash_algs=digest [all...] |
/pkg/src/modules/client/ |
H A D | publisher.py | 66 import pkg.digest as digest namespace 1728 # A digest of the URI string is used here to attempt to avoid 2196 # successful, but the identity (digest or other 2391 only_retrieve=False, hash_func=digest.DEFAULT_HASH_FUNC):
|
H A D | imageplan.py | 62 import pkg.digest as digest namespace 3441 digest.get_common_preferred_hash(dest, orig) 3586 digest.get_least_preferred_hash(act)
|
/pkg/src/modules/client/transport/ |
H A D | transport.py | 55 import pkg.digest as digest namespace 2640 digest.get_least_preferred_hash(action) 2711 chash_attr, chash, chash_func = digest.get_preferred_hash( 2712 action, hash_type=digest.CHASH) 2753 digest.get_preferred_hash(action, 2754 hash_type=digest.HASH) 3426 digest.get_least_preferred_hash(action) 3529 digest.get_least_preferred_hash(action)
|