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-MAC 1ossl"
134 .TH OPENSSL-MAC 1ossl "2023-09-22" "3.0.11" "OpenSSL"
140 openssl\-mac \- perform Message Authentication Code operations
143 \&\fBopenssl mac\fR
144 [\fB\-help\fR]
145 [\fB\-cipher\fR]
146 [\fB\-digest\fR]
147 [\fB\-macopt\fR]
148 [\fB\-in\fR \fIfilename\fR]
149 [\fB\-out\fR \fIfilename\fR]
150 [\fB\-binary\fR]
151 [\fB\-provider\fR \fIname\fR]
152 [\fB\-provider\-path\fR \fIpath\fR]
153 [\fB\-propquery\fR \fIpropq\fR]
157 The message authentication code functions output the \s-1MAC\s0 of a supplied input
161 .IP "\fB\-help\fR" 4
162 .IX Item "-help"
164 .IP "\fB\-in\fR \fIfilename\fR" 4
165 .IX Item "-in filename"
166 Input filename to calculate a \s-1MAC\s0 for, or standard input by default.
167 Standard input is used if the filename is '\-'.
169 .IP "\fB\-out\fR \fIfilename\fR" 4
170 .IX Item "-out filename"
172 .IP "\fB\-binary\fR" 4
173 .IX Item "-binary"
174 Output the \s-1MAC\s0 in binary form. Uses hexadecimal text format if not specified.
175 .IP "\fB\-cipher\fR \fIname\fR" 4
176 .IX Item "-cipher name"
177 Used by \s-1CMAC\s0 and \s-1GMAC\s0 to specify the cipher algorithm.
178 For \s-1CMAC\s0 it must be one of \s-1AES\-128\-CBC, AES\-192\-CBC, AES\-256\-CBC\s0 or
179 \&\s-1DES\-EDE3\-CBC.\s0
180 For \s-1GMAC\s0 it should be a \s-1GCM\s0 mode cipher e.g. \s-1AES\-128\-GCM.\s0
181 .IP "\fB\-digest\fR \fIname\fR" 4
182 .IX Item "-digest name"
183 Used by \s-1HMAC\s0 as an alphanumeric string (use if the key contains printable
184 characters only).
185 The string length must conform to any restrictions of the \s-1MAC\s0 algorithm.
186 To see the list of supported digests, use \f(CW\*(C`openssl list \-digest\-commands\*(C'\fR.
187 .IP "\fB\-macopt\fR \fInm\fR:\fIv\fR" 4
188 .IX Item "-macopt nm:v"
189 Passes options to the \s-1MAC\s0 algorithm.
190 A comprehensive list of controls can be found in the \s-1EVP_MAC\s0 implementation
196 Specifies the \s-1MAC\s0 key as an alphanumeric string (use if the key contains
197 printable characters only).
198 The string length must conform to any restrictions of the \s-1MAC\s0 algorithm.
199 A key must be specified for every \s-1MAC\s0 algorithm.
202 Specifies the \s-1MAC\s0 key in hexadecimal form (two hex digits per byte).
203 The key length must conform to any restrictions of the \s-1MAC\s0 algorithm.
204 A key must be specified for every \s-1MAC\s0 algorithm.
207 Used by \s-1GMAC\s0 to specify an \s-1IV\s0 as an alphanumeric string (use if the \s-1IV\s0 contains
208 printable characters only).
211 Used by \s-1GMAC\s0 to specify an \s-1IV\s0 in hexadecimal form (two hex digits per byte).
214 Used by \s-1KMAC128\s0 or \s-1KMAC256\s0 to specify an output length.
218 Used by \s-1KMAC128\s0 or \s-1KMAC256\s0 to specify a customization string.
222 This option is identical to the \fB\-digest\fR option.
225 This option is identical to the \fB\-cipher\fR option.
229 .IP "\fB\-provider\fR \fIname\fR" 4
230 .IX Item "-provider name"
232 .IP "\fB\-provider\-path\fR \fIpath\fR" 4
233 .IX Item "-provider-path path"
234 .IP "\fB\-propquery\fR \fIpropq\fR" 4
235 .IX Item "-propquery propq"
240 Specifies the name of a supported \s-1MAC\s0 algorithm which will be used.
241 To see the list of supported \s-1MAC\s0's use the command \f(CW\*(C`openssl list
242 \&\-mac\-algorithms\*(C'\fR.
245 To create a hex-encoded \s-1HMAC\-SHA1 MAC\s0 of a file and write to stdout: \e
246 openssl mac \-digest \s-1SHA1\s0 \e
247 \-macopt hexkey:000102030405060708090A0B0C0D0E0F10111213 \e
248 \-in msg.bin \s-1HMAC\s0
250 To create a SipHash \s-1MAC\s0 from a file with a binary file output: \e
251 openssl mac \-macopt hexkey:000102030405060708090A0B0C0D0E0F \e
252 \-in msg.bin \-out out.bin \-binary SipHash
254 To create a hex-encoded \s-1CMAC\-AES\-128\-CBC MAC\s0 from a file:\e
255 openssl mac \-cipher \s-1AES\-128\-CBC\s0 \e
256 \-macopt hexkey:77A77FAF290C1FA30C683DF16BA7A77B \e
257 \-in msg.bin \s-1CMAC\s0
259 To create a hex-encoded \s-1KMAC128 MAC\s0 from a file with a Customisation String
261 openssl mac \-macopt custom:Tag \-macopt hexkey:40414243444546 \e
262 \-macopt size:16 \-in msg.bin \s-1KMAC128\s0
264 To create a hex-encoded \s-1GMAC\-AES\-128\-GCM\s0 with a \s-1IV\s0 from a file: \e
265 openssl mac \-cipher \s-1AES\-128\-GCM\s0 \-macopt hexiv:E0E00F19FED7BA0136A797F3 \e
266 \-macopt hexkey:77A77FAF290C1FA30C683DF16BA7A77B \-in msg.bin \s-1GMAC\s0
269 The \s-1MAC\s0 mechanisms that are available will depend on the options
271 Use \f(CW\*(C`openssl list \-mac\-algorithms\*(C'\fR to list them.
275 \&\s-1\fBEVP_MAC\s0\fR\|(3),
276 \&\s-1\fBEVP_MAC\-CMAC\s0\fR\|(7),
277 \&\s-1\fBEVP_MAC\-GMAC\s0\fR\|(7),
278 \&\s-1\fBEVP_MAC\-HMAC\s0\fR\|(7),
279 \&\s-1\fBEVP_MAC\-KMAC\s0\fR\|(7),
280 \&\fBEVP_MAC\-Siphash\fR\|(7),
281 \&\fBEVP_MAC\-Poly1305\fR\|(7)
284 Copyright 2018\-2022 The OpenSSL Project Authors. All Rights Reserved.
288 in the file \s-1LICENSE\s0 in the source distribution or at