toddouska
|
c2b55f69fa
|
fix 32bit mp_add_d need
|
2016-07-18 12:49:31 -07:00 |
|
toddouska
|
d235a5f0cc
|
add WC_RSA_BLINDING, wc_RsaSetRNG() for RSA Private Decrypt which doesn't have an RNG
|
2016-07-18 11:57:47 -07:00 |
|
Moisés Guimarães
|
dd329ac97b
|
fixes ocsp signer lookup in the cert manager.
|
2016-07-15 17:12:04 -03:00 |
|
dgarske
|
c20551cc56
|
Merge pull request #478 from toddouska/flatten-fix
fix rsa flatten eSz check
|
2016-07-13 08:50:39 -07:00 |
|
toddouska
|
7a906e47ed
|
fix rsa flatten eSz check
|
2016-07-12 16:28:59 -06:00 |
|
Jacob Barthelmeh
|
92341292c7
|
remove hard tabs and replace with spaces
|
2016-07-12 14:12:44 -06:00 |
|
David Garske
|
acc5389f9a
|
Fixed possible issue with OID pointer returned from "wc_ecc_get_oid" if "HAVE_OID_ENCODING" enabled. Was previously returning static pointer, which was shared for all OID's. Now uses cache for each OID, which also improves performance on subsequent calls to the same OID.
|
2016-07-08 14:22:21 -07:00 |
|
David Garske
|
19db78fc76
|
Moved the ECC OID's into separate static const array to reduce ecc_sets size. Added "ecc_oid_t" typedef to determine "oid" size based on HAVE_OID_ENCODING option. Reduced the encoded variable size to word16.
|
2016-07-08 14:15:54 -07:00 |
|
toddouska
|
8da8c87fa4
|
don't include comba includes if FP_SIZE is too small for index
|
2016-07-08 12:29:38 -07:00 |
|
toddouska
|
c7318c8576
|
fix fpecc thread local storage size with clang
|
2016-07-08 12:01:52 -07:00 |
|
toddouska
|
68d66d12d6
|
fix ecc timming missing variable
|
2016-07-08 11:57:24 -07:00 |
|
David Garske
|
7a1acc7e56
|
Added TLS support for all SECP and Brainpool curves. Added ECC curve specs for all Brainpool, Koblitz and R2/R3. Adds new "HAVE_ECC_BRAINPOOL", "HAVE_ECC_KOBLITZ", "HAVE_ECC_SECPR2" and "HAVE_ECC_SECPR3" options. ECC refactor to use curve_id in _ex functions. NID and ECC Id's match now. Added ability to encode OID (HAVE_OID_ENCODING), but leave off by default and will use pre-encoded value for best performance.
|
2016-07-07 10:59:45 -07:00 |
|
David Garske
|
dcdc28e014
|
Remove double call to "wolfCrypt_Init()" in test.c. Appears to have been added in static memory merge on 6/10.
|
2016-06-30 16:51:13 -07:00 |
|
David Garske
|
5b3a72d482
|
Cleanup of stdlib function calls in the wolfSSL library to use our cross-platform "X*" style macros in types.h.
|
2016-06-29 11:11:25 -07:00 |
|
Jacob Barthelmeh
|
f18ff8bfa4
|
update mysql patch
|
2016-06-27 15:44:52 -06:00 |
|
John Safranek
|
ffb537c33f
|
removed dependency on AES-NI for the AES-direct test
|
2016-06-23 15:34:09 -06:00 |
|
John Safranek
|
0d031fcbd7
|
added parameter checking to Generate and Verify
|
2016-06-23 15:34:09 -06:00 |
|
David Garske
|
47c1f4e68f
|
Fix possible use of ForceZero with NULL pointer. Improve init of "kb" when small stack disabled, so memset isn't performed twice.
|
2016-06-22 07:22:30 -07:00 |
|
David Garske
|
69db94d668
|
Fix build error for un-initialized "kb" variable when built with fixed point cache and small stack enabled.
|
2016-06-22 07:06:07 -07:00 |
|
David Garske
|
d294dc363e
|
Fix scan-build warning with "redundant redeclaration of 'fp_isprime'". Changed "fp_isprime" and "fp_isprime_ex" to local static only. Also made "fp_gcd", "fp_lcm", and "fp_randprime" static functions.
|
2016-06-21 19:35:25 -07:00 |
|
David Garske
|
1db880b6bf
|
Fixed issue with compressed keys and custom curves. The inLen adjustment for compressed curves was only be done for built-in curves.
|
2016-06-21 15:55:17 -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 |
|
toddouska
|
de4448c59b
|
Merge pull request #452 from dgarske/fixeccscanbuildwarning
Fixes scan-build warning in ecc.c line 2208
|
2016-06-20 09:09:21 -07:00 |
|
David Garske
|
3789d9913c
|
Fixes scan-build warning "wolfcrypt/src/ecc.c:2208:6: warning: Use of memory after it is freed". This is due to a rebase issue with static memory changes after the new ECC custom curves changes. The precomp[] is init to NULL at top so cleanup can always be done at end (shouldn't be done in middle).
|
2016-06-18 22:35:52 -07:00 |
|
David Garske
|
eb1d8d5df6
|
Fix for NID names on NIST prime 192 and 256 curves. Cleanup of the memcpy/memset in .i files to use portable names.
|
2016-06-17 15:59:25 -07:00 |
|
David Garske
|
6da166d83b
|
Enhancement / cleanup of the "wc_ecc_make_key_ex" API so it can be used with "keysize" or "dp" and allows compatibility with existing "wc_ecc_make_key". Note: "wc_ecc_make_key_ex" was not previously public, so changing it at this point is okay.
|
2016-06-16 10:38:15 -07:00 |
|
David Garske
|
d55663eaee
|
Added ECC API's for using custom curves that are not in the "ecc_sets" list. Added wolfCrypt test to validate/demonstrate custom curve using BRAINPOOL256R1. Exposed "wc_ecc_make_key_ex" and added "wc_ecc_import_x963_ex" / "wc_ecc_import_raw_ex" API's that accept "const ecc_set_type*" for custom curve. Internally use "ECC_CUSTOM_IDX" (-1) to define custom curve is used. Added "--enable-ecccustcurves" option to configure.ac.
|
2016-06-16 10:09:41 -07:00 |
|
David Garske
|
69b6ac504f
|
Fixes for ecc heap errors after rebase.
|
2016-06-16 06:46:22 -07:00 |
|
David Garske
|
237193fdee
|
Fixed scan-build warning about "len" being used un-initialized in ecc_mul2add. Cleanup of the "mu" variable handling.
|
2016-06-15 08:41:51 -07:00 |
|
David Garske
|
7c5483ba0b
|
Performance improvements in fp_mulmod, fp_submod and fp_submod to handle ALT_ECC_SIZE better. Revert fp_clear to fp_add_d, since it isn't required and slows it down.
|
2016-06-15 08:41:51 -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
|
bb17bac018
|
Updated the naming for the ECC curve sets. Additional comments for each curve parameter.
|
2016-06-14 16:56:22 -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 |
|
Jacob Barthelmeh
|
03de8e3464
|
prepare for version 3.9.6
|
2016-06-14 14:35:12 -06:00 |
|
toddouska
|
a156cedabc
|
Merge pull request #435 from JacobBarthelmeh/staticmemory
Staticmemory
|
2016-06-10 17:03:49 -07:00 |
|
Jacob Barthelmeh
|
707714dd38
|
threaded fixes with static memory
|
2016-06-10 15:35:02 -06:00 |
|
Jacob Barthelmeh
|
3d3591a227
|
typdef gaurd / error out on bad mutex init / handle no maxHa or maxIO set
|
2016-06-10 14:13:27 -06:00 |
|
Jacob Barthelmeh
|
2bda6c6449
|
16 byte aligned static memory
|
2016-06-10 11:15:54 -06:00 |
|
David Garske
|
b3068ffef5
|
Added new public "wc_GetTime" API for getting seconds from the asn.c XTIME. Added new "./configure --enable-base64encode" to enable Base64 encoding (now enabled by default for "x86_64").
|
2016-06-09 16:26:39 -07:00 |
|
Jacob Barthelmeh
|
8be5409bc5
|
static method func / ocsp callbacks / heap test / alpn free func / remove timing resistant constraint
|
2016-06-09 11:36:31 -06:00 |
|
Jacob Barthelmeh
|
e214086dce
|
tlsx with static memory / account for session certs size
|
2016-06-08 09:18:43 -06:00 |
|
toddouska
|
c48db891d1
|
Merge pull request #433 from ejohnstown/aes-cmac
Aes cmac
|
2016-06-07 16:48:46 -07:00 |
|
Jacob Barthelmeh
|
738373038b
|
clean up staticmemory with crl
|
2016-06-06 17:50:54 -06:00 |
|
Jacob Barthelmeh
|
e1edadafe1
|
ocsp with static memory, remove unused function
|
2016-06-06 16:19:33 -06:00 |
|
Jacob Barthelmeh
|
db90594909
|
adjust pointer cast, ssl rng with fips and unused param
|
2016-06-06 14:32:49 -06:00 |
|
Jacob Barthelmeh
|
e085be9485
|
fix index to check for sperator value
|
2016-06-06 10:34:35 -06:00 |
|
Jacob Barthelmeh
|
2feee8856e
|
revise static memory and update heap hint
|
2016-06-04 19:03:48 -06:00 |
|
Jacob Barthelmeh
|
104ff12e76
|
add staticmemory feature
|
2016-06-04 19:01:23 -06:00 |
|
John Safranek
|
61801e06df
|
add benchmark for AES-CMAC
|
2016-05-25 16:12:19 -07:00 |
|