- Timestamp:
- Feb 7, 2019, 8:36:33 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_arm/trunk/wolfssl-3.12.2/wolfssl/openssl/bn.h
r352 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 1 22 /* bn.h for openssl */ 23 24 /*! 25 \file wolfssl/openssl/bn.h 26 \brief bn.h for openssl 27 */ 2 28 3 29 … … 38 64 WOLFSSL_API int wolfSSL_BN_mod_exp(WOLFSSL_BIGNUM *r, const WOLFSSL_BIGNUM *a, 39 65 const WOLFSSL_BIGNUM *p, const WOLFSSL_BIGNUM *m, WOLFSSL_BN_CTX *ctx); 66 WOLFSSL_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); 40 68 WOLFSSL_API const WOLFSSL_BIGNUM* wolfSSL_BN_value_one(void); 41 69 … … 56 84 WOLFSSL_API int wolfSSL_mask_bits(WOLFSSL_BIGNUM*, int n); 57 85 86 WOLFSSL_API int wolfSSL_BN_pseudo_rand(WOLFSSL_BIGNUM*, int bits, int top, 87 int bottom); 58 88 WOLFSSL_API int wolfSSL_BN_rand(WOLFSSL_BIGNUM*, int bits, int top, int bottom); 59 89 WOLFSSL_API int wolfSSL_BN_is_bit_set(const WOLFSSL_BIGNUM*, int n); … … 71 101 WOLFSSL_API int wolfSSL_BN_set_bit(WOLFSSL_BIGNUM*, int); 72 102 WOLFSSL_API int wolfSSL_BN_set_word(WOLFSSL_BIGNUM*, WOLFSSL_BN_ULONG); 103 WOLFSSL_API unsigned long wolfSSL_BN_get_word(const WOLFSSL_BIGNUM*); 73 104 74 105 WOLFSSL_API int wolfSSL_BN_add(WOLFSSL_BIGNUM*, WOLFSSL_BIGNUM*, … … 80 111 WOLFSSL_BN_ULONG); 81 112 #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*); 83 114 #endif 84 115 WOLFSSL_API int wolfSSL_BN_rshift(WOLFSSL_BIGNUM*, const WOLFSSL_BIGNUM*, int); 85 116 WOLFSSL_API WOLFSSL_BIGNUM *wolfSSL_BN_CTX_get(WOLFSSL_BN_CTX *ctx); 86 117 WOLFSSL_API void wolfSSL_BN_CTX_start(WOLFSSL_BN_CTX *ctx); 87 118 WOLFSSL_API WOLFSSL_BIGNUM *wolfSSL_BN_mod_inverse(WOLFSSL_BIGNUM*, WOLFSSL_BIGNUM*, 119 const WOLFSSL_BIGNUM*, WOLFSSL_BN_CTX *ctx); 88 120 typedef WOLFSSL_BIGNUM BIGNUM; 89 121 typedef WOLFSSL_BN_CTX BN_CTX; … … 112 144 #define BN_mod wolfSSL_BN_mod 113 145 #define BN_mod_exp wolfSSL_BN_mod_exp 146 #define BN_mod_mul wolfSSL_BN_mod_mul 114 147 #define BN_sub wolfSSL_BN_sub 115 148 #define BN_value_one wolfSSL_BN_value_one … … 117 150 #define BN_mask_bits wolfSSL_mask_bits 118 151 152 #define BN_pseudo_rand wolfSSL_BN_pseudo_rand 119 153 #define BN_rand wolfSSL_BN_rand 120 154 #define BN_is_bit_set wolfSSL_BN_is_bit_set … … 124 158 #define BN_copy wolfSSL_BN_copy 125 159 160 #define BN_get_word wolfSSL_BN_get_word 126 161 #define BN_set_word wolfSSL_BN_set_word 127 162 … … 145 180 #define BN_CTX_start wolfSSL_BN_CTX_start 146 181 182 #define BN_mod_inverse wolfSSL_BN_mod_inverse 183 147 184 #ifdef __cplusplus 148 185 } /* extern "C" */
Note:
See TracChangeset
for help on using the changeset viewer.