aboutsummaryrefslogtreecommitdiff
path: root/sbin/md5/md5.1
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2012-08-01 00:36:12 +0000
committerXin LI <delphij@FreeBSD.org>2012-08-01 00:36:12 +0000
commitedd4c16f78891408da1b80eb9ce6ef990d5d6278 (patch)
tree78732579e8e397b23d8b6a6b75af176b0bf6edc6 /sbin/md5/md5.1
parent0dfbbb33914bf465c274246f9521fa377ed3a162 (diff)
downloadsrc-edd4c16f78891408da1b80eb9ce6ef990d5d6278.tar.gz
src-edd4c16f78891408da1b80eb9ce6ef990d5d6278.zip
Teach md5(1) about sha512.
MFC after: 1 month
Notes
Notes: svn path=/head/; revision=238964
Diffstat (limited to 'sbin/md5/md5.1')
-rw-r--r--sbin/md5/md5.118
1 files changed, 12 insertions, 6 deletions
diff --git a/sbin/md5/md5.1 b/sbin/md5/md5.1
index 0dfb145669d6..04efa3750d06 100644
--- a/sbin/md5/md5.1
+++ b/sbin/md5/md5.1
@@ -1,9 +1,9 @@
.\" $FreeBSD$
-.Dd September 7, 2008
+.Dd July 31, 2012
.Dt MD5 1
.Os
.Sh NAME
-.Nm md5 , sha1 , sha256 , rmd160
+.Nm md5 , sha1 , sha256 , sha512, rmd160
.Nd calculate a message-digest fingerprint (checksum) for a file
.Sh SYNOPSIS
.Nm md5
@@ -21,6 +21,11 @@
.Op Fl c Ar string
.Op Fl s Ar string
.Op Ar
+.Nm sha512
+.Op Fl pqrtx
+.Op Fl c Ar string
+.Op Fl s Ar string
+.Op Ar
.Nm rmd160
.Op Fl pqrtx
.Op Fl c Ar string
@@ -28,7 +33,7 @@
.Op Ar
.Sh DESCRIPTION
The
-.Nm md5 , sha1 , sha256
+.Nm md5 , sha1 , sha256 , sha512
and
.Nm rmd160
utilities take as input a message of arbitrary length and produce as
@@ -41,7 +46,7 @@ It is conjectured that it is computationally infeasible to
produce two messages having the same message digest, or to produce any
message having a given prespecified target message digest.
The
-.Tn MD5 , SHA-1 , SHA-256
+.Tn MD5 , SHA-1 , SHA-256 , SHA-512
and
.Tn RIPEMD-160
algorithms are intended for digital signature applications, where a
@@ -104,7 +109,7 @@ Run a built-in test script.
.El
.Sh EXIT STATUS
The
-.Nm md5 , sha1 , sha256
+.Nm md5 , sha1 , sha256 , sha512
and
.Nm rmd160
utilities exit 0 on success,
@@ -115,7 +120,8 @@ and 2 if at least one file does not have the same hash as the -c option.
.Xr md5 3 ,
.Xr ripemd 3 ,
.Xr sha 3 ,
-.Xr sha256 3
+.Xr sha256 3 ,
+.Xr sha512 3
.Rs
.%A R. Rivest
.%T The MD5 Message-Digest Algorithm