From nobody Tue Dec 6 21:02:21 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NRXtD57Tlz4jvnV for ; Tue, 6 Dec 2022 21:02:28 +0000 (UTC) (envelope-from yonas.yanfa@gmail.com) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NRXtD35tGz4cGN for ; Tue, 6 Dec 2022 21:02:28 +0000 (UTC) (envelope-from yonas.yanfa@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-x32c.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so15312899wmb.2 for ; Tue, 06 Dec 2022 13:02:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=BBh7h6zjSPXc2x43dPfIeThDuV+uQE57kq1JUZWmAGs=; b=DgtUntzVLlc7sp0C+zFns739smnXBRT+agRbuIh5dXmTvEUh6FetROdiH9NAjMkhxN 5fcJDvmku1QKKpNH1C+i8wwXACc727HZ0ERkRno/b8sysCKfrb9NIB+Q/tMKPFugvlUU SvT30dO+cLBEi7P2f/8nnYvC+Q/C4LM8PRaOUZrzuuNkHrJFoB70NQW35YZN6/mv0ft3 0popBSQo+dVaoV64Rmgxa2g/suw0paOURaNp5+Lk4Hxfiu+uRADZpxPn1/Xeu2X0fhr6 rNgoh42UxDEqofPBsHbXnZO3P59g1qaNZ7Ty/qD0tp5jcRtEEwUVTAEizrGgFxDwghbs iboQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=BBh7h6zjSPXc2x43dPfIeThDuV+uQE57kq1JUZWmAGs=; b=ngcoBMCIbjNz1PVuKt8lnPRi4TWDwbn4c7QlxmyaFA/CLxhwSQtjgyhGTmbq8v3KlK PDydzpgeE3ALHvneUgzZbT3/s4T15PznNcoZ6CIm0Xc6fK4ZiVH8Ona3l7m8BY8sL4LO bMfRdll4ZzqtKq9M3l3T6wD/PBGJ42F0lT6uexEJykMRJx44+x4gkN9X6EUX+j3FV5rP QNh/tQV3zFaOhtENXQD8PgHIiGRcuReTQ9yd61RwsULe+8D2ljWPGN5zFufh09UKqawr itGhtmW34qIf3Ia5ylpBc1x8+jDad7xnkGL1406yn5qc2tSDHaKX5oAPWs0PKzxxB/DN GQ0g== X-Gm-Message-State: ANoB5pnqhE6lO7HScwV9y0UHdo9GFEZSbpcE7QtIkvA/1wE11LBM7va+ f+odKhrpZ8x0b6Z8hDcwtnz1SRwqyHxFKg== X-Google-Smtp-Source: AA0mqf6w810QE4OPfwSjq2HLR4F9ucQ8VjWy459fPklm8urNuNieOfEJzPIMuP2gBh5EAhwDvaqxDg== X-Received: by 2002:a05:600c:502b:b0:3a5:cb0e:8242 with SMTP id n43-20020a05600c502b00b003a5cb0e8242mr64753125wmr.188.1670360544836; Tue, 06 Dec 2022 13:02:24 -0800 (PST) Received: from [10.19.0.2] (93-190-138-188.hosted-by-worldstream.net. [93.190.138.188]) by smtp.gmail.com with ESMTPSA id k15-20020a05600c1c8f00b003c6c3fb3cf6sm24432822wms.18.2022.12.06.13.02.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Dec 2022 13:02:24 -0800 (PST) Content-Type: multipart/alternative; boundary="------------pYeTV4ifdYtZo0O5X2FpBrJE" Message-ID: Date: Tue, 6 Dec 2022 16:02:21 -0500 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Add BLAKE3 hash to ISO checksums To: Warner Losh Cc: freebsd-hackers@freebsd.org References: <6d973f68-7904-5c23-6c6b-73a76e0a4ef5@gmail.com> Content-Language: en-US From: Yonas Yanfa In-Reply-To: X-Rspamd-Queue-Id: 4NRXtD35tGz4cGN X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------pYeTV4ifdYtZo0O5X2FpBrJE Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Added 2022-05-26 03:54:06 : https://www.freshports.org/sysutils/b3sum Yonas On 2022-12-06 10:42 a.m., Warner Losh wrote: > > > On Mon, Dec 5, 2022 at 9:27 PM Yonas Yanfa wrote: > > Hi, > > Can we please add BLAKE3 hashes to > https://www.freebsd.org/releases/13.1R/signatures ? > > On first run, BLAKE3 runs at the same speed as SHA-512. On my system, > the second run is 17x faster. > > I recommend using https://crates.io/crates/b3sum > > > At the very least, we'd need a b3sum port to integrate this into the > release building work flow. > > Warner > > > > $ for hash in b3sum sha256sum sha512sum ; time $hash > FreeBSD-13.1-RELEASE-amd64-disc1.iso ; end > 5240012f644cd660f6570823b5fb0090b0cf0b269b1c1e0563c98af26ed2becd > FreeBSD-13.1-RELEASE-amd64-disc1.iso > > ________________________________________________________ > Executed in    5.05 secs      fish           external >     usr time  834.12 millis    4.53 millis  829.58 millis >     sys time  666.34 millis    0.44 millis  665.90 millis > > 697d81653fa246b921ddfcf1d15562c55249cc727b11fa3e47f470e2cf2b6a40 > FreeBSD-13.1-RELEASE-amd64-disc1.iso > > ________________________________________________________ > Executed in    7.46 secs    fish           external >     usr time    7.13 secs  287.00 micros    7.13 secs >     sys time    0.31 secs  146.00 micros    0.31 secs > > 259e034731c1493740a5a9f2933716c479746360f570312ea44ed9b7b59ed9131284c5f9fe8db13f8f4e10f312033db1447ff2900d65bfefbf5cfb3e3b630ba2 > > FreeBSD-13.1-RELEASE-amd64-disc1.iso > > ________________________________________________________ > Executed in    4.84 secs    fish           external >     usr time    4.61 secs  274.00 micros    4.61 secs >     sys time    0.18 secs  140.00 micros    0.18 secs > > $ for hash in b3sum sha256sum sha512sum ; time $hash > FreeBSD-13.1-RELEASE-amd64-disc1.iso ; end > 5240012f644cd660f6570823b5fb0090b0cf0b269b1c1e0563c98af26ed2becd > FreeBSD-13.1-RELEASE-amd64-disc1.iso > > ________________________________________________________ > Executed in  280.16 millis    fish           external >     usr time  852.65 millis  316.00 micros  852.34 millis >     sys time   86.98 millis  166.00 micros   86.81 millis > > 697d81653fa246b921ddfcf1d15562c55249cc727b11fa3e47f470e2cf2b6a40 > FreeBSD-13.1-RELEASE-amd64-disc1.iso > > ________________________________________________________ > Executed in    7.39 secs    fish           external >     usr time    7.17 secs  343.00 micros    7.17 secs >     sys time    0.21 secs  181.00 micros    0.21 secs > > 259e034731c1493740a5a9f2933716c479746360f570312ea44ed9b7b59ed9131284c5f9fe8db13f8f4e10f312033db1447ff2900d65bfefbf5cfb3e3b630ba2 > > FreeBSD-13.1-RELEASE-amd64-disc1.iso > > ________________________________________________________ > Executed in    4.84 secs    fish           external >     usr time    4.57 secs  363.00 micros    4.57 secs >     sys time    0.23 secs  192.00 micros    0.23 secs > > > Cheers, > Yonas > > --------------pYeTV4ifdYtZo0O5X2FpBrJE Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Added 2022-05-26 03:54:06 : https://www.freshports.org/sysutils/b3sum

Yonas


On 2022-12-06 10:42 a.m., Warner Losh wrote:


On Mon, Dec 5, 2022 at 9:27 PM Yonas Yanfa <yonas.yanfa@gmail.com> wrote:
Hi,

Can we please add BLAKE3 hashes to
https://www.freebsd.org/releases/13.1R/signatures ?

On first run, BLAKE3 runs at the same speed as SHA-512. On my system,
the second run is 17x faster.

I recommend using https://crates.io/crates/b3sum

At the very least, we'd need a b3sum port to integrate this into the release building work flow.

Warner
 


$ for hash in b3sum sha256sum sha512sum ; time $hash
FreeBSD-13.1-RELEASE-amd64-disc1.iso ; end
5240012f644cd660f6570823b5fb0090b0cf0b269b1c1e0563c98af26ed2becd
FreeBSD-13.1-RELEASE-amd64-disc1.iso

________________________________________________________
Executed in    5.05 secs      fish           external
    usr time  834.12 millis    4.53 millis  829.58 millis
    sys time  666.34 millis    0.44 millis  665.90 millis

697d81653fa246b921ddfcf1d15562c55249cc727b11fa3e47f470e2cf2b6a40
FreeBSD-13.1-RELEASE-amd64-disc1.iso

________________________________________________________
Executed in    7.46 secs    fish           external
    usr time    7.13 secs  287.00 micros    7.13 secs
    sys time    0.31 secs  146.00 micros    0.31 secs

259e034731c1493740a5a9f2933716c479746360f570312ea44ed9b7b59ed9131284c5f9fe8db13f8f4e10f312033db1447ff2900d65bfefbf5cfb3e3b630ba2
FreeBSD-13.1-RELEASE-amd64-disc1.iso

________________________________________________________
Executed in    4.84 secs    fish           external
    usr time    4.61 secs  274.00 micros    4.61 secs
    sys time    0.18 secs  140.00 micros    0.18 secs

$ for hash in b3sum sha256sum sha512sum ; time $hash
FreeBSD-13.1-RELEASE-amd64-disc1.iso ; end
5240012f644cd660f6570823b5fb0090b0cf0b269b1c1e0563c98af26ed2becd
FreeBSD-13.1-RELEASE-amd64-disc1.iso

________________________________________________________
Executed in  280.16 millis    fish           external
    usr time  852.65 millis  316.00 micros  852.34 millis
    sys time   86.98 millis  166.00 micros   86.81 millis

697d81653fa246b921ddfcf1d15562c55249cc727b11fa3e47f470e2cf2b6a40
FreeBSD-13.1-RELEASE-amd64-disc1.iso

________________________________________________________
Executed in    7.39 secs    fish           external
    usr time    7.17 secs  343.00 micros    7.17 secs
    sys time    0.21 secs  181.00 micros    0.21 secs

259e034731c1493740a5a9f2933716c479746360f570312ea44ed9b7b59ed9131284c5f9fe8db13f8f4e10f312033db1447ff2900d65bfefbf5cfb3e3b630ba2
FreeBSD-13.1-RELEASE-amd64-disc1.iso

________________________________________________________
Executed in    4.84 secs    fish           external
    usr time    4.57 secs  363.00 micros    4.57 secs
    sys time    0.23 secs  192.00 micros    0.23 secs


Cheers,
Yonas


--------------pYeTV4ifdYtZo0O5X2FpBrJE--