sm2err.h 2.4 KB

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