legacy_md4.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_MD4
  11. # include <openssl/md4.h>
  12. # include "crypto/evp.h"
  13. static const EVP_MD md4_md = {
  14. NID_md4,
  15. NID_md4WithRSAEncryption,
  16. MD4_DIGEST_LENGTH,
  17. 0,
  18. NULL,
  19. NULL,
  20. NULL,
  21. NULL,
  22. NULL,
  23. MD4_CBLOCK,
  24. };
  25. const EVP_MD *EVP_md4(void)
  26. {
  27. return &md4_md;
  28. }
  29. #endif /* OPENSSL_NO_MD4 */