Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Dec 2022 23:27:13 -0500
From:      Yonas Yanfa <yonas.yanfa@gmail.com>
To:        freebsd-hackers@FreeBSD.org
Subject:   Add BLAKE3 hash to ISO checksums
Message-ID:  <6d973f68-7904-5c23-6c6b-73a76e0a4ef5@gmail.com>

next in thread | raw e-mail | index | archive | help
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


$ 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6d973f68-7904-5c23-6c6b-73a76e0a4ef5>