core_names.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright 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. #ifndef OSSL_CORE_NAMES_H
  10. # define OSSL_CORE_NAMES_H
  11. # ifdef __cplusplus
  12. extern "C" {
  13. # endif
  14. /*
  15. * Well known parameter names that Providers can define
  16. */
  17. /*
  18. * A printable name for this provider
  19. * Type: OSSL_PARAM_UTF8_STRING
  20. */
  21. #define OSSL_PROV_PARAM_NAME "name"
  22. /*
  23. * A version string for this provider
  24. * Type: OSSL_PARAM_UTF8_STRING
  25. */
  26. #define OSSL_PROV_PARAM_VERSION "version"
  27. /*
  28. * A string providing provider specific build information
  29. * Type: OSSL_PARAM_UTF8_STRING
  30. */
  31. #define OSSL_PROV_PARAM_BUILDINFO "buildinfo"
  32. /* Well known cipher parameters */
  33. #define OSSL_CIPHER_PARAM_PADDING "padding"
  34. #define OSSL_CIPHER_PARAM_MODE "mode"
  35. /* digest parameters */
  36. #define OSSL_DIGEST_PARAM_XOFLEN "xoflen"
  37. #define OSSL_DIGEST_PARAM_SSL3_MS "ssl3-ms"
  38. #define OSSL_DIGEST_PARAM_PAD_TYPE "pad_type"
  39. #define OSSL_DIGEST_PARAM_MICALG "micalg"
  40. # ifdef __cplusplus
  41. }
  42. # endif
  43. #endif