Ignore:
Timestamp:
Feb 7, 2019, 8:36:33 AM (5 years ago)
Author:
coas-nagasima
Message:

wolfsslを3.15.7にバージョンアップ

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
    122/* ec.h for openssl */
    223
     
    1334/* Map OpenSSL NID value */
    1435enum {
     36    POINT_CONVERSION_COMPRESSED = 2,
    1537    POINT_CONVERSION_UNCOMPRESSED = 4,
    1638
     
    81103};
    82104
     105
     106#define WOLFSSL_EC_KEY_LOAD_PRIVATE 1
     107#define WOLFSSL_EC_KEY_LOAD_PUBLIC  2
     108
    83109WOLFSSL_API
    84110int wolfSSL_ECPoint_i2d(const WOLFSSL_EC_GROUP *curve,
     
    92118                           const unsigned char* der, int derSz);
    93119WOLFSSL_API
     120int wolfSSL_EC_KEY_LoadDer_ex(WOLFSSL_EC_KEY* key,
     121                              const unsigned char* der, int derSz, int opt);
     122WOLFSSL_API
    94123void wolfSSL_EC_KEY_free(WOLFSSL_EC_KEY *key);
    95124WOLFSSL_API
     
    131160WOLFSSL_API
    132161void wolfSSL_EC_GROUP_free(WOLFSSL_EC_GROUP *group);
    133 #if defined(DEBUG_WOLFSSL) && !defined(NO_FILESYSTEM)
    134 WOLFSSL_API
    135 void wolfssl_EC_POINT_dump(const char *msg, const WOLFSSL_EC_POINT *p);
    136 #endif
    137162WOLFSSL_API
    138163WOLFSSL_EC_POINT *wolfSSL_EC_POINT_new(const WOLFSSL_EC_GROUP *group);
     
    160185                                    const WOLFSSL_EC_POINT *a);
    161186
     187#ifndef HAVE_SELFTEST
     188WOLFSSL_API
     189char* 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
    162195#define EC_KEY_free wolfSSL_EC_KEY_free
    163196#define EC_KEY_get0_public_key wolfSSL_EC_KEY_get0_public_key
     
    170203#define EC_KEY_set_asn1_flag wolfSSL_EC_KEY_set_asn1_flag
    171204#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
    174207#define EC_GROUP_set_asn1_flag wolfSSL_EC_GROUP_set_asn1_flag
    175208#define EC_GROUP_new_by_curve_name wolfSSL_EC_GROUP_new_by_curve_name
     
    178211#define EC_GROUP_get_degree wolfSSL_EC_GROUP_get_degree
    179212#define EC_GROUP_get_order wolfSSL_EC_GROUP_get_order
    180 #define EC_GROUP_free wolfSSL_EC_GROUP_free
    181213
    182214#define EC_POINT_new wolfSSL_EC_POINT_new
     215#define EC_POINT_free                   wolfSSL_EC_POINT_free
    183216#define EC_POINT_get_affine_coordinates_GFp \
    184217            wolfSSL_EC_POINT_get_affine_coordinates_GFp
     
    186219#define EC_POINT_clear_free wolfSSL_EC_POINT_clear_free
    187220#define EC_POINT_cmp wolfSSL_EC_POINT_cmp
    188 #define EC_POINT_free wolfSSL_EC_POINT_free
    189221#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
    190228
    191229#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.