From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D493B139694 for ; Tue, 28 Feb 2017 09:02:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 58425E0C5C; Tue, 28 Feb 2017 09:02:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2A37EE0C5C for ; Tue, 28 Feb 2017 09:02:05 +0000 (UTC) Received: from localhost.localdomain (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id A3082341265 for ; Tue, 28 Feb 2017 09:02:03 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-portage-dev@lists.gentoo.org Subject: [gentoo-portage-dev] [PATCHES] Little cleanup of checksum + BLAKE2*/SHA3 Date: Tue, 28 Feb 2017 10:01:52 +0100 Message-Id: <20170228090155.868-1-mgorny@gentoo.org> X-Mailer: git-send-email 2.12.0 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 13267717-6a64-4a2c-84fc-347a6316e3fb X-Archives-Hash: fd9bb73ef25af5d7ac78232bdaa9c870 Hi, Here's a quick set of patches to the checksum module: 1) adds a summary table on top to ease the reading of the horrible code below, 2) removes dead fallbacks for md5/sha1 that apply only to py<2.5, 3) adds BLAKE2b/s and SHA3 hashes available in Python 3.6+. Sadly, I wasn't able to find any other (fallback) Python provider of the latter at the moment, so it will take a while before we can start using it anywhere. -- Best regards, Michał Górny