]>
Commit | Line | Data |
---|---|---|
3d328a44 JL |
1 | /* |
2 | * Generated by util/mkerr.pl DO NOT EDIT | |
4333b89f | 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. |
3d328a44 | 4 | * |
48f4ad77 | 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
3d328a44 JL |
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 | ||
14a6c6a4 RL |
11 | #ifndef OSSL_CRYPTO_SM2ERR_H |
12 | # define OSSL_CRYPTO_SM2ERR_H | |
13 | # pragma once | |
3d328a44 | 14 | |
cbfa5b03 RS |
15 | # include <openssl/opensslconf.h> |
16 | # include <openssl/symhacks.h> | |
17 | ||
14a6c6a4 RL |
18 | # ifdef __cplusplus |
19 | extern "C" { | |
20 | # endif | |
2398404e JL |
21 | |
22 | # ifndef OPENSSL_NO_SM2 | |
23 | ||
b93f6c2d | 24 | int ossl_err_load_SM2_strings(void); |
3d328a44 | 25 | |
3d328a44 JL |
26 | /* |
27 | * SM2 reason codes. | |
28 | */ | |
722add71 MC |
29 | # define SM2_R_ASN1_ERROR 100 |
30 | # define SM2_R_BAD_SIGNATURE 101 | |
ddb634fe | 31 | # define SM2_R_BUFFER_TOO_SMALL 107 |
675f4cee PY |
32 | # define SM2_R_DIST_ID_TOO_LARGE 110 |
33 | # define SM2_R_ID_NOT_SET 112 | |
4803717f | 34 | # define SM2_R_ID_TOO_LARGE 111 |
ddb634fe | 35 | # define SM2_R_INVALID_CURVE 108 |
722add71 MC |
36 | # define SM2_R_INVALID_DIGEST 102 |
37 | # define SM2_R_INVALID_DIGEST_TYPE 103 | |
38 | # define SM2_R_INVALID_ENCODING 104 | |
39 | # define SM2_R_INVALID_FIELD 105 | |
9e49aff2 | 40 | # define SM2_R_INVALID_PRIVATE_KEY 113 |
ddb634fe | 41 | # define SM2_R_NO_PARAMETERS_SET 109 |
675f4cee | 42 | # define SM2_R_USER_ID_TOO_LARGE 106 |
3d328a44 | 43 | |
14a6c6a4 RL |
44 | # endif |
45 | ||
46 | # ifdef __cplusplus | |
47 | } | |
2398404e | 48 | # endif |
3d328a44 | 49 | #endif |