legacy_md5.c 702 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright 2015-2019 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #include <openssl/opensslconf.h>
  10. #ifndef OPENSSL_NO_MD5
  11. # include <openssl/md5.h>
  12. # include "crypto/evp.h"
  13. static const EVP_MD md5_md = {
  14. NID_md5,
  15. NID_md5WithRSAEncryption,
  16. MD5_DIGEST_LENGTH,
  17. 0,
  18. NULL,
  19. NULL,
  20. NULL,
  21. NULL,
  22. NULL,
  23. MD5_CBLOCK,
  24. };
  25. const EVP_MD *EVP_md5(void)
  26. {
  27. return &md5_md;
  28. }
  29. #endif /* OPENSSL_NO_MD5 */