c_alld.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the OpenSSL license (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 <stdio.h>
  10. #include "internal/cryptlib.h"
  11. #include <openssl/evp.h>
  12. #include <internal/evp_int.h>
  13. #include <openssl/pkcs12.h>
  14. #include <openssl/objects.h>
  15. void openssl_add_all_digests_int(void)
  16. {
  17. #ifndef OPENSSL_NO_MD4
  18. EVP_add_digest(EVP_md4());
  19. #endif
  20. #ifndef OPENSSL_NO_MD5
  21. EVP_add_digest(EVP_md5());
  22. EVP_add_digest_alias(SN_md5, "ssl3-md5");
  23. EVP_add_digest(EVP_md5_sha1());
  24. #endif
  25. EVP_add_digest(EVP_sha1());
  26. EVP_add_digest_alias(SN_sha1, "ssl3-sha1");
  27. EVP_add_digest_alias(SN_sha1WithRSAEncryption, SN_sha1WithRSA);
  28. #if !defined(OPENSSL_NO_MDC2) && !defined(OPENSSL_NO_DES)
  29. EVP_add_digest(EVP_mdc2());
  30. #endif
  31. #ifndef OPENSSL_NO_RMD160
  32. EVP_add_digest(EVP_ripemd160());
  33. EVP_add_digest_alias(SN_ripemd160, "ripemd");
  34. EVP_add_digest_alias(SN_ripemd160, "rmd160");
  35. #endif
  36. EVP_add_digest(EVP_sha224());
  37. EVP_add_digest(EVP_sha256());
  38. EVP_add_digest(EVP_sha384());
  39. EVP_add_digest(EVP_sha512());
  40. #ifndef OPENSSL_NO_WHIRLPOOL
  41. EVP_add_digest(EVP_whirlpool());
  42. #endif
  43. #ifndef OPENSSL_NO_BLAKE2
  44. EVP_add_digest(EVP_blake2b512());
  45. EVP_add_digest(EVP_blake2s256());
  46. #endif
  47. }