wolfSSL SSL/TLS library, support up to TLS1.3
Dependents: CyaSSL-Twitter-OAuth4Tw Example-client-tls-cert TwitterReader TweetTest ... more
wolfssl/wolfcrypt/wolfmath.h@6:fa3bd0ca5896, 2017-05-02 (annotated)
- Committer:
- wolfSSL
- Date:
- Tue May 02 08:44:26 2017 +0000
- Revision:
- 6:fa3bd0ca5896
wolfSSL3.10.2;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wolfSSL | 6:fa3bd0ca5896 | 1 | /* wolfmath.h |
wolfSSL | 6:fa3bd0ca5896 | 2 | * |
wolfSSL | 6:fa3bd0ca5896 | 3 | * Copyright (C) 2006-2016 wolfSSL Inc. |
wolfSSL | 6:fa3bd0ca5896 | 4 | * |
wolfSSL | 6:fa3bd0ca5896 | 5 | * This file is part of wolfSSL. |
wolfSSL | 6:fa3bd0ca5896 | 6 | * |
wolfSSL | 6:fa3bd0ca5896 | 7 | * wolfSSL is free software; you can redistribute it and/or modify |
wolfSSL | 6:fa3bd0ca5896 | 8 | * it under the terms of the GNU General Public License as published by |
wolfSSL | 6:fa3bd0ca5896 | 9 | * the Free Software Foundation; either version 2 of the License, or |
wolfSSL | 6:fa3bd0ca5896 | 10 | * (at your option) any later version. |
wolfSSL | 6:fa3bd0ca5896 | 11 | * |
wolfSSL | 6:fa3bd0ca5896 | 12 | * wolfSSL is distributed in the hope that it will be useful, |
wolfSSL | 6:fa3bd0ca5896 | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
wolfSSL | 6:fa3bd0ca5896 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
wolfSSL | 6:fa3bd0ca5896 | 15 | * GNU General Public License for more details. |
wolfSSL | 6:fa3bd0ca5896 | 16 | * |
wolfSSL | 6:fa3bd0ca5896 | 17 | * You should have received a copy of the GNU General Public License |
wolfSSL | 6:fa3bd0ca5896 | 18 | * along with this program; if not, write to the Free Software |
wolfSSL | 6:fa3bd0ca5896 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA |
wolfSSL | 6:fa3bd0ca5896 | 20 | */ |
wolfSSL | 6:fa3bd0ca5896 | 21 | |
wolfSSL | 6:fa3bd0ca5896 | 22 | #ifndef __WOLFMATH_H__ |
wolfSSL | 6:fa3bd0ca5896 | 23 | #define __WOLFMATH_H__ |
wolfSSL | 6:fa3bd0ca5896 | 24 | |
wolfSSL | 6:fa3bd0ca5896 | 25 | |
wolfSSL | 6:fa3bd0ca5896 | 26 | /* common math functions */ |
wolfSSL | 6:fa3bd0ca5896 | 27 | WOLFSSL_LOCAL int get_digit_count(mp_int* a); |
wolfSSL | 6:fa3bd0ca5896 | 28 | WOLFSSL_LOCAL mp_digit get_digit(mp_int* a, int n); |
wolfSSL | 6:fa3bd0ca5896 | 29 | WOLFSSL_LOCAL int get_rand_digit(WC_RNG* rng, mp_digit* d); |
wolfSSL | 6:fa3bd0ca5896 | 30 | WOLFSSL_LOCAL int mp_rand(mp_int* a, int digits, WC_RNG* rng); |
wolfSSL | 6:fa3bd0ca5896 | 31 | |
wolfSSL | 6:fa3bd0ca5896 | 32 | |
wolfSSL | 6:fa3bd0ca5896 | 33 | #endif /* __WOLFMATH_H__ */ |
wolfSSL | 6:fa3bd0ca5896 | 34 |