sm2err.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #include <contrib/libs/openssl/redef.h>
  2. /*
  3. * Generated by util/mkerr.pl DO NOT EDIT
  4. * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
  5. *
  6. * Licensed under the OpenSSL license (the "License"). You may not use
  7. * this file except in compliance with the License. You can obtain a copy
  8. * in the file LICENSE in the source distribution or at
  9. * https://www.openssl.org/source/license.html
  10. */
  11. #ifndef OSSL_CRYPTO_SM2ERR_H
  12. # define OSSL_CRYPTO_SM2ERR_H
  13. # ifndef HEADER_SYMHACKS_H
  14. # include <openssl/symhacks.h>
  15. # endif
  16. # include <openssl/opensslconf.h>
  17. # ifndef OPENSSL_NO_SM2
  18. # ifdef __cplusplus
  19. extern "C"
  20. # endif
  21. int ERR_load_SM2_strings(void);
  22. /*
  23. * SM2 function codes.
  24. */
  25. # define SM2_F_PKEY_SM2_COPY 115
  26. # define SM2_F_PKEY_SM2_CTRL 109
  27. # define SM2_F_PKEY_SM2_CTRL_STR 110
  28. # define SM2_F_PKEY_SM2_DIGEST_CUSTOM 114
  29. # define SM2_F_PKEY_SM2_INIT 111
  30. # define SM2_F_PKEY_SM2_SIGN 112
  31. # define SM2_F_SM2_COMPUTE_MSG_HASH 100
  32. # define SM2_F_SM2_COMPUTE_USERID_DIGEST 101
  33. # define SM2_F_SM2_COMPUTE_Z_DIGEST 113
  34. # define SM2_F_SM2_DECRYPT 102
  35. # define SM2_F_SM2_ENCRYPT 103
  36. # define SM2_F_SM2_PLAINTEXT_SIZE 104
  37. # define SM2_F_SM2_SIGN 105
  38. # define SM2_F_SM2_SIG_GEN 106
  39. # define SM2_F_SM2_SIG_VERIFY 107
  40. # define SM2_F_SM2_VERIFY 108
  41. /*
  42. * SM2 reason codes.
  43. */
  44. # define SM2_R_ASN1_ERROR 100
  45. # define SM2_R_BAD_SIGNATURE 101
  46. # define SM2_R_BUFFER_TOO_SMALL 107
  47. # define SM2_R_DIST_ID_TOO_LARGE 110
  48. # define SM2_R_ID_NOT_SET 112
  49. # define SM2_R_ID_TOO_LARGE 111
  50. # define SM2_R_INVALID_CURVE 108
  51. # define SM2_R_INVALID_DIGEST 102
  52. # define SM2_R_INVALID_DIGEST_TYPE 103
  53. # define SM2_R_INVALID_ENCODING 104
  54. # define SM2_R_INVALID_FIELD 105
  55. # define SM2_R_NO_PARAMETERS_SET 109
  56. # define SM2_R_USER_ID_TOO_LARGE 106
  57. # endif
  58. #endif