Commit Graph

  • cab1ebf2d6 move MDK5 current_time to test.h Takashi Kojo 2016-04-14 18:47:16 +09:00
  • 98dffc070a current_time in test.h Takashi Kojo 2016-04-14 18:32:33 +09:00
  • 35c5353698 fixed current_time argument Takashi Kojo 2016-04-14 16:26:51 +09:00
  • 6f51c2a8f8 1. Fix bad opcode mnemonics in the intel-format source listing. 2. Update the aes.c file to call both format assembly routines the same way. John Safranek 2016-04-13 16:42:58 -07:00
  • c34944e389 added intel-format translations of new att-format AES-NI decrypt routines John Safranek 2016-04-13 16:02:18 -07:00
  • 9781fa3dc9 relabel jump points in new code with D (decrypt) mnemonics rather than E (encrypt) John Safranek 2016-04-13 15:51:19 -07:00
  • d0717c7b76 Merge pull request #385 from cconlon/freertos-fix toddouska 2016-04-13 13:28:04 -07:00
  • 57fce85531 modify AES-CBC with AESNI test to check all key sizes for each message size checked John Safranek 2016-04-13 12:18:59 -07:00
  • 13f002f186 only compile in the AES-CBC decrypt-by-size variant selected by define, default by 8 blocks at a time John Safranek 2016-04-13 12:00:53 -07:00
  • 451fd878f9 touching whitespace in assembly routines being touched right now John Safranek 2016-04-13 11:48:25 -07:00
  • d5df119c65 fix typo in FREERTOS_TCP settings.h Chris Conlon 2016-04-12 15:03:34 -06:00
  • c7ad33e5d4 enable aesgcm and alpn support in TI-RTOS/WolfSSL configuration Vikram Adiga 2016-04-12 12:00:31 -07:00
  • 8524afc56a 1. Rename routine AES_CBC_decrypt_ex as AES_CBC_decrypt_by8 2. Added routine AES_CBC_decrypt_by6 that does six at a time. 3. Setting HAVE_AES_DECRYPT_BY6 or _BY8 (or not setting it) selects the 6, 8, or 4 way version of the assembly routine. 4. Modified AES-NI decrypt test to loop checking against the test bolus from 1 AES block to the whole 24 blocks. John Safranek 2016-04-12 10:10:55 -07:00
  • cfd5af341b fixed test.c compile error and server.c/client.c/ssl.c warnings with MDK5 compiler. Takashi Kojo 2016-04-12 11:05:30 +09:00
  • 4d38813b0c Merge pull request #381 from kaleb-himes/scan-build-psk JacobBarthelmeh 2016-04-11 14:52:38 -06:00
  • 1b7cd5cb06 consolidate handling of dead assignment warnings kaleb-himes 2016-04-11 13:39:44 -06:00
  • 23ab4247ea build with asn disabled and opensslextra enabled Jacob Barthelmeh 2016-04-11 11:56:30 -06:00
  • c6e9021732 scan-build warnings related to enable-psk, disable-asn,rsa,ecc kaleb-himes 2016-04-11 11:13:26 -06:00
  • 85505b99b9 Merge pull request #380 from cconlon/utasker toddouska 2016-04-08 15:08:39 -07:00
  • 7a0f8672e7 Merge pull request #375 from dgarske/stm32hashfixes Chris Conlon 2016-04-08 15:04:46 -06:00
  • 698b1cc7dc update benchmark to show AES-CBC decrypt speed John Safranek 2016-04-08 13:33:41 -07:00
  • b75dc127f3 1. Attempting to perform 8 AES-CBC decrypt operations simultaneously. 2. Added code to test large AES-CBC decrypts. John Safranek 2016-04-08 11:53:40 -07:00
  • c6e4fb8cf8 Merge pull request #378 from JacobBarthelmeh/Testing toddouska 2016-04-08 11:01:46 -07:00
  • 993972162e MinGW fixes, server port assigning cleanup and ping test cleanup. Fixes issue with visibility detection with MinGW. The visibility.m4 script was not actually trying to call the hidden function, which caused MinGW to detect improperly that visibility was supported. Fix for bogusFile on Windows build. Fixes to build warnings for unused variable 'res' and signed/unsigned comparison for sizeof min(). Cleanup of the server side port assignment to allow use with Windows/MinGW/Cygwin. If Windows uses new GetRandomPort() function in test.h to get port in in the 49152 - 65535 range. If *nix then uses the tcp_listen returned port. Otherwise uses the default wolfSSLPort. Refactor of the ping test code to use common file and properly handle ping count differences (Windows "-c" vs. *Nix style "-n"). Workaround for MinGW and cyassl/options.h getting file permissions error. Added non-fatal compile warning if using MinGW that "strtok_s" might be missing along with a link to public domain source that can be used. David Garske 2016-04-01 15:45:53 -07:00
  • 2aab090c8b Fixes when using the STM32 with STM32F2_HASH defined. David Garske 2016-04-01 10:42:13 -07:00
  • 46f4be357b uTasker: add note about XTIME to settings.h Chris Conlon 2016-03-25 11:33:27 -06:00
  • 8d040ad41f uTasker: add initial port, WOLFSSL_UTASKER Chris Conlon 2016-03-24 11:07:05 -06:00
  • 255d9ecfb3 Merge pull request #377 from JacobBarthelmeh/master toddouska 2016-04-07 12:20:05 -07:00
  • 5b4f17545b autoconf checks on some builds that break, macro for no server, and user rsa Jacob Barthelmeh 2016-04-06 09:25:53 -06:00
  • 665fb3076c add trailing zero enum and correct call for export key size Jacob Barthelmeh 2016-04-04 17:47:11 -06:00
  • 4f8fffbc37 add wc_EccPublicKeyToDer function Jacob Barthelmeh 2016-04-01 10:43:45 -06:00
  • a0cd888fbf Merge pull request #379 from JacobBarthelmeh/PSK Kaleb Himes 2016-04-06 14:02:55 -07:00
  • 85a9c55048 fix c89 build on windows Jacob Barthelmeh 2016-04-06 11:16:40 -06:00
  • 9f86a91dbd Merge pull request #374 from dgarske/asyncfixes toddouska 2016-04-01 16:04:08 -07:00
  • 29194bd977 Merge pull request #371 from cconlon/sniffer-fix toddouska 2016-04-01 13:39:29 -07:00
  • 2d4aa1bbb5 Better fix for scan-build warning regarding possible use of NULL in AddRecordHeader. Scan-build considers paths where output is set to NULL, but ssl->spec.kea is corrupted/changed, which could result in output == NULL (even though it should never happen). So added proper NULL check in SendServerKeyExchange on AddHeader to make sure output isn't NULL. David Garske 2016-04-01 12:57:33 -07:00
  • 19f0769ec4 Fix for scan-build warning where async changes make it appear like the output buffer could be NULL (even though its not). Added NULL check on the AddRecordHeader function. David Garske 2016-04-01 10:55:01 -07:00
  • dd28d53cfb Fix build issues with new async changes. Fixed issue with unused args preSigSz and preSigIdx with PSK enabled and ECC + RSA disabled. Fixed issue with missing qsSz variable in DoClientKeyExchange. Fixed missing DhAgree and DhKeyGen with NO_CERTS and PSK enabled. Fixed a couple scan-build warnings with "Value stored to '' is never read". David Garske 2016-04-01 09:23:46 -07:00
  • 2939c3ace1 add ssl_FreeZeroDecode() to sniffer.c Chris Conlon 2016-03-31 13:25:39 -06:00
  • 63b1282e67 Merge pull request #335 from dgarske/asynccrypt toddouska 2016-03-30 20:12:41 -07:00
  • 4472152b18 Added new "wolfSSL_poll" which filters event queue by ssl object pointer. Changed wolfSSL_CTX_poll to support using WOLF_POLL_FLAG_PEEK flag to peek at events and return count. Removed "wolfssl_CTX_poll_peek". Switched the examples (test.h AsyncCryptPoll) to use just the WOLFSSL object and call new wolfSSL_poll. Added warning when using the "--enable-asynccrypt" option to make sure users know they need real async.c/.h files. David Garske 2016-03-30 15:15:38 -07:00
  • 6e5b23e102 Merge pull request #370 from dgarske/stm_aes_gcm_ccm toddouska 2016-03-30 13:39:35 -07:00
  • ec9f10d74f extra cleanup in sniffer.c with ForceZero Chris Conlon 2016-03-30 10:52:27 -06:00
  • d30f410768 Merge pull request #368 from JacobBarthelmeh/master toddouska 2016-03-29 17:26:55 -07:00
  • 49e117ebb5 Merge pull request #369 from JacobBarthelmeh/Testing toddouska 2016-03-29 14:41:20 -07:00
  • e60adfc9da better naming of macro and alter misc.c check Jacob Barthelmeh 2016-03-29 13:42:40 -06:00
  • 2437e97d70 if using inline do not compile misc.c in iOS XCode builds Jacob Barthelmeh 2016-03-28 17:33:38 -06:00
  • 2733f0a7ca Merge pull request #309 from coletiv/add-tvos-target JacobBarthelmeh 2016-03-28 17:29:32 -06:00
  • 7e90e2e540 misc.c compile warning accounts for FIPS Jacob Barthelmeh 2016-03-28 17:22:39 -06:00
  • 2665db73a4 check for compiling misc.c when not needed Jacob Barthelmeh 2016-03-28 16:03:15 -06:00
  • 79a212da8d fix disable inline build Jacob Barthelmeh 2016-03-28 14:24:12 -06:00
  • 59a84b40c7 Merge pull request #364 from toddouska/ecc-test-free John Safranek 2016-03-28 13:15:20 -07:00
  • 137f477277 Merge pull request #363 from JacobBarthelmeh/master toddouska 2016-03-28 11:47:22 -07:00
  • 03765ecca7 Fixes to cleanup unnecessary ECC make key, check key and free in ECC vector item test. David Garske 2016-03-25 13:22:31 -07:00
  • 67b4d2e2f4 case where memory is exhausted before ctx copied to ssl Jacob Barthelmeh 2016-03-25 14:19:51 -06:00
  • 696169634e check return value of wolfSSL_set_fd Jacob Barthelmeh 2016-03-25 13:59:04 -06:00
  • 190d30f336 Merge pull request #362 from dgarske/bench_rng John Safranek 2016-03-25 12:12:20 -07:00
  • 1649af37be fix ecc curve test in normal math mode, free is needed toddouska 2016-03-25 11:33:35 -07:00
  • 57ea1cdcd7 sanity check on ssl pased to wolfSSL_set_fd Jacob Barthelmeh 2016-03-25 11:32:53 -06:00
  • 5569dfe838 Fix with FIPS build and RNG_MAX_BLOCK_LEN define location. David Garske 2016-03-25 08:56:11 -07:00
  • f539a60a40 Adjusted the RNG benchmark to split into smaller requests of max allowed RNG size. David Garske 2016-03-25 06:59:35 -07:00
  • 27e041246f Added benchmark for the RNG. David Garske 2016-03-24 08:42:19 -07:00
  • 855e42b66a Merge pull request #359 from cconlon/ecc-comment toddouska 2016-03-24 08:21:42 -07:00
  • 3796fc1322 Enhancement to the STM32F2_CRYPTO port to support AES GCM, AES CCM and AES-Direct (for encrypt only) using combination of software and AES HW acceleration. David Garske 2016-03-24 07:08:42 -07:00
  • 3509ff0c73 Merge pull request #358 from JacobBarthelmeh/master toddouska 2016-03-23 15:35:16 -07:00
  • 20285bec01 fix wc_ecc_import_raw comment, public key instead of base point Chris Conlon 2016-03-23 15:33:53 -06:00
  • 8f8f7ac152 remove unecessary XFREE Jacob Barthelmeh 2016-03-23 13:40:45 -06:00
  • 2dfc7faa73 Merge pull request #355 from dgarske/EccTestCleanup toddouska 2016-03-23 12:18:42 -07:00
  • 18961e5620 Merge pull request #351 from dgarske/ChaChaRefactor toddouska 2016-03-23 12:17:23 -07:00
  • 620e4fa5ca fix free of WOLFSSL_METHOD pointer on create ctx fail Jacob Barthelmeh 2016-03-23 09:27:27 -06:00
  • d8fb4b6ee7 Merge pull request #352 from dgarske/DRBGSmallStack John Safranek 2016-03-21 12:20:48 -07:00
  • 0fc5575b8b Fixed typo with WOLFSSL_VALIDATE_ECC_IMPORT defined. Disable ECC-224 bit compressed key test since it isn't working. Cleanup in accel_fp_mul for KB_SIZE. David Garske 2016-03-18 15:41:03 -07:00
  • 71683e23e9 Resolve 2nd unused "typeH" warning. David Garske 2016-03-18 06:27:42 -07:00
  • 51a911c727 Merge pull request #354 from JacobBarthelmeh/master v3.9.0 toddouska 2016-03-17 16:10:18 -07:00
  • 0e43fca1f3 Resolve unused "typeH" warning. David Garske 2016-03-17 15:56:51 -07:00
  • 369930238a Cleanup of the ecc_test functions to break areas into separate functions providing WC_RNG and key size. Added ECC tests by key size for all enabled curves. Added actual key size on wc_ecc_make_key for the NIST test vectors. Added ECC testing of wc_ecc_verify_hash with digests having 0's and sequence (1,2,3,...) and made sure it runs verify twice. David Garske 2016-03-17 15:31:45 -07:00
  • e99a5b0483 prepare for release v3.9.0 Jacob Barthelmeh 2016-03-17 16:02:13 -06:00
  • e1787fe160 Added "--enable-asynccrypt" option for enabling asynchronous crypto. This includes a refactor of SendServerKeyExchange and DoClientKeyExchange to support WC_PENDING_E on key generation, signing and verification. Currently uses async simulator (WOLFSSL_ASYNC_CRYPT_TEST) if cavium not enabled. All of the examples have been updated to support WC_PENDING_E on accept and connect. A generic WOLF_EVENT infrastructure has been added to support other types of future events and is enabled using "HAVE_WOLF_EVENT". Refactor the ASN OID type (ex: hashType/sigType) to use a more unique name. The real "async.c" and "async.h" files are in a private repo. David Garske 2016-03-04 10:05:22 -08:00
  • 10e74f7200 Merge pull request #353 from dgarske/EccUnsignedSizeCheckFix toddouska 2016-03-17 10:50:01 -07:00
  • 19967dd264 Fixed bug where mp_unsigned_bin_size returning 0 could produce a UINT_MAX (based on -1) resulting in invalid index to an array. Added test case for this if FP_ECC is defined. David Garske 2016-03-17 09:39:10 -07:00
  • bda69decc1 Fix to reduce stack usage in the hash-based random number generator health tests when WOLFSSL_SMALL_STACK is defined. David Garske 2016-03-16 17:04:07 -07:00
  • 46a01c29d8 Merge pull request #350 from JacobBarthelmeh/master toddouska 2016-03-16 16:25:13 -07:00
  • 2dd5efd969 sanity check for RSA key size and hash digest size Jacob Barthelmeh 2016-03-16 15:25:52 -06:00
  • 4c3ddac23c catch invalid test case of RSA-OAEP and fix cast Jacob Barthelmeh 2016-03-16 14:51:25 -06:00
  • 473ea567bd Refactor of the ChaCha hard coded variables. David Garske 2016-03-16 13:36:44 -07:00
  • 7722c4484a Merge pull request #349 from dgarske/CobiPort toddouska 2016-03-16 13:36:27 -07:00
  • 0683ecb727 Fixed FreeCRL issue with strdup memory. Added additional checks for WOLF_AES_CBC and WOLF_AES_COUNTER. Disabled memory tracker by default for wolfCrypt test and benchmark. Updated README to better document Linux Binutils LD bug workaround. David Garske 2016-03-16 09:41:19 -07:00
  • f0ea9d747f Fix possible positive return value for random_rng_test. Removed reference to nrf51_aes_decrypt, which is not supported, and added compile error for it. Corrected ecc_test_raw_vector return code checking. Cleanup in InitMemoryTracker. David Garske 2016-03-15 18:33:24 -07:00
  • bf058ef1b9 Fixed Jenkins error reports for mem_track msg, incorrect #ifdef in aes_test and ecc_test_raw_vector response code checking. Fixed C89 compliance with wc_AesSetKey. Fixed nrf_drv_rng_init response checks in RNG code. Reverted comment change in AES. Fixed nRF51 AES CBC Encrypt support. Added response code checking for nrf51_aes_set_key. David Garske 2016-03-15 17:18:03 -07:00
  • a38183b816 Port for Nordic nRF51 RNG, RTC and AES. Added RNG test for wc_RNG_GenerateBlock 0's check even if HAVE_HASHDRBG is enabled. Added NIST test vectors for ECC P-256, P-384 and P-521. Added helpful debug message in ECC import if issue finding ecc_sets[] for curve. Moved memory tracker into separate file and added support for it to wolfcrypt test and benchmark. Added Ed255519/Curve25519 options for granular control of sign, verify, shared secret, import and export. Added AES options for max key size (AES_MAX_KEY_SIZE), no decrypt (NO_AES_DECRYPT) and no CBC (NO_AES_CBC). David Garske 2016-03-15 13:58:51 -07:00
  • 47491e6c22 Merge pull request #332 from JacobBarthelmeh/Certs toddouska 2016-03-14 13:24:03 -07:00
  • db758dc98b update test script, fall back to cert name search, fix der free Jacob Barthelmeh 2016-03-12 09:37:32 -07:00
  • 060e278559 Merge branch 'master' of https://github.com/wolfSSL/wolfssl into Certs Jacob Barthelmeh 2016-03-11 23:48:39 -07:00
  • 154f027c54 Merge pull request #347 from dgarske/ScanBuildFix214 JacobBarthelmeh 2016-03-11 16:53:41 -07:00
  • 81b0ccdb1a Address scan-build issue on build #214 after DerBuffer refactor part 2 (ceafb25). David Garske 2016-03-11 09:39:13 -08:00
  • 98f40fa132 Merge pull request #345 from moisesguimaraes/remove_unnecessary_condition dgarske 2016-03-11 09:27:22 -08:00
  • 2e1c1ca7f8 remove unnecessary condition Moisés Guimarães 2016-03-10 23:07:36 -03:00
  • 0171aefc65 Merge pull request #344 from JacobBarthelmeh/master dgarske 2016-03-10 16:05:19 -08:00
  • 1bd7de46bb Merge pull request #342 from dgarske/JenkinsFixes20160310 toddouska 2016-03-10 14:19:47 -08:00
  • 3976a3e2f2 K64F RNGA register Jacob Barthelmeh 2016-03-10 14:35:55 -07:00