Lines Matching +full:aes +full:- +full:cmac

2 {- OpenSSL::safe::output_do_not_edit_headers(); -}
6 openssl-mac - perform Message Authentication Code operations
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 -}
30 =item B<-help>
34 =item B<-in> I<filename>
37 Standard input is used if the filename is '-'.
40 =item B<-out> I<filename>
44 =item B<-binary>
48 =item B<-cipher> I<name>
50 Used by CMAC and GMAC to specify the cipher algorithm.
51 For CMAC it should be a CBC mode cipher e.g. AES-128-CBC.
52 For GMAC it should be a GCM mode cipher e.g. AES-128-GCM.
54 =item B<-digest> I<name>
59 To see the list of supported digests, use C<openssl list -digest-commands>.
61 =item B<-macopt> I<nm>:I<v>
104 This option is identical to the B<-digest> option.
108 This option is identical to the B<-cipher> option.
112 {- $OpenSSL::safe::opt_provider_item -}
118 -mac-algorithms>.
125 To create a hex-encoded HMAC-SHA1 MAC of a file and write to stdout:
127 openssl mac -digest SHA1 \
128 -macopt hexkey:000102030405060708090A0B0C0D0E0F10111213 \
129 -in msg.bin HMAC
133 openssl mac -macopt hexkey:000102030405060708090A0B0C0D0E0F \
134 -in msg.bin -out out.bin -binary SipHash
136 To create a hex-encoded CMAC-AES-128-CBC MAC from a file:
138 openssl mac -cipher AES-128-CBC \
139 -macopt hexkey:77A77FAF290C1FA30C683DF16BA7A77B \
140 -in msg.bin CMAC
142 To create a hex-encoded KMAC128 MAC from a file with a Customisation String
145 openssl mac -macopt custom:Tag -macopt hexkey:40414243444546 \
146 -macopt size:16 -in msg.bin KMAC128
148 To create a hex-encoded GMAC-AES-128-GCM with a IV from a file:
150 openssl mac -cipher AES-128-GCM -macopt hexiv:E0E00F19FED7BA0136A797F3 \
151 -macopt hexkey:77A77FAF290C1FA30C683DF16BA7A77B -in msg.bin GMAC
157 Use C<openssl list -mac-algorithms> to list them.
163 L<EVP_MAC-CMAC(7)>,
164 L<EVP_MAC-GMAC(7)>,
165 L<EVP_MAC-HMAC(7)>,
166 L<EVP_MAC-KMAC(7)>,
167 L<EVP_MAC-Siphash(7)>,
168 L<EVP_MAC-Poly1305(7)>
172 Copyright 2018-2024 The OpenSSL Project Authors. All Rights Reserved.