From nobody Tue Dec 6 15:42:31 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 4NRPnL0sdkz4jxp2 for ; Tue, 6 Dec 2022 15:42:46 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (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 4NRPnK0zBPz3xbf for ; Tue, 6 Dec 2022 15:42:44 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=0nLEuVVF; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2a00:1450:4864:20::636) smtp.mailfrom=wlosh@bsdimp.com; dmarc=none Received: by mail-ej1-x636.google.com with SMTP id vp12so7159981ejc.8 for ; Tue, 06 Dec 2022 07:42:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vfs0th5G5ygOP6InekKfi4NXiOZayllV8MKs7oMBUKg=; b=0nLEuVVF/zcl5sPDb6LKlsUppyujdFkNrd/n38sa/ZngdVgZFkNz01lsX+HuqxWlty QqyQnqk5Ku+7aEeMqurUxfHB92W6d3S/6o3RhlyDqrG0vyeCaFfF4C1myn1nzMXCUWG5 XhIraRCHhCB83KVjbzNanlG6hFPBrmNxFTt1t+6rCEg6Eh4pduR2igeXKCo61Evyy5sW 9kdeOuslt+guUnjs7TqdqaimD/plIZvOlnEI8kP6Tpb7wG00uDNAirgeuY4iew3hXv9j tZdgUaTu2ucGE3acrsWqE+00FWoZYudSGC0HZQkwORTQaoCy6LP2YSmOzuBwbdzjebGc jP4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vfs0th5G5ygOP6InekKfi4NXiOZayllV8MKs7oMBUKg=; b=KDsxFMIMSzLTCz8ohld05ygJjmoop0l3A83WD38g/0nqw57HLfo1wC7/tBfd7TLsbu GOxvfs9SotgWYoWSRrx/SAjqt0FgbqEafdifuuXtiIkWhJnms/BR1Mqn0Y8X3ZZDzapR sgC2gGQBpqs3ig2JaKI36FHtxW7/Sy/R1nYTShA0dYxa/gUMyrUPX9sYst7WcLPXXd3r bjr8P9rZaaOSkhToPn5O7KSODJC/X9MifzKSWCefxe+6rinc7NHUrjoyqZSDkbvrubSo oshTrq83EYSdBHQWfsYYWnmA5seSpx37L7DeGpmy2TyVbZ5D8jBNdWKLnyz6w8JX2rWF +n4A== X-Gm-Message-State: ANoB5pn6fy69+Zz3NoGIjZmWb4yowf0dQqeTyboHkDXRs+SlXEg9RI6B FTWUqxGju5cRi6O/ZdHOI/Pc+Hi6SwCg/UGnDsdtHw+O4ACEsg== X-Google-Smtp-Source: AA0mqf4QEUhlpqswFouAKq8CvDTfQtPo1Ae7wZxPPzQa4fzLNIH7hwR97hNWzOVDnDW5WKIg7zu3gEpdS2g7OH/dnLU= X-Received: by 2002:a17:906:c2d3:b0:7c1:535:f2fb with SMTP id ch19-20020a170906c2d300b007c10535f2fbmr4548766ejb.252.1670341363310; Tue, 06 Dec 2022 07:42:43 -0800 (PST) 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 References: <6d973f68-7904-5c23-6c6b-73a76e0a4ef5@gmail.com> In-Reply-To: <6d973f68-7904-5c23-6c6b-73a76e0a4ef5@gmail.com> From: Warner Losh Date: Tue, 6 Dec 2022 08:42:31 -0700 Message-ID: Subject: Re: Add BLAKE3 hash to ISO checksums To: Yonas Yanfa Cc: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="0000000000009d3f5c05ef2aa71a" X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FREEMAIL_TO(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; R_SPF_NA(0.00)[no SPF record]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::636:from]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TAGGED_RCPT(0.00)[]; DMARC_NA(0.00)[bsdimp.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4NRPnK0zBPz3xbf X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --0000000000009d3f5c05ef2aa71a Content-Type: text/plain; charset="UTF-8" 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 > > > --0000000000009d3f5c05ef2aa71a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
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 t= his into the release building work flow.

Warner
=C2=A0


$ 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=C2=A0=C2=A0=C2=A0 5.05 secs=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fish= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 external
=C2=A0=C2=A0=C2=A0 usr time=C2=A0 834.12 millis=C2=A0=C2=A0=C2=A0 4.53 mill= is=C2=A0 829.58 millis
=C2=A0=C2=A0=C2=A0 sys time=C2=A0 666.34 millis=C2=A0=C2=A0=C2=A0 0.44 mill= is=C2=A0 665.90 millis

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

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

259e034731c1493740a5a9f2933716c479746360f570312ea44ed9b7b59ed9131284c5f9fe8= db13f8f4e10f312033db1447ff2900d65bfefbf5cfb3e3b630ba2
FreeBSD-13.1-RELEASE-amd64-disc1.iso

________________________________________________________
Executed in=C2=A0=C2=A0=C2=A0 4.84 secs=C2=A0=C2=A0=C2=A0 fish=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 external
=C2=A0=C2=A0=C2=A0 usr time=C2=A0=C2=A0=C2=A0 4.61 secs=C2=A0 274.00 micros= =C2=A0=C2=A0=C2=A0 4.61 secs
=C2=A0=C2=A0=C2=A0 sys time=C2=A0=C2=A0=C2=A0 0.18 secs=C2=A0 140.00 micros= =C2=A0=C2=A0=C2=A0 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=C2=A0 280.16 millis=C2=A0=C2=A0=C2=A0 fish=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 external
=C2=A0=C2=A0=C2=A0 usr time=C2=A0 852.65 millis=C2=A0 316.00 micros=C2=A0 8= 52.34 millis
=C2=A0=C2=A0=C2=A0 sys time=C2=A0=C2=A0 86.98 millis=C2=A0 166.00 micros=C2= =A0=C2=A0 86.81 millis

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

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

259e034731c1493740a5a9f2933716c479746360f570312ea44ed9b7b59ed9131284c5f9fe8= db13f8f4e10f312033db1447ff2900d65bfefbf5cfb3e3b630ba2
FreeBSD-13.1-RELEASE-amd64-disc1.iso

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


Cheers,
Yonas


--0000000000009d3f5c05ef2aa71a--