~ubuntu-branches/ubuntu/oneiric/openssl/oneiric-updates

« back to all changes in this revision

Viewing changes to .pc/dgst_hmac.patch/doc/apps/dgst.pod

  • Committer: Package Import Robot
  • Author(s): Steve Beattie
  • Date: 2011-09-14 22:06:03 UTC
  • mfrom: (11.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20110914220603-tsuxw8z3kt4lx9oc
Tags: 1.0.0e-2ubuntu1
* Resynchronise with Debian, fixes CVE-2011-1945, CVE-2011-3207 and
  CVE-2011-3210 (LP: #850608). Remaining changes:
  - debian/libssl1.0.0.postinst:
    + Display a system restart required notification bubble on libssl1.0.0
      upgrade.
    + Use a different priority for libssl1.0.0/restart-services depending
      on whether a desktop, or server dist-upgrade is being performed.
  - debian/{libssl1.0.0-udeb.dirs, control, rules}: Create
    libssl1.0.0-udeb, for the benefit of wget-udeb (no wget-udeb package
    in Debian).
  - debian/{libcrypto1.0.0-udeb.dirs, libssl1.0.0.dirs, libssl1.0.0.files,
    rules}: Move runtime libraries to /lib, for the benefit of
    wpasupplicant.
  - debian/patches/aesni.patch: Backport Intel AES-NI support, now from
    http://rt.openssl.org/Ticket/Display.html?id=2065 rather than the
    0.9.8 variant.
  - debian/patches/Bsymbolic-functions.patch: Link using
    -Bsymbolic-functions.
  - debian/patches/perlpath-quilt.patch: Don't change perl #! paths under
    .pc.
  - debian/rules:
    + Don't run 'make test' when cross-building.
    + Use host compiler when cross-building.  Patch from Neil Williams.
    + Don't build for processors no longer supported: i486, i586 (on
      i386), v8 (on sparc).
    + Fix Makefile to properly clean up libs/ dirs in clean target.
    + Replace duplicate files in the doc directory with symlinks.
* debian/libssl1.0.0.postinst: only display restart notification on
  servers (LP: #244250)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
=pod
 
2
 
 
3
=head1 NAME
 
4
 
 
5
dgst, md5, md4, md2, sha1, sha, mdc2, ripemd160 - message digests
 
6
 
 
7
=head1 SYNOPSIS
 
8
 
 
9
B<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<-keyform arg>]
 
18
[B<-passin arg>]
 
19
[B<-verify filename>]
 
20
[B<-prverify filename>]
 
21
[B<-signature filename>]
 
22
[B<-hmac key>]
 
23
[B<file...>]
 
24
 
 
25
[B<md5|md4|md2|sha1|sha|mdc2|ripemd160>]
 
26
[B<-c>]
 
27
[B<-d>]
 
28
[B<file...>]
 
29
 
 
30
=head1 DESCRIPTION
 
31
 
 
32
The digest functions output the message digest of a supplied file or files
 
33
in hexadecimal form. They can also be used for digital signing and verification.
 
34
 
 
35
=head1 OPTIONS
 
36
 
 
37
=over 4
 
38
 
 
39
=item B<-c>
 
40
 
 
41
print out the digest in two digit groups separated by colons, only relevant if
 
42
B<hex> format output is used.
 
43
 
 
44
=item B<-d>
 
45
 
 
46
print out BIO debugging information.
 
47
 
 
48
=item B<-hex>
 
49
 
 
50
digest is to be output as a hex dump. This is the default case for a "normal"
 
51
digest as opposed to a digital signature.
 
52
 
 
53
=item B<-binary>
 
54
 
 
55
output the digest or signature in binary form.
 
56
 
 
57
=item B<-out filename>
 
58
 
 
59
filename to output to, or standard output by default.
 
60
 
 
61
=item B<-sign filename>
 
62
 
 
63
digitally sign the digest using the private key in "filename".
 
64
 
 
65
=item B<-keyform arg>
 
66
 
 
67
Specifies the key format to sign digest with. Only PEM and ENGINE
 
68
formats are supported by the B<dgst> command.
 
69
 
 
70
=item B<-engine id>
 
71
 
 
72
Use engine B<id> for operations (including private key storage).
 
73
This engine is not used as source for digest algorithms, unless it is
 
74
also specified in the configuration file.
 
75
 
 
76
=item B<-sigopt nm:v>
 
77
 
 
78
Pass options to the signature algorithm during sign or verify operations.
 
79
Names and values of these options are algorithm-specific.
 
80
 
 
81
 
 
82
=item B<-passin arg>
 
83
 
 
84
the private key password source. For more information about the format of B<arg>
 
85
see the B<PASS PHRASE ARGUMENTS> section in L<openssl(1)|openssl(1)>.
 
86
 
 
87
=item B<-verify filename>
 
88
 
 
89
verify the signature using the the public key in "filename".
 
90
The output is either "Verification OK" or "Verification Failure".
 
91
 
 
92
=item B<-prverify filename>
 
93
 
 
94
verify the signature using the  the private key in "filename".
 
95
 
 
96
=item B<-signature filename>
 
97
 
 
98
the actual signature to verify.
 
99
 
 
100
=item B<-hmac key>
 
101
 
 
102
create a hashed MAC using "key".
 
103
 
 
104
=item B<-mac alg>
 
105
 
 
106
create MAC (keyed Message Authentication Code). The most popular MAC
 
107
algorithm is HMAC (hash-based MAC), but there are other MAC algorithms
 
108
which are not based on hash, for instance B<gost-mac> algorithm,
 
109
supported by B<ccgost> engine. MAC keys and other options should be set
 
110
via B<-macopt> parameter.
 
111
 
 
112
=item B<-macopt nm:v>
 
113
 
 
114
Passes options to MAC algorithm, specified by B<-mac> key.
 
115
Following options are supported by both by B<HMAC> and B<gost-mac>:
 
116
 
 
117
=over 8
 
118
 
 
119
=item B<key:string>
 
120
        
 
121
Specifies MAC key as alphnumeric string (use if key contain printable
 
122
characters only). String length must conform to any restrictions of
 
123
the MAC algorithm for example exactly 32 chars for gost-mac.
 
124
 
 
125
=item B<hexkey:string>
 
126
 
 
127
Specifies MAC key in hexadecimal form (two hex digits per byte).
 
128
Key length must conform to any restrictions of the MAC algorithm
 
129
for example exactly 32 chars for gost-mac.
 
130
 
 
131
=back
 
132
 
 
133
=item B<-rand file(s)>
 
134
 
 
135
a file or files containing random data used to seed the random number
 
136
generator, or an EGD socket (see L<RAND_egd(3)|RAND_egd(3)>).
 
137
Multiple files can be specified separated by a OS-dependent character.
 
138
The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
 
139
all others. 
 
140
 
 
141
=item B<file...>
 
142
 
 
143
file or files to digest. If no files are specified then standard input is
 
144
used.
 
145
 
 
146
=back
 
147
 
 
148
=head1 NOTES
 
149
 
 
150
The digest of choice for all new applications is SHA1. Other digests are
 
151
however still widely used.
 
152
 
 
153
If you wish to sign or verify data using the DSA algorithm then the dss1
 
154
digest must be used.
 
155
 
 
156
A source of random numbers is required for certain signing algorithms, in
 
157
particular DSA.
 
158
 
 
159
The signing and verify options should only be used if a single file is
 
160
being signed or verified.
 
161
 
 
162
=cut