David Garske
|
431f363520
|
Better fixes for suppressing scan-build warning with normal math enabled.
|
2017-03-03 07:35:26 -08:00 |
|
David Garske
|
67a8626430
|
Fix for scan-build warning with “->dp == NULL”. Scenario can’t happen, but adding sanity check to suppress warning.
|
2017-03-02 15:56:31 -08:00 |
|
David Garske
|
9db6a27921
|
Fixes for scan-build warnings. Fix possible memory leak in wolfSSL_DH_new on failure. Add null checks in integer.c for destination to make sure “dp” grows when NULL (even though never happens in real-use). Added suppression of wc_port.c warning “Value stored to 'ret' is never read”.
|
2017-02-23 14:47:36 -08:00 |
|
David Garske
|
4cbfec1c7d
|
Implemented ksdk_port fixes to handle mp_ response codes. Added KSDK support for normal math. Regression testing against K82 hardware (MMCAU/LTC) and software with normal and fast math.
|
2017-02-21 14:03:21 -08:00 |
|
David Garske
|
3008c888bf
|
Fix mp_cmp_d logic to handle a->used == 0. Revert mp_copy and mp_set 0 size workarounds.
|
2017-02-21 14:03:21 -08:00 |
|
David Garske
|
9c7407d18c
|
Added return codes to wc_InitDhKey, wc_InitDsaKey and mp_set. Added missing return code checks on mp_copy in ecc.c. Fixed build with DSA and no ECC where mp_set function def would be missing.
|
2017-02-21 14:03:21 -08:00 |
|
David Garske
|
da5825b94d
|
Normal math speed-up to not allocate on mp_int and defer until mp_grow. Added memory tracker support to ./tests/unit.test. Fix memory leak with curve cache enabled, by adding to wolfSSL_Cleanup.
|
2017-02-21 13:59:38 -08:00 |
|
David Garske
|
4f53761faf
|
Fix naming for integer.c min/max local variables to resolve reported “error: declaration of 'min' shadows a global declaration”.
|
2017-02-09 15:52:25 -08:00 |
|
dgarske
|
ee53853d2f
|
Merge pull request #632 from toddouska/init_multi
fix non ecc_make_key init_mulit potential problems
|
2016-11-14 19:34:14 -08:00 |
|
toddouska
|
1a7fe0d4c5
|
fix non ecc_make_key init_mulit potential problems
|
2016-11-14 12:49:42 -08:00 |
|
David Garske
|
6d5485b88f
|
Fix to "mp_init_multi" so failure ensures a later "mp_clear" won't free on un-initialized pointer. Applies to !USE_FAST_MATH only. No measurable benchmark difference.
|
2016-11-11 20:03:58 -08:00 |
|
toddouska
|
c2b55f69fa
|
fix 32bit mp_add_d need
|
2016-07-18 12:49:31 -07:00 |
|
David Garske
|
dd52af0872
|
ECC cleanup / fixes. Improvements to ECC with fast math enabled to avoid mp_clear on stack variables. Refactor of ECC failure cleanup (fixes possible mem leaks with small stack enabled). Refactor of "fp_is*" response checks to use FP_YES or FP_NO. Pulled libtom enhancement/cleanup of fp_isprime. Fix for compressed keys import with custom curves (still having some issues though).
|
2016-06-21 15:27:51 -07:00 |
|
David Garske
|
aa1a405dd1
|
Fixes for compressed keys. Fix to fast math "mp_cnt_lsb" to return proper value, which fixes "mp_jacobi", which fixes "mp_sqrtmod_prime", which fixes compressed keys for 224-bit key. Removed workarounds for compressed keys. Added new configure option "--enable-compkey". Fixed issue with normal math and custom curves where "t2" could be free'd and used. Fixed issue with mp_dump in integer.c, with not allocating correctly sized buffer for toradix.
|
2016-06-21 14:06:02 -07:00 |
|
David Garske
|
5703e5eadb
|
ECC changes to support custom curves. Added new "WOLFSSL_CUSTOM_CURVES" option to support non-standard ECC curves in ecc_is_point and ecc_projective_dbl_point. Refactor to load and pass curve "a" parameter down through ECC functions. Relocated mp_submod and added mp_addmod. Refactor to pass mp variable directly (not pointer) for montgomery variable. Fix in mp_jacobi to also handle case of a == 0. Cleanup of *_ecc_mulmod and wc_ecc_make_key_ex error handling. Cleanup of ecc_map for handling normal, fast and alt_ecc math for optimization of performance and allowing reduced ecc_size.
|
2016-06-15 08:41:51 -07:00 |
|
David Garske
|
87c00eb3f3
|
Math updates from libtom. Fixes in mp_read_radix for to include char 36 and clear the destination before checks. Fix to clear tmp value on fp_sub_d and fp_add_d. Fixes in assembly for x86-32 INNERMUL, PPC32 INNERMUL and PROPCARRY and x86-64 SQRADD. Added mp_isneg. Refactor of mp_iszero, mp_iseven, mp_isodd and mp_isneg to check using MP_YES or MP_NO. Changed fp_read_unsigned_bin "b" arg to const. Removal of the "register" on stack variables to let compiler determine best optimization.
|
2016-06-14 16:56:22 -07:00 |
|
David Garske
|
2ad9d41641
|
Performance improvement for fast math mp_clear to use fp_zero (memset) instead of fp_clear(ForceZero). Added new mp_forcezero function for clearing/free'ing sensitive private key data. Changed ECC and RSA to use mp_forcezero to explicitly handle private key clearing.
|
2016-05-12 11:50:34 -07:00 |
|
David Garske
|
440956f8d4
|
Fixed new issue with ecc_projective_add_point not free'ing the local x, y, z if fast math was disabled. Formatting cleanup in integer.c.
|
2016-05-11 08:47:30 -07:00 |
|
David Garske
|
5cbc4bdf29
|
Added new "WOLFSSL_DEBUG_MATH", which enables use of "mp_dump" to display information about an mp_int.
|
2016-05-09 09:51:11 -07:00 |
|
Jacob Barthelmeh
|
e99a5b0483
|
prepare for release v3.9.0
|
2016-03-17 16:02:13 -06:00 |
|
John Safranek
|
b6017c59ba
|
Merge pull request #275 from dgarske/WolfErrorTypo
Fixed spelling errors
|
2016-02-01 09:00:10 -08:00 |
|
David Garske
|
f8876854f4
|
Spelling fixes in comments and error strings (ALGO_ID_E, ASN_TIME_E and WOLFSSL_ERROR function).
|
2016-01-29 16:13:09 -08:00 |
|
toddouska
|
fa25e5d09d
|
fix normal math off by one loop error in fast_s_mp_mul_high_digs
|
2016-01-29 13:54:41 -08:00 |
|
Chris Conlon
|
0801eeac8d
|
update support for Freescale KSDK 1.3.0
|
2016-01-25 10:41:26 -07:00 |
|
kaleb-himes
|
38392ce56a
|
safeguards to avoid de-referencing a null pointer
|
2016-01-06 10:12:52 -07:00 |
|
Chris Conlon
|
b153ac002c
|
fix Visual Studio warnings
|
2015-12-21 16:11:02 -07:00 |
|
kaleb-himes
|
c3a249009f
|
allow openssl extra tests if configuration supports
|
2015-11-10 15:29:05 -07:00 |
|
toddouska
|
ad51d4ba09
|
make sure fast invmod lowers result in too big case
|
2015-10-02 15:38:22 -07:00 |
|
Chris Conlon
|
0cd893a51b
|
Freescale: Use new I/O where applicable
|
2015-08-07 16:22:31 -06:00 |
|
Chris Conlon
|
5d40c5f566
|
Rename RNG to WC_RNG for Freescale, add NO_OLD_RNGNAME define to completely remove RNG type usage
|
2015-08-07 11:53:19 -06:00 |
|
kaleb-himes
|
121a24ba15
|
update logic for ECC FASTMATH KEY-GEN and COMP-KEY
|
2015-08-04 15:11:01 -06:00 |
|
toddouska
|
0a975eaff9
|
fix valgrind warning mp_add_d
|
2015-07-24 15:34:56 -07:00 |
|
toddouska
|
45ef61e46f
|
fix warnings
|
2015-07-24 12:43:26 -07:00 |
|
Ludovic FLAMENT
|
9c2a85d9f6
|
fix compilation for 32 bits OS
|
2015-07-24 11:17:06 +02:00 |
|
Ludovic FLAMENT
|
8951d72f03
|
Merge branch 'master' of https://github.com/wolfSSL/wolfssl
Fix DSA key generation
|
2015-07-23 13:24:20 +02:00 |
|
Ludovic FLAMENT
|
349edd40c2
|
Add support for OpenSSH ssh-keygen tools
refactor existing code
|
2015-07-22 14:18:07 +02:00 |
|
Ludovic FLAMENT
|
702dbcf570
|
align return code, coding style (tab-> space, line with 80 char), curve_idx validity
|
2015-07-05 20:10:43 +02:00 |
|
toddouska
|
1d663d3bff
|
merge conflict
|
2015-07-01 12:24:11 -07:00 |
|
Moisés Guimarães
|
ed65565390
|
integer.c: refactoring mp_exptmod_fast to reduce stack usage:
--- variable M moved to the heap (512 bytes saved)
|
2015-05-28 18:29:17 -03:00 |
|
Moisés Guimarães
|
a7a00a4bd5
|
remove trailing spaces.
|
2015-05-28 18:29:17 -03:00 |
|
toddouska
|
6db33051d3
|
better detection of invalid ecc keys
|
2015-05-01 14:44:43 -07:00 |
|
toddouska
|
3daa8369c7
|
allow XTOUPPER to work with macros that don't like signed types
|
2015-03-11 17:52:11 -07:00 |
|
kaleb-himes
|
402bbe0321
|
32 bit implicit cast
|
2015-01-20 13:44:35 -07:00 |
|
kaleb-himes
|
a389620a29
|
Copyright (C) updates
|
2015-01-08 09:39:04 -07:00 |
|
Jacob Barthelmeh
|
894b888291
|
update to misc.c integer.c and tfm.c
|
2014-12-29 12:59:14 -07:00 |
|
Kaleb Himes
|
d6f37bd34f
|
shell files for autotools
|
2014-12-19 10:19:29 -07:00 |
|