1e1051a39Sopenharmony_ci/*
2e1051a39Sopenharmony_ci * Generated by util/mkerr.pl DO NOT EDIT
3e1051a39Sopenharmony_ci * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
4e1051a39Sopenharmony_ci *
5e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License").  You may not use
6e1051a39Sopenharmony_ci * this file except in compliance with the License.  You can obtain a copy
7e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at
8e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html
9e1051a39Sopenharmony_ci */
10e1051a39Sopenharmony_ci
11e1051a39Sopenharmony_ci#ifndef OSSL_CRYPTO_SM2ERR_H
12e1051a39Sopenharmony_ci# define OSSL_CRYPTO_SM2ERR_H
13e1051a39Sopenharmony_ci# pragma once
14e1051a39Sopenharmony_ci
15e1051a39Sopenharmony_ci# include <openssl/opensslconf.h>
16e1051a39Sopenharmony_ci# include <openssl/symhacks.h>
17e1051a39Sopenharmony_ci
18e1051a39Sopenharmony_ci# ifdef  __cplusplus
19e1051a39Sopenharmony_ciextern "C" {
20e1051a39Sopenharmony_ci# endif
21e1051a39Sopenharmony_ci
22e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_SM2
23e1051a39Sopenharmony_ci
24e1051a39Sopenharmony_ciint ossl_err_load_SM2_strings(void);
25e1051a39Sopenharmony_ci
26e1051a39Sopenharmony_ci/*
27e1051a39Sopenharmony_ci * SM2 reason codes.
28e1051a39Sopenharmony_ci */
29e1051a39Sopenharmony_ci#  define SM2_R_ASN1_ERROR                                 100
30e1051a39Sopenharmony_ci#  define SM2_R_BAD_SIGNATURE                              101
31e1051a39Sopenharmony_ci#  define SM2_R_BUFFER_TOO_SMALL                           107
32e1051a39Sopenharmony_ci#  define SM2_R_DIST_ID_TOO_LARGE                          110
33e1051a39Sopenharmony_ci#  define SM2_R_ID_NOT_SET                                 112
34e1051a39Sopenharmony_ci#  define SM2_R_ID_TOO_LARGE                               111
35e1051a39Sopenharmony_ci#  define SM2_R_INVALID_CURVE                              108
36e1051a39Sopenharmony_ci#  define SM2_R_INVALID_DIGEST                             102
37e1051a39Sopenharmony_ci#  define SM2_R_INVALID_DIGEST_TYPE                        103
38e1051a39Sopenharmony_ci#  define SM2_R_INVALID_ENCODING                           104
39e1051a39Sopenharmony_ci#  define SM2_R_INVALID_FIELD                              105
40e1051a39Sopenharmony_ci#  define SM2_R_INVALID_PRIVATE_KEY                        113
41e1051a39Sopenharmony_ci#  define SM2_R_NO_PARAMETERS_SET                          109
42e1051a39Sopenharmony_ci#  define SM2_R_USER_ID_TOO_LARGE                          106
43e1051a39Sopenharmony_ci
44e1051a39Sopenharmony_ci# endif
45e1051a39Sopenharmony_ci
46e1051a39Sopenharmony_ci# ifdef  __cplusplus
47e1051a39Sopenharmony_ci}
48e1051a39Sopenharmony_ci# endif
49e1051a39Sopenharmony_ci#endif
50