Lines Matching +full:mac +full:- +full:only

2 {- OpenSSL::safe::output_do_not_edit_headers(); -}
6 openssl-mac - perform Message Authentication Code operations
10 B<openssl mac>
11 [B<-help>]
12 [B<-cipher>]
13 [B<-digest>]
14 [B<-macopt>]
15 [B<-in> I<filename>]
16 [B<-out> I<filename>]
17 [B<-binary>]
18 {- $OpenSSL::safe::opt_provider_synopsis -}
23 The message authentication code functions output the MAC of a supplied input
30 =item B<-help>
34 =item B<-in> I<filename>
36 Input filename to calculate a MAC for, or standard input by default.
37 Standard input is used if the filename is '-'.
40 =item B<-out> I<filename>
44 =item B<-binary>
46 Output the MAC in binary form. Uses hexadecimal text format if not specified.
48 =item B<-cipher> I<name>
51 For CMAC it must be one of AES-128-CBC, AES-192-CBC, AES-256-CBC or
52 DES-EDE3-CBC.
53 For GMAC it should be a GCM mode cipher e.g. AES-128-GCM.
55 =item B<-digest> I<name>
58 characters only).
59 The string length must conform to any restrictions of the MAC algorithm.
60 To see the list of supported digests, use C<openssl list -digest-commands>.
62 =item B<-macopt> I<nm>:I<v>
64 Passes options to the MAC algorithm.
73 Specifies the MAC key as an alphanumeric string (use if the key contains
74 printable characters only).
75 The string length must conform to any restrictions of the MAC algorithm.
76 A key must be specified for every MAC algorithm.
80 Specifies the MAC key in hexadecimal form (two hex digits per byte).
81 The key length must conform to any restrictions of the MAC algorithm.
82 A key must be specified for every MAC algorithm.
87 printable characters only).
105 This option is identical to the B<-digest> option.
109 This option is identical to the B<-cipher> option.
113 {- $OpenSSL::safe::opt_provider_item -}
117 Specifies the name of a supported MAC algorithm which will be used.
118 To see the list of supported MAC's use the command C<openssl list
119 -mac-algorithms>.
126 To create a hex-encoded HMAC-SHA1 MAC of a file and write to stdout:
128 openssl mac -digest SHA1 \
129 -macopt hexkey:000102030405060708090A0B0C0D0E0F10111213 \
130 -in msg.bin HMAC
132 To create a SipHash MAC from a file with a binary file output:
134 openssl mac -macopt hexkey:000102030405060708090A0B0C0D0E0F \
135 -in msg.bin -out out.bin -binary SipHash
137 To create a hex-encoded CMAC-AES-128-CBC MAC from a file:
139 openssl mac -cipher AES-128-CBC \
140 -macopt hexkey:77A77FAF290C1FA30C683DF16BA7A77B \
141 -in msg.bin CMAC
143 To create a hex-encoded KMAC128 MAC from a file with a Customisation String
146 openssl mac -macopt custom:Tag -macopt hexkey:40414243444546 \
147 -macopt size:16 -in msg.bin KMAC128
149 To create a hex-encoded GMAC-AES-128-GCM with a IV from a file:
151 openssl mac -cipher AES-128-GCM -macopt hexiv:E0E00F19FED7BA0136A797F3 \
152 -macopt hexkey:77A77FAF290C1FA30C683DF16BA7A77B -in msg.bin GMAC
156 The MAC mechanisms that are available will depend on the options
158 Use C<openssl list -mac-algorithms> to list them.
164 L<EVP_MAC-CMAC(7)>,
165 L<EVP_MAC-GMAC(7)>,
166 L<EVP_MAC-HMAC(7)>,
167 L<EVP_MAC-KMAC(7)>,
168 L<EVP_MAC-Siphash(7)>,
169 L<EVP_MAC-Poly1305(7)>
173 Copyright 2018-2024 The OpenSSL Project Authors. All Rights Reserved.