From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R9uCn-0008C9-JQ for garchives@archives.gentoo.org; Sat, 01 Oct 2011 07:41:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7D7C821C0B0; Sat, 1 Oct 2011 07:41:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 015F921C09F for ; Sat, 1 Oct 2011 07:41:01 +0000 (UTC) Received: from grubbs.orbis-terrarum.net (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D20BE1B4026 for ; Sat, 1 Oct 2011 07:41:00 +0000 (UTC) Received: (qmail 5095 invoked by uid 0); 1 Oct 2011 07:40:59 -0000 From: "Robin H. Johnson" To: gentoo-portage-dev@lists.gentoo.org Subject: [gentoo-portage-dev] [GLEP59v2 3/5] Manifest2 hash: SHA512 Date: Sat, 1 Oct 2011 07:40:53 +0000 Message-Id: <1317454855-2794-4-git-send-email-robbat2@gentoo.org> X-Mailer: git-send-email 1.7.7 In-Reply-To: <1317454855-2794-1-git-send-email-robbat2@gentoo.org> References: <1317454855-2794-1-git-send-email-robbat2@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org X-Archives-Salt: X-Archives-Hash: 77780ae7f708771fc082bdf1ae065545 From: "Robin H. Johnson" Provide SHA512 hash algorithm to be used as new Manifest2 hash. Signed-off-by: Robin H. Johnson --- pym/portage/checksum.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py index 3593686..40ae836 100644 --- a/pym/portage/checksum.py +++ b/pym/portage/checksum.py @@ -91,6 +91,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) -- 1.7.7