dgst.pod revision 68651
1=pod
2
3=head1 NAME
4
5dgst, md5, md4, md2, sha1, sha, mdc2, ripemd160 - message digests
6
7=head1 SYNOPSIS
8
9B<openssl> B<dgst> 
10[B<-md5|-md4|-md2|-sha1|-sha|-mdc2|-ripemd160|-dss1>]
11[B<-c>]
12[B<-d>]
13[B<-hex>]
14[B<-binary>]
15[B<-out filename>]
16[B<-sign filename>]
17[B<-verify filename>]
18[B<-prverify filename>]
19[B<-signature filename>]
20[B<file...>]
21
22[B<md5|md4|md2|sha1|sha|mdc2|ripemd160>]
23[B<-c>]
24[B<-d>]
25[B<file...>]
26
27=head1 DESCRIPTION
28
29The digest functions output the message digest of a supplied file or files
30in hexadecimal form. They can also be used for digital signing and verification.
31
32=head1 OPTIONS
33
34=over 4
35
36=item B<-c>
37
38print out the digest in two digit groups separated by colons, only relevant if
39B<hex> format output is used.
40
41=item B<-d>
42
43print out BIO debugging information.
44
45=item B<-hex>
46
47digest is to be output as a hex dump. This is the default case for a "normal"
48digest as opposed to a digital signature.
49
50=item B<-binary>
51
52output the digest or signature in binary form.
53
54=item B<-out filename>
55
56filename to output to, or standard output by default.
57
58=item B<-sign filename>
59
60digitally sign the digest using the private key in "filename".
61
62=item B<-verify filename>
63
64verify the signature using the the public key in "filename".
65The output is either "Verification OK" or "Verification Failure".
66
67=item B<-prverify filename>
68
69verify the signature using the  the private key in "filename".
70
71=item B<-signature filename>
72
73the actual signature to verify.
74
75=item B<-rand file(s)>
76
77a file or files containing random data used to seed the random number
78generator, or an EGD socket (see L<RAND_egd(3)|RAND_egd(3)>).
79Multiple files can be specified separated by a OS-dependent character.
80The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
81all others. 
82
83=item B<file...>
84
85file or files to digest. If no files are specified then standard input is
86used.
87
88=back
89
90=head1 NOTES
91
92The digest of choice for all new applications is SHA1. Other digests are
93however still widely used.
94
95If you wish to sign or verify data using the DSA algorithm then the dss1
96digest must be used.
97
98A source of random numbers is required for certain signing algorithms, in
99particular DSA.
100
101The signing and verify options should only be used if a single file is
102being signed or verified.
103
104=cut
105