summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbitblt <bitblt@openbsd.org>1997-01-27 20:14:21 +0000
committerbitblt <bitblt@openbsd.org>1997-01-27 20:14:21 +0000
commit0f811b65a3a67022f5dd15a91fd1fe27e1b5b7be (patch)
tree76690f05a0c364ecc926f03167d0113622e79668
parentbad chr->blk mappings; randy@rtmx.com (diff)
downloadwireguard-openbsd-0f811b65a3a67022f5dd15a91fd1fe27e1b5b7be.tar.xz
wireguard-openbsd-0f811b65a3a67022f5dd15a91fd1fe27e1b5b7be.zip
Added a WARNING about not using it to detect back doors.
-rw-r--r--usr.bin/cksum/cksum.110
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/cksum/cksum.1 b/usr.bin/cksum/cksum.1
index 1a1dbed2006..630599da16f 100644
--- a/usr.bin/cksum/cksum.1
+++ b/usr.bin/cksum/cksum.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: cksum.1,v 1.2 1996/06/26 05:32:01 deraadt Exp $
+.\" $OpenBSD: cksum.1,v 1.3 1997/01/27 20:14:21 bitblt Exp $
.\" $NetBSD: cksum.1,v 1.8 1995/09/02 05:45:15 jtc Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -157,6 +157,14 @@ The
and
.Nm sum
utilities exit 0 on success, and >0 if an error occurs.
+.Sh WARNING
+Do not use
+.Nm sum
+or
+.Nm cksum
+to detect hostile binary modifications. An attacker
+can trivially produce backdoored daemons which have the same CRC as the
+standard versions. Use a cryptographic checksum, such as MD5 instead.
.Sh SEE ALSO
The default calculation is identical to that given in pseudo-code
in the following