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