X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/2d3de78ad61f2118c653c41ecac184f8591d4d46..43d1332f4cc5f072de04db84f236ad01e9ab7425:/hashsum.1 diff --git a/hashsum.1 b/hashsum.1 index 8e8c475..f0bd831 100644 --- a/hashsum.1 +++ b/hashsum.1 @@ -12,9 +12,11 @@ hashsum \- compute and verify cryptographic checksums of files .SH SYNOPSIS .B hashsum -.RB [ \-f0ecbv ] +.RB [ \-f0ecbpv ] .RB [ \-a .IR algorithm ] +.RB [ \-E +.IR encoding ] .IR files ... .SH DESCRIPTION The @@ -52,6 +54,9 @@ successfully. .B "\-u, \-\-usage" Prints a brief usage summary to standard output and exits successfully. .TP +.BR "\-l, \-\-list " [ \fIitem ...] +Show lists of hash functions and encodings supported. +.TP .BI "\-a, \-\-algorithm=" alg Use the hash algorithm .IR alg . @@ -60,9 +65,20 @@ see .B "Hashing algorithms" below. .TP -.B "\-l, \-\-list" -Prints a space-separated list of available hashing algorithms to -standard output and exits successfully. +.BI "\-E, \-\-encoding=" encoding +Use the given +.I encoding +to represent hashes in the output. This is not interoperable with other +programs, but it's handy, e.g., for building sha1 URNs. The encodings +recognized are +.B hex +(the default), +.B base64 +and +.BR base32 . +Type +.B hashsum \-\-list enc +for a list of supported encodings. .TP .B "\-f, \-\-files" Each input file is considered to be a list of filenames which should be @@ -106,6 +122,10 @@ Assume that the files to be hashed are binary files. This doesn't make any difference in Unix systems, although it might on other platforms which draw a distinction. .TP +.B "\-p, \-\-progress" +Display a progress indicator while hashing large files. The progress +indicator is written to standard error. +.TP .B "\-v, \-\-verbose" In conjunction with the .B \-c @@ -132,19 +152,19 @@ character. Two directives are currently understood: Subsequent hashes in this file were generated using the algorithm .IR alg . .TP +.BI "#encoding " encoding +Subsequent hashes in this file are represented using the named +.IR encoding . +.TP .BI "#escape" Filenames in subsequence lines are written using the `escaped' format, described below. .PP A .I "file line" -consists of a hash, in hexadecimal, followed by a space, a +consists of a hash, in the requested encoding, followed by a space, a .IR flag , -and the filename. If the current hash algorithm produces -.IR n -bit -output, there must be -.IR n /4 -hex digits of hash in a file line. The +and the filename. The .I flag is either a star .RB (` * ') @@ -241,7 +261,7 @@ processors, Tiger seems to be an efficient and strong hash function. It's a relatively new algorithm, however, and should probably be approached with an open-minded caution. .TP -.B sha256 ", " sha384 " and " sha512 +.BR sha256 ", " sha384 " and " sha512 Designed by the US National Security Agency to provide security commensurate with the Advanced Encryption Standard, these hash functions provide long outputs. SHA-256 is fairly quick, though the longer @@ -276,6 +296,9 @@ will emit a .RB ` #hash ' directive in its output. .SH "SEE ALSO" -.BR md5sum (1). +.BR md5sum (1), +.BR dsig (1), +.BR catsign (1), +.BR catcrypt (1). .SH "AUTHOR" -Mark Wooding, +Mark Wooding,