standard_methods.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright 2006-2018 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. /*
  10. * This table MUST be kept in ascending order of the NID each method
  11. * represents (corresponding to the pkey_id field) as OBJ_bsearch
  12. * is used to search it.
  13. */
  14. static const EVP_PKEY_ASN1_METHOD *standard_methods[] = {
  15. #ifndef OPENSSL_NO_RSA
  16. &rsa_asn1_meths[0],
  17. &rsa_asn1_meths[1],
  18. #endif
  19. #ifndef OPENSSL_NO_DH
  20. &dh_asn1_meth,
  21. #endif
  22. #ifndef OPENSSL_NO_DSA
  23. &dsa_asn1_meths[0],
  24. &dsa_asn1_meths[1],
  25. &dsa_asn1_meths[2],
  26. &dsa_asn1_meths[3],
  27. &dsa_asn1_meths[4],
  28. #endif
  29. #ifndef OPENSSL_NO_EC
  30. &eckey_asn1_meth,
  31. #endif
  32. &hmac_asn1_meth,
  33. #ifndef OPENSSL_NO_CMAC
  34. &cmac_asn1_meth,
  35. #endif
  36. #ifndef OPENSSL_NO_RSA
  37. &rsa_pss_asn1_meth,
  38. #endif
  39. #ifndef OPENSSL_NO_DH
  40. &dhx_asn1_meth,
  41. #endif
  42. #ifndef OPENSSL_NO_EC
  43. &ecx25519_asn1_meth,
  44. &ecx448_asn1_meth,
  45. #endif
  46. #ifndef OPENSSL_NO_POLY1305
  47. &poly1305_asn1_meth,
  48. #endif
  49. #ifndef OPENSSL_NO_SIPHASH
  50. &siphash_asn1_meth,
  51. #endif
  52. #ifndef OPENSSL_NO_EC
  53. &ed25519_asn1_meth,
  54. &ed448_asn1_meth,
  55. #endif
  56. #ifndef OPENSSL_NO_SM2
  57. &sm2_asn1_meth,
  58. #endif
  59. };