standard_methods.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright 2006-2021 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. &ossl_rsa_asn1_meths[0],
  16. &ossl_rsa_asn1_meths[1],
  17. #ifndef OPENSSL_NO_DH
  18. &ossl_dh_asn1_meth,
  19. #endif
  20. #ifndef OPENSSL_NO_DSA
  21. &ossl_dsa_asn1_meths[0],
  22. &ossl_dsa_asn1_meths[1],
  23. &ossl_dsa_asn1_meths[2],
  24. &ossl_dsa_asn1_meths[3],
  25. &ossl_dsa_asn1_meths[4],
  26. #endif
  27. #ifndef OPENSSL_NO_EC
  28. &ossl_eckey_asn1_meth,
  29. #endif
  30. &ossl_rsa_pss_asn1_meth,
  31. #ifndef OPENSSL_NO_DH
  32. &ossl_dhx_asn1_meth,
  33. #endif
  34. #ifndef OPENSSL_NO_EC
  35. &ossl_ecx25519_asn1_meth,
  36. &ossl_ecx448_asn1_meth,
  37. #endif
  38. #ifndef OPENSSL_NO_EC
  39. &ossl_ed25519_asn1_meth,
  40. &ossl_ed448_asn1_meth,
  41. #endif
  42. #ifndef OPENSSL_NO_SM2
  43. &ossl_sm2_asn1_meth,
  44. #endif
  45. };