- Timestamp:
- Feb 7, 2019, 8:36:33 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_rx/trunk/wolfssl-3.12.2/wolfssl/openssl/ec.h
r337 r372 1 /* ec.h 2 * 3 * Copyright (C) 2006-2017 wolfSSL Inc. 4 * 5 * This file is part of wolfSSL. 6 * 7 * wolfSSL is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * wolfSSL is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 */ 21 1 22 /* ec.h for openssl */ 2 23 … … 13 34 /* Map OpenSSL NID value */ 14 35 enum { 36 POINT_CONVERSION_COMPRESSED = 2, 15 37 POINT_CONVERSION_UNCOMPRESSED = 4, 16 38 … … 81 103 }; 82 104 105 106 #define WOLFSSL_EC_KEY_LOAD_PRIVATE 1 107 #define WOLFSSL_EC_KEY_LOAD_PUBLIC 2 108 83 109 WOLFSSL_API 84 110 int wolfSSL_ECPoint_i2d(const WOLFSSL_EC_GROUP *curve, … … 92 118 const unsigned char* der, int derSz); 93 119 WOLFSSL_API 120 int wolfSSL_EC_KEY_LoadDer_ex(WOLFSSL_EC_KEY* key, 121 const unsigned char* der, int derSz, int opt); 122 WOLFSSL_API 94 123 void wolfSSL_EC_KEY_free(WOLFSSL_EC_KEY *key); 95 124 WOLFSSL_API … … 131 160 WOLFSSL_API 132 161 void wolfSSL_EC_GROUP_free(WOLFSSL_EC_GROUP *group); 133 #if defined(DEBUG_WOLFSSL) && !defined(NO_FILESYSTEM)134 WOLFSSL_API135 void wolfssl_EC_POINT_dump(const char *msg, const WOLFSSL_EC_POINT *p);136 #endif137 162 WOLFSSL_API 138 163 WOLFSSL_EC_POINT *wolfSSL_EC_POINT_new(const WOLFSSL_EC_GROUP *group); … … 160 185 const WOLFSSL_EC_POINT *a); 161 186 187 #ifndef HAVE_SELFTEST 188 WOLFSSL_API 189 char* wolfSSL_EC_POINT_point2hex(const WOLFSSL_EC_GROUP* group, 190 const WOLFSSL_EC_POINT* point, int form, 191 WOLFSSL_BN_CTX* ctx); 192 #endif 193 194 #define EC_KEY_new wolfSSL_EC_KEY_new 162 195 #define EC_KEY_free wolfSSL_EC_KEY_free 163 196 #define EC_KEY_get0_public_key wolfSSL_EC_KEY_get0_public_key … … 170 203 #define EC_KEY_set_asn1_flag wolfSSL_EC_KEY_set_asn1_flag 171 204 #define EC_KEY_set_public_key wolfSSL_EC_KEY_set_public_key 172 #define EC_KEY_new wolfSSL_EC_KEY_new 173 205 206 #define EC_GROUP_free wolfSSL_EC_GROUP_free 174 207 #define EC_GROUP_set_asn1_flag wolfSSL_EC_GROUP_set_asn1_flag 175 208 #define EC_GROUP_new_by_curve_name wolfSSL_EC_GROUP_new_by_curve_name … … 178 211 #define EC_GROUP_get_degree wolfSSL_EC_GROUP_get_degree 179 212 #define EC_GROUP_get_order wolfSSL_EC_GROUP_get_order 180 #define EC_GROUP_free wolfSSL_EC_GROUP_free181 213 182 214 #define EC_POINT_new wolfSSL_EC_POINT_new 215 #define EC_POINT_free wolfSSL_EC_POINT_free 183 216 #define EC_POINT_get_affine_coordinates_GFp \ 184 217 wolfSSL_EC_POINT_get_affine_coordinates_GFp … … 186 219 #define EC_POINT_clear_free wolfSSL_EC_POINT_clear_free 187 220 #define EC_POINT_cmp wolfSSL_EC_POINT_cmp 188 #define EC_POINT_free wolfSSL_EC_POINT_free189 221 #define EC_POINT_is_at_infinity wolfSSL_EC_POINT_is_at_infinity 222 223 #ifndef HAVE_SELFTEST 224 #define EC_POINT_point2hex wolfSSL_EC_POINT_point2hex 225 #endif 226 227 #define EC_POINT_dump wolfSSL_EC_POINT_dump 190 228 191 229 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.