coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] doc: provide more info on the default 32-bit cksum digest


From: Pádraig Brady
Subject: [PATCH] doc: provide more info on the default 32-bit cksum digest
Date: Sun, 30 Apr 2023 22:11:59 +0100

* doc/coreutils.texi (cksum invocation): Say that the default
digest format is 32-bit and based on the Ethernet standard CRC.
---
 doc/coreutils.texi | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 2188922c6..260592db2 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -3984,11 +3984,13 @@ next section) is preferable in new applications.
 @pindex cksum
 @cindex cyclic redundancy check
 @cindex CRC checksum
+@cindex 32-bit checksum
+@cindex checksum, 32-bit
 @cindex digest
 
-@command{cksum} by default computes a cyclic redundancy check (CRC) checksum
-for each given @var{file}, or standard input if none are given or for a
-@var{file} of @samp{-}.
+@command{cksum} by default computes a 32-bit cyclic redundancy check (CRC)
+checksum for each given @var{file}, or standard input if none are given or for
+a @var{file} of @samp{-}.
 
 cksum also supports the @option{-a/--algorithm} option to select the
 digest algorithm to use. @command{cksum} is the preferred interface
@@ -4008,6 +4010,8 @@ distribution).
 @command{cksum} by default prints the POSIX standard CRC checksum
 for each file along with the number of bytes in the file,
 and the file name unless no arguments were given.
+The 32-bit CRC used is based on the polynomial used
+for CRC error checking in the ISO/IEC 8802-3:1996 standard (Ethernet).
 
 The same usage and options as the @command{b2sum}
 command are supported.  @xref{b2sum invocation}.
-- 
2.26.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]