summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-10-01 07:40:53 +0000
committerZac Medico <zmedico@gentoo.org>2011-10-01 22:37:06 -0700
commit8ac29097395f24ad331602d8e87fdf105ebd972b (patch)
treeca4f6f3285eb66ae9a5629dbc98d0b09b10ce3b7
parentf3b05d6eed63e19cdfa7f645cf0190ee8019dd90 (diff)
downloadportage-8ac29097395f24ad331602d8e87fdf105ebd972b.tar.gz
portage-8ac29097395f24ad331602d8e87fdf105ebd972b.tar.bz2
portage-8ac29097395f24ad331602d8e87fdf105ebd972b.zip
Manifest2 hash: SHA512
Provide SHA512 hash algorithm to be used as new Manifest2 hash. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--pym/portage/checksum.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py
index a4cf8de3c..6bace4d6a 100644
--- a/pym/portage/checksum.py
+++ b/pym/portage/checksum.py
@@ -96,6 +96,7 @@ try:
md5hash = _generate_hash_function("MD5", hashlib.md5, origin="hashlib")
sha1hash = _generate_hash_function("SHA1", hashlib.sha1, origin="hashlib")
sha256hash = _generate_hash_function("SHA256", hashlib.sha256, origin="hashlib")
+ sha512hash = _generate_hash_function("SHA512", hashlib.sha512, origin="hashlib")
for local_name, hash_name in (("rmd160", "ripemd160"), ("whirlpool", "whirlpool")):
try:
hashlib.new(hash_name)