]>
Commit | Line | Data |
---|---|---|
3d328a44 JL |
1 | /* |
2 | * Generated by util/mkerr.pl DO NOT EDIT | |
b0edda11 | 3 | * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. |
3d328a44 JL |
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 | ||
11 | #ifndef HEADER_SM2ERR_H | |
12 | # define HEADER_SM2ERR_H | |
13 | ||
2398404e JL |
14 | # include <openssl/opensslconf.h> |
15 | ||
16 | # ifndef OPENSSL_NO_SM2 | |
17 | ||
51f3021d NT |
18 | # ifdef __cplusplus |
19 | extern "C" | |
20 | # endif | |
3d328a44 | 21 | int ERR_load_SM2_strings(void); |
3d328a44 JL |
22 | |
23 | /* | |
24 | * SM2 function codes. | |
25 | */ | |
ddb634fe JL |
26 | # define SM2_F_PKEY_SM2_CTRL 109 |
27 | # define SM2_F_PKEY_SM2_CTRL_STR 110 | |
28 | # define SM2_F_PKEY_SM2_INIT 111 | |
29 | # define SM2_F_PKEY_SM2_SIGN 112 | |
722add71 MC |
30 | # define SM2_F_SM2_COMPUTE_MSG_HASH 100 |
31 | # define SM2_F_SM2_COMPUTE_USERID_DIGEST 101 | |
32 | # define SM2_F_SM2_DECRYPT 102 | |
33 | # define SM2_F_SM2_ENCRYPT 103 | |
34 | # define SM2_F_SM2_PLAINTEXT_SIZE 104 | |
35 | # define SM2_F_SM2_SIGN 105 | |
36 | # define SM2_F_SM2_SIG_GEN 106 | |
37 | # define SM2_F_SM2_SIG_VERIFY 107 | |
38 | # define SM2_F_SM2_VERIFY 108 | |
3d328a44 JL |
39 | |
40 | /* | |
41 | * SM2 reason codes. | |
42 | */ | |
722add71 MC |
43 | # define SM2_R_ASN1_ERROR 100 |
44 | # define SM2_R_BAD_SIGNATURE 101 | |
ddb634fe JL |
45 | # define SM2_R_BUFFER_TOO_SMALL 107 |
46 | # define SM2_R_INVALID_CURVE 108 | |
722add71 MC |
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 | |
ddb634fe | 51 | # define SM2_R_NO_PARAMETERS_SET 109 |
722add71 | 52 | # define SM2_R_USER_ID_TOO_LARGE 106 |
3d328a44 | 53 | |
2398404e | 54 | # endif |
3d328a44 | 55 | #endif |