EVP_mdc2.pod 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. =pod
  2. =head1 NAME
  3. EVP_mdc2
  4. - MDC-2 For EVP
  5. =head1 SYNOPSIS
  6. #include <openssl/evp.h>
  7. const EVP_MD *EVP_mdc2(void);
  8. =head1 DESCRIPTION
  9. MDC-2 (Modification Detection Code 2 or Meyer-Schilling) is a cryptographic
  10. hash function based on a block cipher. This implementation is only available
  11. with the legacy provider.
  12. =over 4
  13. =item EVP_mdc2()
  14. The MDC-2DES algorithm of using MDC-2 with the DES block cipher. It produces a
  15. 128-bit output from a given input.
  16. =back
  17. =head1 NOTES
  18. Developers should be aware of the negative performance implications of
  19. calling this function multiple times and should consider using
  20. L<EVP_MD_fetch(3)> with L<EVP_MD-MDC2(7)> instead.
  21. See L<crypto(7)/Performance> for further information.
  22. =head1 RETURN VALUES
  23. These functions return a B<EVP_MD> structure that contains the
  24. implementation of the message digest. See L<EVP_MD_meth_new(3)> for
  25. details of the B<EVP_MD> structure.
  26. =head1 CONFORMING TO
  27. ISO/IEC 10118-2:2000 Hash-Function 2, with DES as the underlying block cipher.
  28. =head1 SEE ALSO
  29. L<evp(7)>,
  30. L<provider(7)>,
  31. L<EVP_DigestInit(3)>
  32. =head1 COPYRIGHT
  33. Copyright 2017-2023 The OpenSSL Project Authors. All Rights Reserved.
  34. Licensed under the Apache License 2.0 (the "License"). You may not use
  35. this file except in compliance with the License. You can obtain a copy
  36. in the file LICENSE in the source distribution or at
  37. L<https://www.openssl.org/source/license.html>.
  38. =cut