xref: /freebsd/crypto/openssl/doc/man3/EVP_mdc2.pod (revision ad991e4c142ebabad7aef488ad97b189ecabb270)
1e71b7053SJung-uk Kim=pod
2e71b7053SJung-uk Kim
3e71b7053SJung-uk Kim=head1 NAME
4e71b7053SJung-uk Kim
5e71b7053SJung-uk KimEVP_mdc2
6e71b7053SJung-uk Kim- MDC-2 For EVP
7e71b7053SJung-uk Kim
8e71b7053SJung-uk Kim=head1 SYNOPSIS
9e71b7053SJung-uk Kim
10e71b7053SJung-uk Kim #include <openssl/evp.h>
11e71b7053SJung-uk Kim
12e71b7053SJung-uk Kim const EVP_MD *EVP_mdc2(void);
13e71b7053SJung-uk Kim
14e71b7053SJung-uk Kim=head1 DESCRIPTION
15e71b7053SJung-uk Kim
16e71b7053SJung-uk KimMDC-2 (Modification Detection Code 2 or Meyer-Schilling) is a cryptographic
17b077aed3SPierre Proncheryhash function based on a block cipher. This implementation is only available
18b077aed3SPierre Proncherywith the legacy provider.
19e71b7053SJung-uk Kim
20e71b7053SJung-uk Kim=over 4
21e71b7053SJung-uk Kim
22e71b7053SJung-uk Kim=item EVP_mdc2()
23e71b7053SJung-uk Kim
24e71b7053SJung-uk KimThe MDC-2DES algorithm of using MDC-2 with the DES block cipher. It produces a
25e71b7053SJung-uk Kim128-bit output from a given input.
26e71b7053SJung-uk Kim
27e71b7053SJung-uk Kim=back
28e71b7053SJung-uk Kim
29b077aed3SPierre Pronchery=head1 NOTES
30b077aed3SPierre Pronchery
31b077aed3SPierre ProncheryDevelopers should be aware of the negative performance implications of
32b077aed3SPierre Proncherycalling this function multiple times and should consider using
33*ad991e4cSEd MasteL<EVP_MD_fetch(3)> with L<EVP_MD-MDC2(7)> instead.
34b077aed3SPierre ProncherySee L<crypto(7)/Performance> for further information.
35b077aed3SPierre Pronchery
36e71b7053SJung-uk Kim=head1 RETURN VALUES
37e71b7053SJung-uk Kim
38e71b7053SJung-uk KimThese functions return a B<EVP_MD> structure that contains the
39b077aed3SPierre Proncheryimplementation of the message digest. See L<EVP_MD_meth_new(3)> for
40e71b7053SJung-uk Kimdetails of the B<EVP_MD> structure.
41e71b7053SJung-uk Kim
42e71b7053SJung-uk Kim=head1 CONFORMING TO
43e71b7053SJung-uk Kim
44e71b7053SJung-uk KimISO/IEC 10118-2:2000 Hash-Function 2, with DES as the underlying block cipher.
45e71b7053SJung-uk Kim
46e71b7053SJung-uk Kim=head1 SEE ALSO
47e71b7053SJung-uk Kim
48e71b7053SJung-uk KimL<evp(7)>,
49b077aed3SPierre ProncheryL<provider(7)>,
50e71b7053SJung-uk KimL<EVP_DigestInit(3)>
51e71b7053SJung-uk Kim
52e71b7053SJung-uk Kim=head1 COPYRIGHT
53e71b7053SJung-uk Kim
54b077aed3SPierre ProncheryCopyright 2017-2023 The OpenSSL Project Authors. All Rights Reserved.
55e71b7053SJung-uk Kim
56b077aed3SPierre ProncheryLicensed under the Apache License 2.0 (the "License").  You may not use
57e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
58e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
59e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
60e71b7053SJung-uk Kim
61e71b7053SJung-uk Kim=cut
62e71b7053SJung-uk Kim
63