Searched refs:digest (Results 1 - 25 of 32) sorted by relevance

12

/pkg/src/modules/
H A Dsha512_t.py38 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 Dp5s.py34 import pkg.digest as digest namespace
192 digest.DEFAULT_HASH_FUNC(
H A Dmisc.py74 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...]
H A Dp5p.py41 import pkg.digest as digest namespace
687 digest.get_least_preferred_hash(a)
/pkg/src/modules/actions/
H A Dsignature.py40 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 Dfile.py45 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 Dlicense.py39 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 Dgeneric.py47 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 Dt_sha512_t.py74 # Test digest()
78 output = a.digest()
81 # Test the length of the output of digest()
82 output = len(sha512_t.SHA512_t(b"0.861687995815").digest())
84 output = len(sha512_t.SHA512_t(b"0.861687995815", 224).digest())
96 a.digest()
H A Dt_manifest.py37 import pkg.digest as digest namespace
463 hash_func=digest.DEFAULT_HASH_FUNC),
465 hash_func=digest.DEFAULT_HASH_FUNC))
H A Dt_p5p.py39 import pkg.digest as digest namespace
644 hash_func = digest.get_least_preferred_hash(None)[2]
H A Dt_action.py39 import pkg.digest namespace
/pkg/src/modules/publish/
H A Dtransaction.py40 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/server/
H A Dtransaction.py40 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 Drepository.py51 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 Dsign.py50 import pkg.digest as digest namespace
223 reload(digest)
H A Ddepot-config.py395 key_type=TYPE_RSA, key_bits=1024, digest="sha256"):
420 'digest' is the digestion method to use for signing.
452 cert.sign(issuerKey, digest)
456 cert.sign(key, digest)
H A Dsysrepo.py56 import pkg.digest as digest namespace
770 return digest.DEFAULT_HASH_FUNC(misc.force_bytes(uri)).hexdigest()
H A Ddepot.py528 reload(pkg.digest)
/pkg/src/tests/cli/
H A Dt_pkgsurf.py33 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 Dt_pkg_sysrepo.py40 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 Dt_pkgsend.py46 from pkg.digest import DEFAULT_HASH_FUNC
601 # [ type, mode, user, group, digest ] initially setting the digest to None
706 # compute a digest of the file we just created,
849 ftype, mode, user, group, digest = contents_dict[entry]
862 if digest:
870 self.assertEqual(digest, pkg5_digest,
871 "{0}: {1} != {2}, '{3}'".format(name, digest,
H A Dt_pkgsign.py47 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]
/pkg/src/modules/client/transport/
H A Dtransport.py55 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)
/pkg/src/modules/client/
H A Dpublisher.py66 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):

Completed in 288 milliseconds

12