legacy_md5_sha1.c 784 B

12345678910111213141516171819202122232425262728293031323334353637
  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. #include "prov/md5_sha1.h" /* diverse MD5_SHA1 macros */
  11. #ifndef OPENSSL_NO_MD5
  12. # include <openssl/obj_mac.h>
  13. # include "crypto/evp.h"
  14. static const EVP_MD md5_sha1_md = {
  15. NID_md5_sha1,
  16. NID_md5_sha1,
  17. MD5_SHA1_DIGEST_LENGTH,
  18. 0,
  19. NULL,
  20. NULL,
  21. NULL,
  22. NULL,
  23. NULL,
  24. MD5_SHA1_CBLOCK,
  25. };
  26. const EVP_MD *EVP_md5_sha1(void)
  27. {
  28. return &md5_sha1_md;
  29. }
  30. #endif /* OPENSSL_NO_MD5 */