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/bn.h

    r337 r372  
     1/* bn.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/* bn.h for openssl */
     23
     24/*!
     25    \file wolfssl/openssl/bn.h
     26    \brief bn.h for openssl
     27*/
    228
    329
     
    3864WOLFSSL_API int wolfSSL_BN_mod_exp(WOLFSSL_BIGNUM *r, const WOLFSSL_BIGNUM *a,
    3965        const WOLFSSL_BIGNUM *p, const WOLFSSL_BIGNUM *m, WOLFSSL_BN_CTX *ctx);
     66WOLFSSL_API int wolfSSL_BN_mod_mul(WOLFSSL_BIGNUM *r, const WOLFSSL_BIGNUM *a,
     67        const WOLFSSL_BIGNUM *b, const WOLFSSL_BIGNUM *m, WOLFSSL_BN_CTX *ctx);
    4068WOLFSSL_API const WOLFSSL_BIGNUM* wolfSSL_BN_value_one(void);
    4169
     
    5684WOLFSSL_API int wolfSSL_mask_bits(WOLFSSL_BIGNUM*, int n);
    5785
     86WOLFSSL_API int wolfSSL_BN_pseudo_rand(WOLFSSL_BIGNUM*, int bits, int top,
     87        int bottom);
    5888WOLFSSL_API int wolfSSL_BN_rand(WOLFSSL_BIGNUM*, int bits, int top, int bottom);
    5989WOLFSSL_API int wolfSSL_BN_is_bit_set(const WOLFSSL_BIGNUM*, int n);
     
    71101WOLFSSL_API int wolfSSL_BN_set_bit(WOLFSSL_BIGNUM*, int);
    72102WOLFSSL_API int wolfSSL_BN_set_word(WOLFSSL_BIGNUM*, WOLFSSL_BN_ULONG);
     103WOLFSSL_API unsigned long wolfSSL_BN_get_word(const WOLFSSL_BIGNUM*);
    73104
    74105WOLFSSL_API int wolfSSL_BN_add(WOLFSSL_BIGNUM*, WOLFSSL_BIGNUM*,
     
    80111                                                 WOLFSSL_BN_ULONG);
    81112#if !defined(NO_FILESYSTEM) && !defined(NO_STDIO_FILESYSTEM)
    82     WOLFSSL_API int wolfSSL_BN_print_fp(FILE*, const WOLFSSL_BIGNUM*);
     113    WOLFSSL_API int wolfSSL_BN_print_fp(XFILE, const WOLFSSL_BIGNUM*);
    83114#endif
    84115WOLFSSL_API int wolfSSL_BN_rshift(WOLFSSL_BIGNUM*, const WOLFSSL_BIGNUM*, int);
    85116WOLFSSL_API WOLFSSL_BIGNUM *wolfSSL_BN_CTX_get(WOLFSSL_BN_CTX *ctx);
    86117WOLFSSL_API void wolfSSL_BN_CTX_start(WOLFSSL_BN_CTX *ctx);
    87 
     118WOLFSSL_API WOLFSSL_BIGNUM *wolfSSL_BN_mod_inverse(WOLFSSL_BIGNUM*, WOLFSSL_BIGNUM*,
     119                                        const WOLFSSL_BIGNUM*, WOLFSSL_BN_CTX *ctx);
    88120typedef WOLFSSL_BIGNUM BIGNUM;
    89121typedef WOLFSSL_BN_CTX BN_CTX;
     
    112144#define BN_mod       wolfSSL_BN_mod
    113145#define BN_mod_exp   wolfSSL_BN_mod_exp
     146#define BN_mod_mul   wolfSSL_BN_mod_mul
    114147#define BN_sub       wolfSSL_BN_sub
    115148#define BN_value_one wolfSSL_BN_value_one
     
    117150#define BN_mask_bits wolfSSL_mask_bits
    118151
     152#define BN_pseudo_rand wolfSSL_BN_pseudo_rand
    119153#define BN_rand       wolfSSL_BN_rand
    120154#define BN_is_bit_set wolfSSL_BN_is_bit_set
     
    124158#define BN_copy wolfSSL_BN_copy
    125159
     160#define BN_get_word wolfSSL_BN_get_word
    126161#define BN_set_word wolfSSL_BN_set_word
    127162
     
    145180#define BN_CTX_start wolfSSL_BN_CTX_start
    146181
     182#define BN_mod_inverse wolfSSL_BN_mod_inverse
     183
    147184#ifdef __cplusplus
    148185    }  /* extern "C" */
Note: See TracChangeset for help on using the changeset viewer.