Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH] const: Switch default hash set to BLAKE2B+SHA512
Date: Sat, 13 Jan 2018 08:50:42
Message-Id: 20180113085035.2871-1-mgorny@gentoo.org
1 Switch the Portage defaults to the new Gentoo hash set. We're already
2 far past the initial testing and I have been approached by a few people
3 who were surprised that Portage does not use new hashes for overlays.
4 Switching the defaults will remove the need for custom hashes
5 in layout.conf.
6 ---
7 pym/portage/const.py | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10 diff --git a/pym/portage/const.py b/pym/portage/const.py
11 index ec877b841..e5fa4b67c 100644
12 --- a/pym/portage/const.py
13 +++ b/pym/portage/const.py
14 @@ -206,8 +206,8 @@ EAPI = 6
15
16 HASHING_BLOCKSIZE = 32768
17
18 -MANIFEST2_HASH_DEFAULTS = frozenset(["SHA256", "SHA512", "WHIRLPOOL"])
19 -MANIFEST2_HASH_DEFAULT = "SHA512"
20 +MANIFEST2_HASH_DEFAULTS = frozenset(["BLAKE2B", "SHA512"])
21 +MANIFEST2_HASH_DEFAULT = "BLAKE2B"
22
23 MANIFEST2_IDENTIFIERS = ("AUX", "MISC", "DIST", "EBUILD")
24
25 --
26 2.16.0.rc1

Replies