The dgst command allows MACs to be calculated, the mac command is the more
recent interface for doing the same and provides better access to a wider
range of MACs.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/9962)
Create a hashed MAC using "key".
Create a hashed MAC using "key".
+The L<openssl-mac(1)> command should be preferred to using this command line
+option.
+
=item B<-mac alg>
Create MAC (keyed Message Authentication Code). The most popular MAC
=item B<-mac alg>
Create MAC (keyed Message Authentication Code). The most popular MAC
supported by B<ccgost> engine. MAC keys and other options should be set
via B<-macopt> parameter.
supported by B<ccgost> engine. MAC keys and other options should be set
via B<-macopt> parameter.
+The L<openssl-mac(1)> command should be preferred to using this command line
+option.
+
=item B<-macopt nm:v>
Passes options to MAC algorithm, specified by B<-mac> key.
=item B<-macopt nm:v>
Passes options to MAC algorithm, specified by B<-mac> key.
+The L<openssl-mac(1)> command should be preferred to using this command line
+option.
+
=item B<-rand file...>
A file or files containing random data used to seed the random number
=item B<-rand file...>
A file or files containing random data used to seed the random number
or similar program to transform the hex signature into a binary signature
prior to verification.
or similar program to transform the hex signature into a binary signature
prior to verification.
+The L<openssl-mac(1)> command is preferred over the B<-hmac>, B<-mac> and
+B<-macopt> command line options.
+
+=head1 SEE ALSO
+
+L<openssl-mac(1)>
+
=head1 HISTORY
The default digest was changed from MD5 to SHA256 in OpenSSL 1.1.0.
=head1 HISTORY
The default digest was changed from MD5 to SHA256 in OpenSSL 1.1.0.