From b1ccb268b12f66eae6c09d833d68dd9ed40ad7b7 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sun, 23 Nov 2025 12:44:23 -0800 Subject: [PATCH] doc: cksum: document secure hash algorithms * doc/coreutils.texi (cksum general options): Mention hash algorithms that are currently considered secure against malicious tampering. --- doc/coreutils.texi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 214b21b563..098fa4761a 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -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 -- 2.47.3