]>
Commit | Line | Data |
---|---|---|
3d328a44 JL |
1 | /* |
2 | * Generated by util/mkerr.pl DO NOT EDIT | |
cbfa5b03 | 3 | * Copyright 1995-2019 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 | ||
ae4186b0 DMSP |
11 | #ifndef OSSL_CRYPTO_SM2ERR_H |
12 | # define OSSL_CRYPTO_SM2ERR_H | |
3d328a44 | 13 | |
cbfa5b03 RS |
14 | # include <openssl/opensslconf.h> |
15 | # include <openssl/symhacks.h> | |
16 | ||
17 | ||
2398404e JL |
18 | # include <openssl/opensslconf.h> |
19 | ||
20 | # ifndef OPENSSL_NO_SM2 | |
21 | ||
51f3021d NT |
22 | # ifdef __cplusplus |
23 | extern "C" | |
24 | # endif | |
3d328a44 | 25 | int ERR_load_SM2_strings(void); |
3d328a44 JL |
26 | |
27 | /* | |
28 | * SM2 function codes. | |
29 | */ | |
cbfa5b03 RS |
30 | # if !OPENSSL_API_3 |
31 | # define SM2_F_PKEY_SM2_COPY 0 | |
32 | # define SM2_F_PKEY_SM2_CTRL 0 | |
33 | # define SM2_F_PKEY_SM2_CTRL_STR 0 | |
34 | # define SM2_F_PKEY_SM2_DIGEST_CUSTOM 0 | |
35 | # define SM2_F_PKEY_SM2_INIT 0 | |
36 | # define SM2_F_PKEY_SM2_SIGN 0 | |
37 | # define SM2_F_SM2_COMPUTE_MSG_HASH 0 | |
38 | # define SM2_F_SM2_COMPUTE_USERID_DIGEST 0 | |
39 | # define SM2_F_SM2_COMPUTE_Z_DIGEST 0 | |
40 | # define SM2_F_SM2_DECRYPT 0 | |
41 | # define SM2_F_SM2_ENCRYPT 0 | |
42 | # define SM2_F_SM2_PLAINTEXT_SIZE 0 | |
43 | # define SM2_F_SM2_SIGN 0 | |
44 | # define SM2_F_SM2_SIG_GEN 0 | |
45 | # define SM2_F_SM2_SIG_VERIFY 0 | |
46 | # define SM2_F_SM2_VERIFY 0 | |
47 | # endif | |
3d328a44 JL |
48 | |
49 | /* | |
50 | * SM2 reason codes. | |
51 | */ | |
722add71 MC |
52 | # define SM2_R_ASN1_ERROR 100 |
53 | # define SM2_R_BAD_SIGNATURE 101 | |
ddb634fe | 54 | # define SM2_R_BUFFER_TOO_SMALL 107 |
675f4cee PY |
55 | # define SM2_R_DIST_ID_TOO_LARGE 110 |
56 | # define SM2_R_ID_NOT_SET 112 | |
4803717f | 57 | # define SM2_R_ID_TOO_LARGE 111 |
ddb634fe | 58 | # define SM2_R_INVALID_CURVE 108 |
722add71 MC |
59 | # define SM2_R_INVALID_DIGEST 102 |
60 | # define SM2_R_INVALID_DIGEST_TYPE 103 | |
61 | # define SM2_R_INVALID_ENCODING 104 | |
62 | # define SM2_R_INVALID_FIELD 105 | |
ddb634fe | 63 | # define SM2_R_NO_PARAMETERS_SET 109 |
675f4cee | 64 | # define SM2_R_USER_ID_TOO_LARGE 106 |
3d328a44 | 65 | |
2398404e | 66 | # endif |
3d328a44 | 67 | #endif |