summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2004-05-16 18:31:31 +0000
committerotto <otto@openbsd.org>2004-05-16 18:31:31 +0000
commit27546b7eb966a5829ffcc624c60fbfbb7fa904f2 (patch)
tree469c14f82cec7ac1ee705cce347f258b828c98e5
parentAdd .Xr's to the commands implementing the various digests. ok millert@ (diff)
downloadwireguard-openbsd-27546b7eb966a5829ffcc624c60fbfbb7fa904f2.tar.xz
wireguard-openbsd-27546b7eb966a5829ffcc624c60fbfbb7fa904f2.zip
Tell reader to use cksum(1) to compute SHA-2 digests. ok millert@
-rw-r--r--bin/md5/sha1.114
1 files changed, 13 insertions, 1 deletions
diff --git a/bin/md5/sha1.1 b/bin/md5/sha1.1
index f48d2b062fa..318ca472c06 100644
--- a/bin/md5/sha1.1
+++ b/bin/md5/sha1.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sha1.1,v 1.18 2004/05/04 18:32:51 jmc Exp $
+.\" $OpenBSD: sha1.1,v 1.19 2004/05/16 18:31:31 otto Exp $
.\"
.\" Copyright (c) 2003, 2004 Todd C. Miller <Todd.Miller@courtesan.com>
.\"
@@ -78,6 +78,18 @@ Runs a built-in test script.
The SHA-1
sum of each file listed on the command line is printed after the options
are processed.
+.Pp
+The
+.Nm
+command is shorthand for
+.Bd -literal -offset indent
+cksum -a sha1
+.Ed
+.Pp
+The
+.Xr cksum 1
+command can also be used to compute digests from the SHA-2 family:
+sha256, sha384 and sha512.
.Sh SEE ALSO
.Xr cksum 1 ,
.Xr md5 1 ,