version 1.10, 1999/07/21 01:25:42 |
version 1.11, 2000/03/05 20:09:20 |
|
|
.Op Ar file ... |
.Op Ar file ... |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
.Nm |
.Nm cksum |
utility writes to the standard output three whitespace separated |
utility writes to the standard output three whitespace separated |
fields for each input file. |
fields for each input file. |
These fields are a checksum |
These fields are a checksum |
|
|
The |
The |
.Nm sum |
.Nm sum |
utility is identical to the |
utility is identical to the |
.Nm |
.Nm cksum |
utility, except that it defaults to using historic algorithm 1, as |
utility, except that it defaults to using historic algorithm 1, as |
described below. |
described below. |
It is provided for compatibility only. |
It is provided for compatibility only. |
|
|
.Ed |
.Ed |
.Pp |
.Pp |
The |
The |
.Nm |
.Nm cksum |
and |
and |
.Nm sum |
.Nm sum |
utilities exit 0 on success or >0 if an error occurred. |
utilities exit 0 on success or >0 if an error occurred. |
.Sh WARNING |
.Sh WARNING |
Do not use |
Do not use |
.Nm sum |
.Nm cksum |
or |
or |
.Nm |
.Nm sum |
to detect hostile binary modifications. An attacker |
to detect hostile binary modifications. |
can trivially produce backdoored daemons which have the same CRC as the |
An attacker can trivially produce backdoored daemons which have the same |
standard versions. Use a cryptographic checksum (such as MD5) instead. |
CRC as the standard versions. |
|
Use a cryptographic checksum (such as MD5) instead. |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr md5 1 , |
.Xr md5 1 , |
.Xr rmd160 1 , |
.Xr rmd160 1 , |
|
|
.Re |
.Re |
.Sh STANDARDS |
.Sh STANDARDS |
The |
The |
.Nm |
.Nm cksum |
utility is compliant with the |
utility is compliant with the |
.St -p1003.2-92 |
.St -p1003.2-92 |
specification. |
specification. |
.Sh HISTORY |
.Sh HISTORY |
The |
The |
.Nm |
.Nm cksum |
utility appeared in |
utility appeared in |
.Bx 4.4 . |
.Bx 4.4 . |
.\" .Pp |
|
.\" The |
|
.\" .Nm sum |
|
.\" utility appeared in |
|
.\" .Bx ?.? |
|
.\" and |
|
.\" .At V . |
|