sm2err.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Generated by util/mkerr.pl DO NOT EDIT
  3. * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License 2.0 (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 OSSL_CRYPTO_SM2ERR_H
  11. # define OSSL_CRYPTO_SM2ERR_H
  12. # pragma once
  13. # include <openssl/opensslconf.h>
  14. # include <openssl/symhacks.h>
  15. # ifdef __cplusplus
  16. extern "C" {
  17. # endif
  18. # ifndef OPENSSL_NO_SM2
  19. int ossl_err_load_SM2_strings(void);
  20. /*
  21. * SM2 reason codes.
  22. */
  23. # define SM2_R_ASN1_ERROR 100
  24. # define SM2_R_BAD_SIGNATURE 101
  25. # define SM2_R_BUFFER_TOO_SMALL 107
  26. # define SM2_R_DIST_ID_TOO_LARGE 110
  27. # define SM2_R_ID_NOT_SET 112
  28. # define SM2_R_ID_TOO_LARGE 111
  29. # define SM2_R_INVALID_CURVE 108
  30. # define SM2_R_INVALID_DIGEST 102
  31. # define SM2_R_INVALID_DIGEST_TYPE 103
  32. # define SM2_R_INVALID_ENCODING 104
  33. # define SM2_R_INVALID_FIELD 105
  34. # define SM2_R_INVALID_PRIVATE_KEY 113
  35. # define SM2_R_NO_PARAMETERS_SET 109
  36. # define SM2_R_USER_ID_TOO_LARGE 106
  37. # endif
  38. # ifdef __cplusplus
  39. }
  40. # endif
  41. #endif