Lines Matching +full:mac +full:- +full:only
18 .\" Set up some character translations and predefined strings. \*(-- will
24 .tr \(*W-
27 . ds -- \(*W-
29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
37 . ds -- \|\(em\|
71 .\" Fear. Run. Save yourself. No user-serviceable parts.
81 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
97 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
98 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
99 . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
100 . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
101 . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
102 . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
104 . \" troff and (daisy-wheel) nroff accents
123 . ds d- d\h'-1'\(ga
124 . ds D- D\h'-1'\(hy
133 .IX Title "OPENSSL-DGST 1ossl"
134 .TH OPENSSL-DGST 1ossl "2023-09-22" "3.0.11" "OpenSSL"
140 openssl\-dgst \- perform digest operations
144 [\fB\-\f(BIdigest\fB\fR]
145 [\fB\-list\fR]
146 [\fB\-help\fR]
147 [\fB\-c\fR]
148 [\fB\-d\fR]
149 [\fB\-debug\fR]
150 [\fB\-hex\fR]
151 [\fB\-binary\fR]
152 [\fB\-xoflen\fR \fIlength\fR]
153 [\fB\-r\fR]
154 [\fB\-out\fR \fIfilename\fR]
155 [\fB\-sign\fR \fIfilename\fR|\fIuri\fR]
156 [\fB\-keyform\fR \fB\s-1DER\s0\fR|\fB\s-1PEM\s0\fR|\fBP12\fR|\fB\s-1ENGINE\s0\fR]
157 [\fB\-passin\fR \fIarg\fR]
158 [\fB\-verify\fR \fIfilename\fR]
159 [\fB\-prverify\fR \fIfilename\fR]
160 [\fB\-signature\fR \fIfilename\fR]
161 [\fB\-sigopt\fR \fInm\fR:\fIv\fR]
162 [\fB\-hmac\fR \fIkey\fR]
163 [\fB\-mac\fR \fIalg\fR]
164 [\fB\-macopt\fR \fInm\fR:\fIv\fR]
165 [\fB\-fips\-fingerprint\fR]
166 [\fB\-engine\fR \fIid\fR]
167 [\fB\-engine_impl\fR \fIid\fR]
168 [\fB\-rand\fR \fIfiles\fR]
169 [\fB\-writerand\fR \fIfile\fR]
170 [\fB\-provider\fR \fIname\fR]
171 [\fB\-provider\-path\fR \fIpath\fR]
172 [\fB\-propquery\fR \fIpropq\fR]
183 A supported \fIdigest\fR name may also be used as the sub-command name.
184 To see the list of supported algorithms, use \f(CW\*(C`openssl list \-digest\-algorithms\*(C'\fR
187 .IP "\fB\-help\fR" 4
188 .IX Item "-help"
190 .IP "\fB\-\f(BIdigest\fB\fR" 4
191 .IX Item "-digest"
192 Specifies name of a supported digest to be used. See option \fB\-list\fR below :
193 .IP "\fB\-list\fR" 4
194 .IX Item "-list"
196 .IP "\fB\-c\fR" 4
197 .IX Item "-c"
198 Print out the digest in two digit groups separated by colons, only relevant if
199 the \fB\-hex\fR option is given as well.
200 .IP "\fB\-d\fR, \fB\-debug\fR" 4
201 .IX Item "-d, -debug"
202 Print out \s-1BIO\s0 debugging information.
203 .IP "\fB\-hex\fR" 4
204 .IX Item "-hex"
206 digest as opposed to a digital signature. See \s-1NOTES\s0 below for digital
207 signatures using \fB\-hex\fR.
208 .IP "\fB\-binary\fR" 4
209 .IX Item "-binary"
211 .IP "\fB\-xoflen\fR \fIlength\fR" 4
212 .IX Item "-xoflen length"
213 Set the output length for \s-1XOF\s0 algorithms, such as \fBshake128\fR and \fBshake256\fR.
217 since the default values are set to only supply half of the maximum security
221 16 (bytes) which results in a security strength of only 64 bits. To ensure the
225 32 (bytes) which results in a security strength of only 128 bits. To ensure the
227 .IP "\fB\-r\fR" 4
228 .IX Item "-r"
231 .IP "\fB\-out\fR \fIfilename\fR" 4
232 .IX Item "-out filename"
234 .IP "\fB\-sign\fR \fIfilename\fR|\fIuri\fR" 4
235 .IX Item "-sign filename|uri"
237 does not support Ed25519 or Ed448 private keys. Use the \fBopenssl\-pkeyutl\fR\|(1)
239 .IP "\fB\-keyform\fR \fB\s-1DER\s0\fR|\fB\s-1PEM\s0\fR|\fBP12\fR|\fB\s-1ENGINE\s0\fR" 4
240 .IX Item "-keyform DER|PEM|P12|ENGINE"
242 See \fBopenssl\-format\-options\fR\|(1) for details.
243 .IP "\fB\-sigopt\fR \fInm\fR:\fIv\fR" 4
244 .IX Item "-sigopt nm:v"
246 Names and values of these options are algorithm-specific.
247 .IP "\fB\-passin\fR \fIarg\fR" 4
248 .IX Item "-passin arg"
250 see \fBopenssl\-passphrase\-options\fR\|(1).
251 .IP "\fB\-verify\fR \fIfilename\fR" 4
252 .IX Item "-verify filename"
254 The output is either \*(L"Verified \s-1OK\*(R"\s0 or \*(L"Verification Failure\*(R".
255 .IP "\fB\-prverify\fR \fIfilename\fR" 4
256 .IX Item "-prverify filename"
258 .IP "\fB\-signature\fR \fIfilename\fR" 4
259 .IX Item "-signature filename"
261 .IP "\fB\-hmac\fR \fIkey\fR" 4
262 .IX Item "-hmac key"
263 Create a hashed \s-1MAC\s0 using \*(L"key\*(R".
265 The \fBopenssl\-mac\fR\|(1) command should be preferred to using this command line
267 .IP "\fB\-mac\fR \fIalg\fR" 4
268 .IX Item "-mac alg"
269 Create \s-1MAC\s0 (keyed Message Authentication Code). The most popular \s-1MAC\s0
270 algorithm is \s-1HMAC\s0 (hash-based \s-1MAC\s0), but there are other \s-1MAC\s0 algorithms
271 which are not based on hash, for instance \fBgost-mac\fR algorithm,
272 supported by the \fBgost\fR engine. \s-1MAC\s0 keys and other options should be set
273 via \fB\-macopt\fR parameter.
275 The \fBopenssl\-mac\fR\|(1) command should be preferred to using this command line
277 .IP "\fB\-macopt\fR \fInm\fR:\fIv\fR" 4
278 .IX Item "-macopt nm:v"
279 Passes options to \s-1MAC\s0 algorithm, specified by \fB\-mac\fR key.
280 Following options are supported by both by \fB\s-1HMAC\s0\fR and \fBgost-mac\fR:
284 Specifies \s-1MAC\s0 key as alphanumeric string (use if key contain printable
285 characters only). String length must conform to any restrictions of
286 the \s-1MAC\s0 algorithm for example exactly 32 chars for gost-mac.
289 Specifies \s-1MAC\s0 key in hexadecimal form (two hex digits per byte).
290 Key length must conform to any restrictions of the \s-1MAC\s0 algorithm
291 for example exactly 32 chars for gost-mac.
295 The \fBopenssl\-mac\fR\|(1) command should be preferred to using this command line
298 .IP "\fB\-fips\-fingerprint\fR" 4
299 .IX Item "-fips-fingerprint"
300 Compute \s-1HMAC\s0 using a specific key for certain OpenSSL-FIPS operations.
301 .IP "\fB\-rand\fR \fIfiles\fR, \fB\-writerand\fR \fIfile\fR" 4
302 .IX Item "-rand files, -writerand file"
304 .IP "\fB\-engine\fR \fIid\fR" 4
305 .IX Item "-engine id"
309 The engine is not used for digests unless the \fB\-engine_impl\fR option is
311 .IP "\fB\-engine_impl\fR \fIid\fR" 4
312 .IX Item "-engine_impl id"
313 When used with the \fB\-engine\fR option, it specifies to also use
315 .IP "\fB\-provider\fR \fIname\fR" 4
316 .IX Item "-provider name"
318 .IP "\fB\-provider\-path\fR \fIpath\fR" 4
319 .IX Item "-provider-path path"
320 .IP "\fB\-propquery\fR \fIpropq\fR" 4
321 .IX Item "-propquery propq"
330 To create a hex-encoded message digest of a file:
333 \& openssl dgst \-md5 \-hex file.txt
338 To sign a file using \s-1SHA\-256\s0 with binary file output:
341 \& openssl dgst \-sha256 \-sign privatekey.pem \-out signature.sign file.txt
343 \& openssl sha256 \-sign privatekey.pem \-out signature.sign file.txt
349 \& openssl dgst \-sha256 \-verify publickey.pem \e
350 \& \-signature signature.sign \e
357 The \f(CW\*(C`openssl list \-digest\-algorithms\*(C'\fR command can be used to list them.
359 New or agile applications should use probably use \s-1SHA\-256.\s0 Other digests,
360 particularly \s-1SHA\-1\s0 and \s-1MD5,\s0 are still widely used for interoperating
364 (\s-1RSA, ECC,\s0 etc) to use for signing based on the private key's \s-1ASN.1\s0 info.
365 When verifying signatures, it only handles the \s-1RSA, DSA,\s0 or \s-1ECDSA\s0 signature
367 formats such as x.509, \s-1CMS,\s0 and S/MIME.
370 particular \s-1ECDSA\s0 and \s-1DSA.\s0
372 The signing and verify options should only be used if a single file is
375 Hex signatures cannot be verified using \fBopenssl\fR. Instead, use \*(L"xxd \-r\*(R"
379 The \fBopenssl\-mac\fR\|(1) command is preferred over the \fB\-hmac\fR, \fB\-mac\fR and
380 \&\fB\-macopt\fR command line options.
383 \&\fBopenssl\-mac\fR\|(1)
386 The default digest was changed from \s-1MD5\s0 to \s-1SHA256\s0 in OpenSSL 1.1.0.
387 The FIPS-related options were removed in OpenSSL 1.1.0.
389 The \fB\-engine\fR and \fB\-engine_impl\fR options were deprecated in OpenSSL 3.0.
392 Copyright 2000\-2022 The OpenSSL Project Authors. All Rights Reserved.
396 in the file \s-1LICENSE\s0 in the source distribution or at