]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: cksum: document secure hash algorithms
authorCollin Funk <collin.funk1@gmail.com>
Sun, 23 Nov 2025 20:44:23 +0000 (12:44 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 23 Nov 2025 21:32:35 +0000 (13:32 -0800)
* doc/coreutils.texi (cksum general options): Mention hash algorithms
that are currently considered secure against malicious tampering.

doc/coreutils.texi

index 214b21b563e1b4fd63b061da0a40efc233085e82..098fa4761ac54a175c6ca051704eaea0dc277388 100644 (file)
@@ -4229,6 +4229,15 @@ Supported more modern digest algorithms are:
 @samp{sm3}       only available through @command{cksum}
 @end example
 
+The following algorithms are currently considered secure against
+malicious tampering, i.e., there is no known way to modify a file to
+produce the same checksum:
+@example
+@samp{sha2}      equivalent to @command{sha@{224,256,384,512@}sum}
+@samp{sha3}      only available through @command{cksum}
+@samp{blake2b}   equivalent to @command{b2sum}
+@end example
+
 @item --base64
 @opindex --base64
 @cindex base64 checksum encoding