diff options
author | delphij <delphij@FreeBSD.org> | 2012-08-01 00:36:12 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2012-08-01 00:36:12 +0000 |
commit | 7f137631a106c55e1c56771b29ef5f86c434176c (patch) | |
tree | 78732579e8e397b23d8b6a6b75af176b0bf6edc6 /sbin/md5/md5.1 | |
parent | dc040356951ccf5c9e9fab8c348e87e5dcc818c1 (diff) | |
download | FreeBSD-src-7f137631a106c55e1c56771b29ef5f86c434176c.zip FreeBSD-src-7f137631a106c55e1c56771b29ef5f86c434176c.tar.gz |
Teach md5(1) about sha512.
MFC after: 1 month
Diffstat (limited to 'sbin/md5/md5.1')
-rw-r--r-- | sbin/md5/md5.1 | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/sbin/md5/md5.1 b/sbin/md5/md5.1 index 0dfb145..04efa37 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 |