mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 00:46:17 +08:00
Update
remove ECRS, EC-Schnorr modules
This commit is contained in:
@@ -1386,189 +1386,188 @@ int ERR_load_EC_strings(void);
|
||||
# define EC_F_D2I_ECPKPARAMETERS 103
|
||||
# define EC_F_D2I_ECPRIVATEKEY 104
|
||||
# define EC_F_DO_EC_KEY_PRINT 105
|
||||
# define EC_F_ECAHE_CIPHERTEXT_SIZE 286
|
||||
# define EC_F_ECAHE_DECRYPT 287
|
||||
# define EC_F_ECAHE_ENCRYPT 288
|
||||
# define EC_F_ECDH_CMS_DECRYPT 106
|
||||
# define EC_F_ECDH_CMS_SET_SHARED_INFO 107
|
||||
# define EC_F_ECDH_COMPUTE_KEY 108
|
||||
# define EC_F_ECDH_SIMPLE_COMPUTE_KEY 109
|
||||
# define EC_F_ECDSA_DO_SIGN_EX 110
|
||||
# define EC_F_ECDSA_DO_VERIFY 111
|
||||
# define EC_F_ECDSA_SIGN_EX 112
|
||||
# define EC_F_ECDSA_SIGN_SETUP 113
|
||||
# define EC_F_ECDSA_SIG_NEW 114
|
||||
# define EC_F_ECDSA_VERIFY 115
|
||||
# define EC_F_ECIES_DECRYPT 116
|
||||
# define EC_F_ECIES_DO_DECRYPT 117
|
||||
# define EC_F_ECIES_DO_ENCRYPT 118
|
||||
# define EC_F_ECIES_ENCRYPT 119
|
||||
# define EC_F_ECIES_PARAMS_GET_ENC 120
|
||||
# define EC_F_ECIES_PARAMS_GET_KDF 121
|
||||
# define EC_F_ECIES_PARAMS_GET_MAC 122
|
||||
# define EC_F_ECIES_PARAMS_INIT_WITH_RECOMMENDED 123
|
||||
# define EC_F_ECIES_PARAMS_INIT_WITH_TYPE 124
|
||||
# define EC_F_ECKEY_PARAM2TYPE 125
|
||||
# define EC_F_ECKEY_PARAM_DECODE 126
|
||||
# define EC_F_ECKEY_PRIV_DECODE 127
|
||||
# define EC_F_ECKEY_PRIV_ENCODE 128
|
||||
# define EC_F_ECKEY_PUB_DECODE 129
|
||||
# define EC_F_ECKEY_PUB_ENCODE 130
|
||||
# define EC_F_ECKEY_TYPE2PARAM 131
|
||||
# define EC_F_ECPARAMETERS_PRINT_FP 132
|
||||
# define EC_F_ECPKPARAMETERS_PRINT 133
|
||||
# define EC_F_ECPKPARAMETERS_PRINT_FP 134
|
||||
# define EC_F_ECP_NISTZ256_GET_AFFINE 135
|
||||
# define EC_F_ECP_NISTZ256_MULT_PRECOMPUTE 136
|
||||
# define EC_F_ECP_NISTZ256_POINTS_MUL 137
|
||||
# define EC_F_ECP_NISTZ256_PRE_COMP_NEW 138
|
||||
# define EC_F_ECP_NISTZ256_WINDOWED_MUL 139
|
||||
# define EC_F_ECP_SM2Z256_GET_AFFINE 140
|
||||
# define EC_F_ECP_SM2Z256_MULT_PRECOMPUTE 141
|
||||
# define EC_F_ECP_SM2Z256_POINTS_MUL 142
|
||||
# define EC_F_ECP_SM2Z256_PRE_COMP_NEW 143
|
||||
# define EC_F_ECP_SM2Z256_WINDOWED_MUL 144
|
||||
# define EC_F_ECX_KEY_OP 145
|
||||
# define EC_F_ECX_PRIV_ENCODE 146
|
||||
# define EC_F_ECX_PUB_ENCODE 147
|
||||
# define EC_F_EC_ASN1_GROUP2CURVE 148
|
||||
# define EC_F_EC_ASN1_GROUP2FIELDID 149
|
||||
# define EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY 150
|
||||
# define EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT 151
|
||||
# define EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE 152
|
||||
# define EC_F_EC_GF2M_SIMPLE_OCT2POINT 153
|
||||
# define EC_F_EC_GF2M_SIMPLE_POINT2OCT 154
|
||||
# define EC_F_EC_GF2M_SIMPLE_POINT_GET_AFFINE_COORDINATES 155
|
||||
# define EC_F_EC_GF2M_SIMPLE_POINT_SET_AFFINE_COORDINATES 156
|
||||
# define EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES 157
|
||||
# define EC_F_EC_GFP_MONT_FIELD_DECODE 158
|
||||
# define EC_F_EC_GFP_MONT_FIELD_ENCODE 159
|
||||
# define EC_F_EC_GFP_MONT_FIELD_MUL 160
|
||||
# define EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE 161
|
||||
# define EC_F_EC_GFP_MONT_FIELD_SQR 162
|
||||
# define EC_F_EC_GFP_MONT_GROUP_SET_CURVE 163
|
||||
# define EC_F_EC_GFP_NISTP224_GROUP_SET_CURVE 164
|
||||
# define EC_F_EC_GFP_NISTP224_POINTS_MUL 165
|
||||
# define EC_F_EC_GFP_NISTP224_POINT_GET_AFFINE_COORDINATES 166
|
||||
# define EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE 167
|
||||
# define EC_F_EC_GFP_NISTP256_POINTS_MUL 168
|
||||
# define EC_F_EC_GFP_NISTP256_POINT_GET_AFFINE_COORDINATES 169
|
||||
# define EC_F_EC_GFP_NISTP521_GROUP_SET_CURVE 170
|
||||
# define EC_F_EC_GFP_NISTP521_POINTS_MUL 171
|
||||
# define EC_F_EC_GFP_NISTP521_POINT_GET_AFFINE_COORDINATES 172
|
||||
# define EC_F_EC_GFP_NIST_FIELD_MUL 173
|
||||
# define EC_F_EC_GFP_NIST_FIELD_SQR 174
|
||||
# define EC_F_EC_GFP_NIST_GROUP_SET_CURVE 175
|
||||
# define EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT 176
|
||||
# define EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE 177
|
||||
# define EC_F_EC_GFP_SIMPLE_MAKE_AFFINE 178
|
||||
# define EC_F_EC_GFP_SIMPLE_OCT2POINT 179
|
||||
# define EC_F_EC_GFP_SIMPLE_POINT2OCT 180
|
||||
# define EC_F_EC_GFP_SIMPLE_POINTS_MAKE_AFFINE 181
|
||||
# define EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES 182
|
||||
# define EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES 183
|
||||
# define EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES 184
|
||||
# define EC_F_EC_GFP_SM2P256_GROUP_SET_CURVE 280
|
||||
# define EC_F_EC_GFP_SM2P256_POINTS_MUL 281
|
||||
# define EC_F_EC_GFP_SM2P256_POINT_GET_AFFINE_COORDINATES 282
|
||||
# define EC_F_EC_GROUP_CHECK 185
|
||||
# define EC_F_EC_GROUP_CHECK_DISCRIMINANT 186
|
||||
# define EC_F_EC_GROUP_COPY 187
|
||||
# define EC_F_EC_GROUP_GENERATE_TYPE1CURVE 188
|
||||
# define EC_F_EC_GROUP_GET_CURVE_GF2M 189
|
||||
# define EC_F_EC_GROUP_GET_CURVE_GFP 190
|
||||
# define EC_F_EC_GROUP_GET_DEGREE 191
|
||||
# define EC_F_EC_GROUP_GET_ECPARAMETERS 192
|
||||
# define EC_F_EC_GROUP_GET_ECPKPARAMETERS 193
|
||||
# define EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS 194
|
||||
# define EC_F_EC_GROUP_GET_TRINOMIAL_BASIS 195
|
||||
# define EC_F_EC_GROUP_GET_TYPE1CURVE_ETA 196
|
||||
# define EC_F_EC_GROUP_GET_TYPE1CURVE_ZETA 197
|
||||
# define EC_F_EC_GROUP_IS_TYPE1CURVE 198
|
||||
# define EC_F_EC_GROUP_NEW 199
|
||||
# define EC_F_EC_GROUP_NEW_BY_CURVE_NAME 200
|
||||
# define EC_F_EC_GROUP_NEW_FROM_DATA 201
|
||||
# define EC_F_EC_GROUP_NEW_FROM_ECPARAMETERS 202
|
||||
# define EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS 203
|
||||
# define EC_F_EC_GROUP_NEW_TYPE1CURVE 204
|
||||
# define EC_F_EC_GROUP_SET_CURVE_GF2M 205
|
||||
# define EC_F_EC_GROUP_SET_CURVE_GFP 206
|
||||
# define EC_F_EC_GROUP_SET_GENERATOR 207
|
||||
# define EC_F_EC_KEY_CHECK_KEY 208
|
||||
# define EC_F_EC_KEY_COPY 209
|
||||
# define EC_F_EC_KEY_GENERATE_KEY 210
|
||||
# define EC_F_EC_KEY_MERGE 285
|
||||
# define EC_F_EC_KEY_NEW_METHOD 211
|
||||
# define EC_F_EC_KEY_OCT2PRIV 212
|
||||
# define EC_F_EC_KEY_PRINT_FP 213
|
||||
# define EC_F_EC_KEY_PRIV2OCT 214
|
||||
# define EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES 215
|
||||
# define EC_F_EC_KEY_SIMPLE_CHECK_KEY 216
|
||||
# define EC_F_EC_KEY_SIMPLE_OCT2PRIV 217
|
||||
# define EC_F_EC_KEY_SIMPLE_PRIV2OCT 218
|
||||
# define EC_F_EC_KEY_SPLIT 284
|
||||
# define EC_F_EC_POINTS_MAKE_AFFINE 219
|
||||
# define EC_F_EC_POINT_ADD 220
|
||||
# define EC_F_EC_POINT_CMP 221
|
||||
# define EC_F_EC_POINT_CMP_FPPOINT 222
|
||||
# define EC_F_EC_POINT_COPY 223
|
||||
# define EC_F_EC_POINT_DBL 224
|
||||
# define EC_F_EC_POINT_GET_AFFINE_COORDINATES_GF2M 225
|
||||
# define EC_F_EC_POINT_GET_AFFINE_COORDINATES_GFP 226
|
||||
# define EC_F_EC_POINT_GET_JPROJECTIVE_COORDINATES_GFP 227
|
||||
# define EC_F_EC_POINT_HASH2POINT 228
|
||||
# define EC_F_EC_POINT_INVERT 229
|
||||
# define EC_F_EC_POINT_IS_AT_INFINITY 230
|
||||
# define EC_F_EC_POINT_IS_ON_CURVE 231
|
||||
# define EC_F_EC_POINT_MAKE_AFFINE 232
|
||||
# define EC_F_EC_POINT_NEW 233
|
||||
# define EC_F_EC_POINT_OCT2POINT 234
|
||||
# define EC_F_EC_POINT_POINT2OCT 235
|
||||
# define EC_F_EC_POINT_SET_AFFINE_COORDINATES_GF2M 236
|
||||
# define EC_F_EC_POINT_SET_AFFINE_COORDINATES_GFP 237
|
||||
# define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M 238
|
||||
# define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP 239
|
||||
# define EC_F_EC_POINT_SET_JPROJECTIVE_COORDINATES_GFP 240
|
||||
# define EC_F_EC_POINT_SET_TO_INFINITY 241
|
||||
# define EC_F_EC_PRE_COMP_NEW 242
|
||||
# define EC_F_EC_SCHNORR_SIGN 279
|
||||
# define EC_F_EC_TYPE1CURVE_TATE 243
|
||||
# define EC_F_EC_WNAF_MUL 244
|
||||
# define EC_F_EC_WNAF_PRECOMPUTE_MULT 245
|
||||
# define EC_F_I2D_ECIESPARAMETERS 246
|
||||
# define EC_F_I2D_ECPARAMETERS 247
|
||||
# define EC_F_I2D_ECPKPARAMETERS 248
|
||||
# define EC_F_I2D_ECPRIVATEKEY 249
|
||||
# define EC_F_I2O_ECPUBLICKEY 250
|
||||
# define EC_F_NISTP224_PRE_COMP_NEW 251
|
||||
# define EC_F_NISTP256_PRE_COMP_NEW 252
|
||||
# define EC_F_NISTP521_PRE_COMP_NEW 253
|
||||
# define EC_F_O2I_ECPUBLICKEY 254
|
||||
# define EC_F_OLD_EC_PRIV_DECODE 255
|
||||
# define EC_F_OSSL_ECDH_COMPUTE_KEY 256
|
||||
# define EC_F_OSSL_ECDSA_SIGN_SIG 257
|
||||
# define EC_F_OSSL_ECDSA_VERIFY_SIG 258
|
||||
# define EC_F_PKEY_ECX_DERIVE 259
|
||||
# define EC_F_PKEY_EC_CTRL 260
|
||||
# define EC_F_PKEY_EC_CTRL_STR 261
|
||||
# define EC_F_PKEY_EC_DECRYPT 262
|
||||
# define EC_F_PKEY_EC_DERIVE 263
|
||||
# define EC_F_PKEY_EC_ENCRYPT 264
|
||||
# define EC_F_PKEY_EC_KEYGEN 265
|
||||
# define EC_F_PKEY_EC_PARAMGEN 266
|
||||
# define EC_F_PKEY_EC_SIGN 267
|
||||
# define EC_F_SM2P256_PRE_COMP_NEW 283
|
||||
# define EC_F_SM2_COMPUTE_ID_DIGEST 268
|
||||
# define EC_F_SM2_COMPUTE_MESSAGE_DIGEST 269
|
||||
# define EC_F_SM2_DO_ENCRYPT 270
|
||||
# define EC_F_SM2_GET_PUBLIC_KEY_DATA 271
|
||||
# define EC_F_SM2_KAP_COMPUTE_KEY 272
|
||||
# define EC_F_SM2_KAP_CTX_INIT 273
|
||||
# define EC_F_SM2_KAP_FINAL_CHECK 274
|
||||
# define EC_F_SM2_KAP_PREPARE 275
|
||||
# define EC_F_TYPE1CURVE_EVAL_LINE_TEXTBOOK 276
|
||||
# define EC_F_TYPE1CURVE_EVAL_MILLER_TEXTBOOK 277
|
||||
# define EC_F_TYPE1CURVE_PHI 278
|
||||
# define EC_F_ECAHE_CIPHERTEXT_SIZE 106
|
||||
# define EC_F_ECAHE_DECRYPT 107
|
||||
# define EC_F_ECAHE_ENCRYPT 108
|
||||
# define EC_F_ECDH_CMS_DECRYPT 109
|
||||
# define EC_F_ECDH_CMS_SET_SHARED_INFO 110
|
||||
# define EC_F_ECDH_COMPUTE_KEY 111
|
||||
# define EC_F_ECDH_SIMPLE_COMPUTE_KEY 112
|
||||
# define EC_F_ECDSA_DO_SIGN_EX 113
|
||||
# define EC_F_ECDSA_DO_VERIFY 114
|
||||
# define EC_F_ECDSA_SIGN_EX 115
|
||||
# define EC_F_ECDSA_SIGN_SETUP 116
|
||||
# define EC_F_ECDSA_SIG_NEW 117
|
||||
# define EC_F_ECDSA_VERIFY 118
|
||||
# define EC_F_ECIES_DECRYPT 119
|
||||
# define EC_F_ECIES_DO_DECRYPT 120
|
||||
# define EC_F_ECIES_DO_ENCRYPT 121
|
||||
# define EC_F_ECIES_ENCRYPT 122
|
||||
# define EC_F_ECIES_PARAMS_GET_ENC 123
|
||||
# define EC_F_ECIES_PARAMS_GET_KDF 124
|
||||
# define EC_F_ECIES_PARAMS_GET_MAC 125
|
||||
# define EC_F_ECIES_PARAMS_INIT_WITH_RECOMMENDED 126
|
||||
# define EC_F_ECIES_PARAMS_INIT_WITH_TYPE 127
|
||||
# define EC_F_ECKEY_PARAM2TYPE 128
|
||||
# define EC_F_ECKEY_PARAM_DECODE 129
|
||||
# define EC_F_ECKEY_PRIV_DECODE 130
|
||||
# define EC_F_ECKEY_PRIV_ENCODE 131
|
||||
# define EC_F_ECKEY_PUB_DECODE 132
|
||||
# define EC_F_ECKEY_PUB_ENCODE 133
|
||||
# define EC_F_ECKEY_TYPE2PARAM 134
|
||||
# define EC_F_ECPARAMETERS_PRINT_FP 135
|
||||
# define EC_F_ECPKPARAMETERS_PRINT 136
|
||||
# define EC_F_ECPKPARAMETERS_PRINT_FP 137
|
||||
# define EC_F_ECP_NISTZ256_GET_AFFINE 138
|
||||
# define EC_F_ECP_NISTZ256_MULT_PRECOMPUTE 139
|
||||
# define EC_F_ECP_NISTZ256_POINTS_MUL 140
|
||||
# define EC_F_ECP_NISTZ256_PRE_COMP_NEW 141
|
||||
# define EC_F_ECP_NISTZ256_WINDOWED_MUL 142
|
||||
# define EC_F_ECP_SM2Z256_GET_AFFINE 143
|
||||
# define EC_F_ECP_SM2Z256_MULT_PRECOMPUTE 144
|
||||
# define EC_F_ECP_SM2Z256_POINTS_MUL 145
|
||||
# define EC_F_ECP_SM2Z256_PRE_COMP_NEW 146
|
||||
# define EC_F_ECP_SM2Z256_WINDOWED_MUL 147
|
||||
# define EC_F_ECX_KEY_OP 148
|
||||
# define EC_F_ECX_PRIV_ENCODE 149
|
||||
# define EC_F_ECX_PUB_ENCODE 150
|
||||
# define EC_F_EC_ASN1_GROUP2CURVE 151
|
||||
# define EC_F_EC_ASN1_GROUP2FIELDID 152
|
||||
# define EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY 153
|
||||
# define EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT 154
|
||||
# define EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE 155
|
||||
# define EC_F_EC_GF2M_SIMPLE_OCT2POINT 156
|
||||
# define EC_F_EC_GF2M_SIMPLE_POINT2OCT 157
|
||||
# define EC_F_EC_GF2M_SIMPLE_POINT_GET_AFFINE_COORDINATES 158
|
||||
# define EC_F_EC_GF2M_SIMPLE_POINT_SET_AFFINE_COORDINATES 159
|
||||
# define EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES 160
|
||||
# define EC_F_EC_GFP_MONT_FIELD_DECODE 161
|
||||
# define EC_F_EC_GFP_MONT_FIELD_ENCODE 162
|
||||
# define EC_F_EC_GFP_MONT_FIELD_MUL 163
|
||||
# define EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE 164
|
||||
# define EC_F_EC_GFP_MONT_FIELD_SQR 165
|
||||
# define EC_F_EC_GFP_MONT_GROUP_SET_CURVE 166
|
||||
# define EC_F_EC_GFP_NISTP224_GROUP_SET_CURVE 167
|
||||
# define EC_F_EC_GFP_NISTP224_POINTS_MUL 168
|
||||
# define EC_F_EC_GFP_NISTP224_POINT_GET_AFFINE_COORDINATES 169
|
||||
# define EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE 170
|
||||
# define EC_F_EC_GFP_NISTP256_POINTS_MUL 171
|
||||
# define EC_F_EC_GFP_NISTP256_POINT_GET_AFFINE_COORDINATES 172
|
||||
# define EC_F_EC_GFP_NISTP521_GROUP_SET_CURVE 173
|
||||
# define EC_F_EC_GFP_NISTP521_POINTS_MUL 174
|
||||
# define EC_F_EC_GFP_NISTP521_POINT_GET_AFFINE_COORDINATES 175
|
||||
# define EC_F_EC_GFP_NIST_FIELD_MUL 176
|
||||
# define EC_F_EC_GFP_NIST_FIELD_SQR 177
|
||||
# define EC_F_EC_GFP_NIST_GROUP_SET_CURVE 178
|
||||
# define EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT 179
|
||||
# define EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE 180
|
||||
# define EC_F_EC_GFP_SIMPLE_MAKE_AFFINE 181
|
||||
# define EC_F_EC_GFP_SIMPLE_OCT2POINT 182
|
||||
# define EC_F_EC_GFP_SIMPLE_POINT2OCT 183
|
||||
# define EC_F_EC_GFP_SIMPLE_POINTS_MAKE_AFFINE 184
|
||||
# define EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES 185
|
||||
# define EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES 186
|
||||
# define EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES 187
|
||||
# define EC_F_EC_GFP_SM2P256_GROUP_SET_CURVE 188
|
||||
# define EC_F_EC_GFP_SM2P256_POINTS_MUL 189
|
||||
# define EC_F_EC_GFP_SM2P256_POINT_GET_AFFINE_COORDINATES 190
|
||||
# define EC_F_EC_GROUP_CHECK 191
|
||||
# define EC_F_EC_GROUP_CHECK_DISCRIMINANT 192
|
||||
# define EC_F_EC_GROUP_COPY 193
|
||||
# define EC_F_EC_GROUP_GENERATE_TYPE1CURVE 194
|
||||
# define EC_F_EC_GROUP_GET_CURVE_GF2M 195
|
||||
# define EC_F_EC_GROUP_GET_CURVE_GFP 196
|
||||
# define EC_F_EC_GROUP_GET_DEGREE 197
|
||||
# define EC_F_EC_GROUP_GET_ECPARAMETERS 198
|
||||
# define EC_F_EC_GROUP_GET_ECPKPARAMETERS 199
|
||||
# define EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS 200
|
||||
# define EC_F_EC_GROUP_GET_TRINOMIAL_BASIS 201
|
||||
# define EC_F_EC_GROUP_GET_TYPE1CURVE_ETA 202
|
||||
# define EC_F_EC_GROUP_GET_TYPE1CURVE_ZETA 203
|
||||
# define EC_F_EC_GROUP_IS_TYPE1CURVE 204
|
||||
# define EC_F_EC_GROUP_NEW 205
|
||||
# define EC_F_EC_GROUP_NEW_BY_CURVE_NAME 206
|
||||
# define EC_F_EC_GROUP_NEW_FROM_DATA 207
|
||||
# define EC_F_EC_GROUP_NEW_FROM_ECPARAMETERS 208
|
||||
# define EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS 209
|
||||
# define EC_F_EC_GROUP_NEW_TYPE1CURVE 210
|
||||
# define EC_F_EC_GROUP_SET_CURVE_GF2M 211
|
||||
# define EC_F_EC_GROUP_SET_CURVE_GFP 212
|
||||
# define EC_F_EC_GROUP_SET_GENERATOR 213
|
||||
# define EC_F_EC_KEY_CHECK_KEY 214
|
||||
# define EC_F_EC_KEY_COPY 215
|
||||
# define EC_F_EC_KEY_GENERATE_KEY 216
|
||||
# define EC_F_EC_KEY_MERGE 217
|
||||
# define EC_F_EC_KEY_NEW_METHOD 218
|
||||
# define EC_F_EC_KEY_OCT2PRIV 219
|
||||
# define EC_F_EC_KEY_PRINT_FP 220
|
||||
# define EC_F_EC_KEY_PRIV2OCT 221
|
||||
# define EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES 222
|
||||
# define EC_F_EC_KEY_SIMPLE_CHECK_KEY 223
|
||||
# define EC_F_EC_KEY_SIMPLE_OCT2PRIV 224
|
||||
# define EC_F_EC_KEY_SIMPLE_PRIV2OCT 225
|
||||
# define EC_F_EC_KEY_SPLIT 226
|
||||
# define EC_F_EC_POINTS_MAKE_AFFINE 227
|
||||
# define EC_F_EC_POINT_ADD 228
|
||||
# define EC_F_EC_POINT_CMP 229
|
||||
# define EC_F_EC_POINT_CMP_FPPOINT 230
|
||||
# define EC_F_EC_POINT_COPY 231
|
||||
# define EC_F_EC_POINT_DBL 232
|
||||
# define EC_F_EC_POINT_GET_AFFINE_COORDINATES_GF2M 233
|
||||
# define EC_F_EC_POINT_GET_AFFINE_COORDINATES_GFP 234
|
||||
# define EC_F_EC_POINT_GET_JPROJECTIVE_COORDINATES_GFP 235
|
||||
# define EC_F_EC_POINT_HASH2POINT 236
|
||||
# define EC_F_EC_POINT_INVERT 237
|
||||
# define EC_F_EC_POINT_IS_AT_INFINITY 238
|
||||
# define EC_F_EC_POINT_IS_ON_CURVE 239
|
||||
# define EC_F_EC_POINT_MAKE_AFFINE 240
|
||||
# define EC_F_EC_POINT_NEW 241
|
||||
# define EC_F_EC_POINT_OCT2POINT 242
|
||||
# define EC_F_EC_POINT_POINT2OCT 243
|
||||
# define EC_F_EC_POINT_SET_AFFINE_COORDINATES_GF2M 244
|
||||
# define EC_F_EC_POINT_SET_AFFINE_COORDINATES_GFP 245
|
||||
# define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M 246
|
||||
# define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP 247
|
||||
# define EC_F_EC_POINT_SET_JPROJECTIVE_COORDINATES_GFP 248
|
||||
# define EC_F_EC_POINT_SET_TO_INFINITY 249
|
||||
# define EC_F_EC_PRE_COMP_NEW 250
|
||||
# define EC_F_EC_TYPE1CURVE_TATE 251
|
||||
# define EC_F_EC_WNAF_MUL 252
|
||||
# define EC_F_EC_WNAF_PRECOMPUTE_MULT 253
|
||||
# define EC_F_I2D_ECIESPARAMETERS 254
|
||||
# define EC_F_I2D_ECPARAMETERS 255
|
||||
# define EC_F_I2D_ECPKPARAMETERS 256
|
||||
# define EC_F_I2D_ECPRIVATEKEY 257
|
||||
# define EC_F_I2O_ECPUBLICKEY 258
|
||||
# define EC_F_NISTP224_PRE_COMP_NEW 259
|
||||
# define EC_F_NISTP256_PRE_COMP_NEW 260
|
||||
# define EC_F_NISTP521_PRE_COMP_NEW 261
|
||||
# define EC_F_O2I_ECPUBLICKEY 262
|
||||
# define EC_F_OLD_EC_PRIV_DECODE 263
|
||||
# define EC_F_OSSL_ECDH_COMPUTE_KEY 264
|
||||
# define EC_F_OSSL_ECDSA_SIGN_SIG 265
|
||||
# define EC_F_OSSL_ECDSA_VERIFY_SIG 266
|
||||
# define EC_F_PKEY_ECX_DERIVE 267
|
||||
# define EC_F_PKEY_EC_CTRL 268
|
||||
# define EC_F_PKEY_EC_CTRL_STR 269
|
||||
# define EC_F_PKEY_EC_DECRYPT 270
|
||||
# define EC_F_PKEY_EC_DERIVE 271
|
||||
# define EC_F_PKEY_EC_ENCRYPT 272
|
||||
# define EC_F_PKEY_EC_KEYGEN 273
|
||||
# define EC_F_PKEY_EC_PARAMGEN 274
|
||||
# define EC_F_PKEY_EC_SIGN 275
|
||||
# define EC_F_SM2P256_PRE_COMP_NEW 276
|
||||
# define EC_F_SM2_COMPUTE_ID_DIGEST 277
|
||||
# define EC_F_SM2_COMPUTE_MESSAGE_DIGEST 278
|
||||
# define EC_F_SM2_DO_ENCRYPT 279
|
||||
# define EC_F_SM2_GET_PUBLIC_KEY_DATA 280
|
||||
# define EC_F_SM2_KAP_COMPUTE_KEY 281
|
||||
# define EC_F_SM2_KAP_CTX_INIT 282
|
||||
# define EC_F_SM2_KAP_FINAL_CHECK 283
|
||||
# define EC_F_SM2_KAP_PREPARE 284
|
||||
# define EC_F_TYPE1CURVE_EVAL_LINE_TEXTBOOK 285
|
||||
# define EC_F_TYPE1CURVE_EVAL_MILLER_TEXTBOOK 286
|
||||
# define EC_F_TYPE1CURVE_PHI 287
|
||||
|
||||
/* Reason codes. */
|
||||
# define EC_R_ASN1_ERROR 100
|
||||
@@ -1635,41 +1634,41 @@ int ERR_load_EC_strings(void);
|
||||
# define EC_R_INVALID_SM2_ID 161
|
||||
# define EC_R_INVALID_SM2_KAP_CHECKSUM_LENGTH 162
|
||||
# define EC_R_INVALID_SM2_KAP_CHECKSUM_VALUE 163
|
||||
# define EC_R_INVALID_SPLIT_PARAMETER 198
|
||||
# define EC_R_INVALID_TRINOMIAL_BASIS 164
|
||||
# define EC_R_INVALID_TYPE1CURVE 165
|
||||
# define EC_R_INVALID_TYPE1_CURVE 166
|
||||
# define EC_R_INVLID_TYPE1CURVE 167
|
||||
# define EC_R_KDF_PARAMETER_ERROR 168
|
||||
# define EC_R_KEYS_NOT_SET 169
|
||||
# define EC_R_MISSING_PARAMETERS 170
|
||||
# define EC_R_MISSING_PRIVATE_KEY 171
|
||||
# define EC_R_NEED_NEW_SETUP_VALUES 172
|
||||
# define EC_R_NOT_A_NIST_PRIME 173
|
||||
# define EC_R_NOT_IMPLEMENTED 174
|
||||
# define EC_R_NOT_INITIALIZED 175
|
||||
# define EC_R_NO_PARAMETERS_SET 176
|
||||
# define EC_R_NO_PRIVATE_VALUE 177
|
||||
# define EC_R_OPERATION_NOT_SUPPORTED 178
|
||||
# define EC_R_PASSED_NULL_PARAMETER 179
|
||||
# define EC_R_PEER_KEY_ERROR 180
|
||||
# define EC_R_PKPARAMETERS2GROUP_FAILURE 181
|
||||
# define EC_R_POINT_ARITHMETIC_FAILURE 182
|
||||
# define EC_R_POINT_AT_INFINITY 183
|
||||
# define EC_R_POINT_IS_NOT_ON_CURVE 184
|
||||
# define EC_R_RANDOM_NUMBER_GENERATION_FAILED 185
|
||||
# define EC_R_SHARED_INFO_ERROR 186
|
||||
# define EC_R_SLOT_FULL 187
|
||||
# define EC_R_SM2_DECRYPT_FAILED 188
|
||||
# define EC_R_SM2_ENCRYPT_FAILED 189
|
||||
# define EC_R_SM2_KAP_NOT_INITED 190
|
||||
# define EC_R_UNDEFINED_GENERATOR 191
|
||||
# define EC_R_UNDEFINED_ORDER 192
|
||||
# define EC_R_UNKNOWN_GROUP 193
|
||||
# define EC_R_UNKNOWN_ORDER 194
|
||||
# define EC_R_UNSUPPORTED_FIELD 195
|
||||
# define EC_R_WRONG_CURVE_PARAMETERS 196
|
||||
# define EC_R_WRONG_ORDER 197
|
||||
# define EC_R_INVALID_SPLIT_PARAMETER 164
|
||||
# define EC_R_INVALID_TRINOMIAL_BASIS 165
|
||||
# define EC_R_INVALID_TYPE1CURVE 166
|
||||
# define EC_R_INVALID_TYPE1_CURVE 167
|
||||
# define EC_R_INVLID_TYPE1CURVE 168
|
||||
# define EC_R_KDF_PARAMETER_ERROR 169
|
||||
# define EC_R_KEYS_NOT_SET 170
|
||||
# define EC_R_MISSING_PARAMETERS 171
|
||||
# define EC_R_MISSING_PRIVATE_KEY 172
|
||||
# define EC_R_NEED_NEW_SETUP_VALUES 173
|
||||
# define EC_R_NOT_A_NIST_PRIME 174
|
||||
# define EC_R_NOT_IMPLEMENTED 175
|
||||
# define EC_R_NOT_INITIALIZED 176
|
||||
# define EC_R_NO_PARAMETERS_SET 177
|
||||
# define EC_R_NO_PRIVATE_VALUE 178
|
||||
# define EC_R_OPERATION_NOT_SUPPORTED 179
|
||||
# define EC_R_PASSED_NULL_PARAMETER 180
|
||||
# define EC_R_PEER_KEY_ERROR 181
|
||||
# define EC_R_PKPARAMETERS2GROUP_FAILURE 182
|
||||
# define EC_R_POINT_ARITHMETIC_FAILURE 183
|
||||
# define EC_R_POINT_AT_INFINITY 184
|
||||
# define EC_R_POINT_IS_NOT_ON_CURVE 185
|
||||
# define EC_R_RANDOM_NUMBER_GENERATION_FAILED 186
|
||||
# define EC_R_SHARED_INFO_ERROR 187
|
||||
# define EC_R_SLOT_FULL 188
|
||||
# define EC_R_SM2_DECRYPT_FAILED 189
|
||||
# define EC_R_SM2_ENCRYPT_FAILED 190
|
||||
# define EC_R_SM2_KAP_NOT_INITED 191
|
||||
# define EC_R_UNDEFINED_GENERATOR 192
|
||||
# define EC_R_UNDEFINED_ORDER 193
|
||||
# define EC_R_UNKNOWN_GROUP 194
|
||||
# define EC_R_UNKNOWN_ORDER 195
|
||||
# define EC_R_UNSUPPORTED_FIELD 196
|
||||
# define EC_R_WRONG_CURVE_PARAMETERS 197
|
||||
# define EC_R_WRONG_ORDER 198
|
||||
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -1,112 +0,0 @@
|
||||
/* ====================================================================
|
||||
* Copyright (c) 2014 - 2019 The GmSSL Project. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
*
|
||||
* 3. All advertising materials mentioning features or use of this
|
||||
* software must display the following acknowledgment:
|
||||
* "This product includes software developed by the GmSSL Project.
|
||||
* (http://gmssl.org/)"
|
||||
*
|
||||
* 4. The name "GmSSL Project" must not be used to endorse or promote
|
||||
* products derived from this software without prior written
|
||||
* permission. For written permission, please contact
|
||||
* guanzhi1980@gmail.com.
|
||||
*
|
||||
* 5. Products derived from this software may not be called "GmSSL"
|
||||
* nor may "GmSSL" appear in their names without prior written
|
||||
* permission of the GmSSL Project.
|
||||
*
|
||||
* 6. Redistributions of any form whatsoever must retain the following
|
||||
* acknowledgment:
|
||||
* "This product includes software developed by the GmSSL Project
|
||||
* (http://gmssl.org/)"
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE GmSSL PROJECT ``AS IS'' AND ANY
|
||||
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE GmSSL PROJECT OR
|
||||
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
* ====================================================================
|
||||
*/
|
||||
|
||||
#ifndef HEADER_ECRS_H
|
||||
#define HEADER_ECRS_H
|
||||
|
||||
#include <openssl/opensslconf.h>
|
||||
#ifndef OPENSSL_NO_ECRS
|
||||
|
||||
#include <openssl/ec.h>
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/asn1.h>
|
||||
#include <openssl/asn1t.h>
|
||||
#include <openssl/stack.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct ECRS_SIG_st ECRS_SIG;
|
||||
DECLARE_ASN1_FUNCTIONS(ECRS_SIG)
|
||||
|
||||
int ECRS_size(const EC_KEY *ec_key, int n);
|
||||
|
||||
ECRS_SIG *ECRS_do_sign(const EVP_MD *md, const unsigned char *dgst,
|
||||
int dgstlen, STACK_OF(EC_KEY) *pub_keys, EC_KEY *ec_key);
|
||||
|
||||
int ECRS_do_verify(const EVP_MD *md, const unsigned char *dgst, int dgstlen,
|
||||
const ECRS_SIG *sig, STACK_OF(EC_KEY) *pub_keys);
|
||||
|
||||
int ECRS_sign(int type, const unsigned char *dgst, int dgstlen,
|
||||
unsigned char *sig, unsigned int *siglen, STACK_OF(EC_KEY) *pub_keys,
|
||||
EC_KEY *ec_key);
|
||||
|
||||
int ECRS_verify(int type, const unsigned char *dgst, int dgstlen,
|
||||
const unsigned char *sig, int siglen, STACK_OF(EC_KEY) *pub_keys);
|
||||
|
||||
/* BEGIN ERROR CODES */
|
||||
/*
|
||||
* The following lines are auto generated by the script mkerr.pl. Any changes
|
||||
* made after this point may be overwritten when the script is next run.
|
||||
*/
|
||||
|
||||
int ERR_load_ECRS_strings(void);
|
||||
|
||||
/* Error codes for the ECRS functions. */
|
||||
|
||||
/* Function codes. */
|
||||
# define ECRS_F_ECRS_DO_SIGN 100
|
||||
# define ECRS_F_ECRS_DO_VERIFY 103
|
||||
# define ECRS_F_ECRS_SIGN 101
|
||||
# define ECRS_F_ECRS_VERIFY 102
|
||||
|
||||
/* Reason codes. */
|
||||
# define ECRS_R_EC_KEY_NOT_MATCH 100
|
||||
# define ECRS_R_INVALID_DIGEST_ALGOR 101
|
||||
# define ECRS_R_NO_SIGNING_KEY 102
|
||||
# define ECRS_R_PARSE_SIGNATURE_FAILURE 103
|
||||
# define ECRS_R_PUBLIC_KEYS_NOT_MATCH 104
|
||||
# define ECRS_R_PUBLIC_KEYS_NOT_MATCH_SIG 105
|
||||
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
@@ -1,82 +0,0 @@
|
||||
/* ====================================================================
|
||||
* Copyright (c) 2015 - 2019 The GmSSL Project. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
*
|
||||
* 3. All advertising materials mentioning features or use of this
|
||||
* software must display the following acknowledgment:
|
||||
* "This product includes software developed by the GmSSL Project.
|
||||
* (http://gmssl.org/)"
|
||||
*
|
||||
* 4. The name "GmSSL Project" must not be used to endorse or promote
|
||||
* products derived from this software without prior written
|
||||
* permission. For written permission, please contact
|
||||
* guanzhi1980@gmail.com.
|
||||
*
|
||||
* 5. Products derived from this software may not be called "GmSSL"
|
||||
* nor may "GmSSL" appear in their names without prior written
|
||||
* permission of the GmSSL Project.
|
||||
*
|
||||
* 6. Redistributions of any form whatsoever must retain the following
|
||||
* acknowledgment:
|
||||
* "This product includes software developed by the GmSSL Project
|
||||
* (http://gmssl.org/)"
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE GmSSL PROJECT ``AS IS'' AND ANY
|
||||
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE GmSSL PROJECT OR
|
||||
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
* ====================================================================
|
||||
*/
|
||||
|
||||
#ifndef HEADER_ECSCHNORR_H
|
||||
#define HEADER_ECSCHNORR_H
|
||||
|
||||
#include <openssl/opensslconf.h>
|
||||
#ifndef OPENSSL_NO_ECSCHNORR
|
||||
|
||||
#include <openssl/ec.h>
|
||||
#include <openssl/err.h>
|
||||
#include <openssl/evp.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct ECSCHNORR_SIG_st ECSCHNORR_SIG;
|
||||
DECLARE_ASN1_FUNCTIONS(ECSCHNORR_SIG)
|
||||
|
||||
/* return the maximum ec schnorr signature size */
|
||||
int ECSCHNORR_size(const EC_KEY *ec_key);
|
||||
|
||||
ECSCHNORR_SIG *ECSCHNORR_do_sign(const EVP_MD *md,
|
||||
const unsigned char *dgst, int dgst_len, EC_KEY *ec_key);
|
||||
int ECSCHNORR_do_verify(const EVP_MD *md,
|
||||
const unsigned char *dgst, int dgstlen,
|
||||
const ECSCHNORR_SIG *sig, EC_KEY *ec_key);
|
||||
|
||||
int ECSCHNORR_sign(int type, const unsigned char *dgst, int dgstlen,
|
||||
unsigned char *sig, unsigned int *siglen, EC_KEY *eckey);
|
||||
int ECSCHNORR_verify(int type, const unsigned char *dgst, int dgstlen,
|
||||
const unsigned char *sig, int siglen, EC_KEY *ec_key);
|
||||
|
||||
|
||||
/* BEGIN ERROR CODES */
|
||||
@@ -108,7 +108,6 @@ typedef struct err_state_st {
|
||||
# define ERR_LIB_SOF 65
|
||||
# define ERR_LIB_SM2 66
|
||||
# define ERR_LIB_BASE58 67
|
||||
# define ERR_LIB_ECRS 68
|
||||
|
||||
# define ERR_LIB_USER 128
|
||||
|
||||
@@ -162,7 +161,6 @@ typedef struct err_state_st {
|
||||
# define SKFerr(f,r) ERR_PUT_error(ERR_LIB_SKF,(f),(r),OPENSSL_FILE,OPENSSL_LINE)
|
||||
# define SOFerr(f,r) ERR_PUT_error(ERR_LIB_SOF,(f),(r),OPENSSL_FILE,OPENSSL_LINE)
|
||||
# define BASE58err(f,r) ERR_PUT_error(ERR_LIB_BASE58,(f),(r),OPENSSL_FILE,OPENSSL_LINE)
|
||||
# define ECRSerr(f,r) ERR_PUT_error(ERR_LIB_ECRS,(f),(r),OPENSSL_FILE,OPENSSL_LINE)
|
||||
|
||||
# define ERR_PACK(l,f,r) ( \
|
||||
(((unsigned int)(l) & 0x0FF) << 24L) | \
|
||||
@@ -225,7 +223,6 @@ typedef struct err_state_st {
|
||||
# define ERR_R_SKF_LIB ERR_LIB_SKF/* 64 */
|
||||
# define ERR_R_SOF_LIB ERR_LIB_SOF/* 65 */
|
||||
# define ERR_R_BASE58_LIB ERR_LIB_BASE58/* 67 */
|
||||
# define ERR_R_ECRS_LIB ERR_LIB_ECRS/* 68 */
|
||||
|
||||
# define ERR_R_NESTED_ASN1_ERROR 58
|
||||
|
||||
|
||||
Reference in New Issue
Block a user