c_alld.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright 1995-2018 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 "crypto/evp.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. EVP_add_digest(EVP_sha512_224());
  41. EVP_add_digest(EVP_sha512_256());
  42. #ifndef OPENSSL_NO_WHIRLPOOL
  43. EVP_add_digest(EVP_whirlpool());
  44. #endif
  45. #ifndef OPENSSL_NO_SM3
  46. EVP_add_digest(EVP_sm3());
  47. #endif
  48. #ifndef OPENSSL_NO_BLAKE2
  49. EVP_add_digest(EVP_blake2b512());
  50. EVP_add_digest(EVP_blake2s256());
  51. #endif
  52. EVP_add_digest(EVP_sha3_224());
  53. EVP_add_digest(EVP_sha3_256());
  54. EVP_add_digest(EVP_sha3_384());
  55. EVP_add_digest(EVP_sha3_512());
  56. EVP_add_digest(EVP_shake128());
  57. EVP_add_digest(EVP_shake256());
  58. }