Hi all, Simon said:
>> We can add sha3-256, I think previous releases also had only SHA256, but >> I think it's fine to add it newly. Are you aware of a Guix package that >> is able to calculate these hashes? I see that coreutils 9.8 has this, >> but Guix has 9.1. Maybe rhash with --sha3-256 argument? > > Oh can't you upgrade coreutils?! Even Debian trixie ship with 9.7, it > seems odd if Guix v1.5.0 ship with way older Coreutils. But getting > v1.5.0 released is more important... I noticed that a while ago and was hoping it could be updated in Guix as well. 9.1 is a few years old now. Happy to help on [email protected] if something on our end is holding it back. > Yes, rhash seems like a small well-maintained tool that supports this. > And please use --base64, it is supported by modern CoreUtils too and > makes for smaller checksums. > > root@hamster ~# echo foo > foo > root@hamster ~# rhash --sha3-256 --base64 foo | tee foo.SHA3-256SUM > UhjfEMDr47ONdP4AQNExmKxJZGpDutNzuR7Yh91zT88=3D foo > root@hamster ~# rhash -c foo.SHA3-256SUM=20 I don't have a machine running Guix, but on my Fedora machine you can use 'openssl dgst' to create SHA3-256 checkums: $ openssl dgst -SHA3-256 Makefile SHA3-256(Makefile)= 2ac89bd5ff9172c3c82f5cf61f8f3b852ae9eaab9ebfcc63dab9b2ba984541f2 I used that a few times when adding SHA-3 support to 'cksum' in coreutils. Collin
