+2024-12-01 Bruno Haible <bruno@clisp.org>
+
+ announce-gen: Show an SHA256 sum that can be verified more easily.
+ * build-aux/announce-gen (print_checksums): Output SHA256 sum in hex,
+ instead of base64 wrapped.
+
2024-12-01 Bruno Haible <bruno@clisp.org>
announce-gen: Fix bug when accessing symlinks.
# This digest function omits the "=" padding that is required by cksum,
# so add the 0..2 bytes of padding required for each of Digest's algorithms.
+# To verify such a digest, users need
+# - a particular command ('cksum -a sha256 --check')
+# - and particular tools (coreutils >= 9.2 or OpenBSD's cksum since 2007).
sub digest_file_base64_wrap ($$)
{
my ($file, $alg) = @_;
foreach my $f (@file)
{
- print ' ', digest_file_hex ($f, "SHA-1"), " $f\n";
- print ' ', digest_file_base64_wrap ($f, "SHA-256"), " $f\n";
+ print " File: $f\n";
+ print ' SHA1 sum: ', digest_file_hex ($f, "SHA-1"), "\n";
+ print ' SHA256 sum: ', digest_file_hex ($f, "SHA-256"), "\n";
+ print "\n";
}
- print "\nVerify the base64 SHA256 checksum with cksum -a sha256 --check\n";
- print "from coreutils-9.2 or OpenBSD's cksum since 2007.\n\n";
}
=item C<print_news_deltas ($news_file, $prev_version, $curr_version)