Commit Graph

13933 Commits

Author SHA1 Message Date
John Safranek
b7ec8d0faa Add sign/verify PCT to RSA key gen. 2021-04-14 08:59:28 -07:00
John Safranek
1a4e45df3c Restore the PCTs to ECC and DH. 2021-04-12 09:37:24 -07:00
John Safranek
294a8e35f1 Fix some Windows build warnings. WCv5.0-RC5 2021-04-09 11:07:23 -07:00
John Safranek
93cdc0924b Check to see if a pointer is nonnull that is expected to be. 2021-04-09 10:54:36 -07:00
John Safranek
5d31723172 Modify ffdhe to not return addresses. 2021-04-09 09:31:13 -07:00
John Safranek
995488dcc1 Update WIN10 user_settings.h for new FIPS build. 2021-04-06 12:08:11 -07:00
John Safranek
5da43f4b24 When building for FIPS, the unit test will run all the CASTs up front. 2021-04-06 12:08:08 -07:00
John Safranek
9cdee9bc78 Add kdf.c to the Windows builds. 2021-04-05 11:15:09 -07:00
John Safranek
1b267628b8 Remove the unused ECDSA PCT tests in the CAST list. 2021-04-05 10:29:53 -07:00
John Safranek
9aa140f566 Remove the unused RSA PCT test in the CAST list. 2021-04-05 10:12:12 -07:00
John Safranek
d40e9f78cd Restore the HKDF code to hmac.c. For compatibility between FIPS builds. 2021-04-02 15:03:09 -07:00
John Safranek
0a210bcc1d Merge branch 'master' into fipsv3 2021-04-01 08:16:46 -07:00
John Safranek
273bfc38ff Remove redundant pairwise test from DH and ECC. 2021-04-01 08:14:19 -07:00
Sean Parkinson
fd94d05b0a Merge pull request #3932 from guidovranken/zd12012
MP integer.c: Use unsigned integers in mp_is_bit_set
2021-04-01 15:41:01 +10:00
Guido Vranken
2ecaa3c4c6 Use unsigned integers in mp_is_bit_set
ZD 12012
2021-04-01 00:57:06 +02:00
John Safranek
4d4039c052 Remove RDSEED from the intel asm build. 2021-03-31 14:25:57 -07:00
toddouska
95b91d8913 Merge pull request #3886 from DKubasekRA/fix/RA/v4.7.0-coverity
RA - Fixes for Coverity issues
v4.7.1r
2021-03-31 10:41:54 -07:00
toddouska
49b29bec32 Merge pull request #3930 from JacobBarthelmeh/Testing
add link to wolfssl-examples repository in README
2021-03-31 10:10:44 -07:00
John Safranek
ea960a8600 Add missing verify curves into configure. Copy the kdf files when building for FIPSv5. 2021-03-31 08:42:45 -07:00
toddouska
38cec4b0d4 Merge pull request #3922 from dgarske/have_secret
Expose functions to get client/server random for have secret callback
2021-03-30 16:03:57 -07:00
toddouska
f7046ca12a Merge pull request #3906 from douzzer/AES-BAD_ALIGN_E-consistency
Adds optional AES CBC length checking
2021-03-30 16:01:29 -07:00
toddouska
4d1ad6acd6 Merge pull request #3885 from JacobBarthelmeh/StaticAnalysisTests
Static analysis fixes for items listed as high priority
2021-03-30 16:00:03 -07:00
Chris Conlon
4044b30363 Merge pull request #3915 from TakayukiMatsuo/os_ecdh
Add unit tests for OpenSSL compat APIs
2021-03-30 16:18:16 -06:00
Jacob Barthelmeh
dfb7848320 add link to wolfssl-examples repository in README 2021-03-31 01:34:14 +07:00
John Safranek
e4fdb63fed Skip the small key DH test for SP and FFDHE builds. 2021-03-29 14:40:40 -07:00
Sean Parkinson
c3fcb2e95f Merge pull request #3923 from dgarske/armv8
ARMv8: do not compile code if module is disabled
2021-03-29 08:50:41 +10:00
Chris Conlon
a9ff314840 Merge pull request #3912 from miyazakh/rsa_bits_
Added RSA_bits
2021-03-26 17:00:56 -06:00
Chris Conlon
b67f270e3d Merge pull request #3910 from miyazakh/openssl_ext_unit_test
Update compatibility layer api unit test
2021-03-26 16:58:21 -06:00
David Garske
a22defec50 Fix for availability of wolfSSL_SESSION_print. 2021-03-26 15:39:55 -07:00
John Safranek
89273bdff8 Move the PCT down to where it used to be located as CheckKeyPair. 2021-03-26 15:11:51 -07:00
John Safranek
4124640a8d Update the BUILD_FIPS_V4 flag to V5. Consolidate the Makefile include for the flavors of FIPS. 2021-03-26 14:56:55 -07:00
John Safranek
f1a97904c5 Move the KDF functions into their own source file. 2021-03-26 14:17:18 -07:00
David Garske
95ff75c43d Fix for wolfSSL_SESSION_print 2021-03-26 13:41:11 -07:00
David Garske
724a415d51 Fix ARMv8 to not compile code if module is disabled 2021-03-26 13:28:15 -07:00
David Garske
f65e1f1f09 Expose functions to get client/server random when HAVE_SECRET_CALLBACK is defined. 2021-03-26 13:23:00 -07:00
Daniel Pouzzner
5f6b618e71 configure.ac: add --enable-aescbc-length-checks and add it to --enable-all; api.c: fix expected error code in WOLFSSL_AES_CBC_LENGTH_CHECKS path of test_wc_AesCbcEncryptDecrypt(); aes.c: add explanatory comment on WOLFSSL_AES_CBC_LENGTH_CHECKS to top of file. 2021-03-26 14:04:25 -05:00
Daniel Pouzzner
5d9ee97530 WOLFSSL_AES_CBC_LENGTH_CHECKS: add gated logic to aes.c wc_AesCbc{En,De}crypt() to return BAD_LENGTH_E when input length is not a multiple of AES_BLOCK_SIZE; add gated tests of new functionality in test_wc_AesCbcEncryptDecrypt(); fix first encrypt-decrypt-memcmp in test_wc_AesCbcEncryptDecrypt() to span all of test vector and extend test vector length to be block-multiple; add ungated logic in platform-specific wc_AesCbc{En,De}crypt() routines to return with early success when blocks == 0 (also mitigates buffer overrun on short (less-than-AES_BLOCK_SIZE) input); add BAD_LENGTH_E error code; update documentation. 2021-03-26 13:40:08 -05:00
John Safranek
4781bf4e1f Add 'static' to the test vector arrays for the SSH KDF test. 2021-03-26 11:26:09 -07:00
John Safranek
804e9f1e82 Change visibility of wc_GenerateSeed() to API. 2021-03-26 11:25:14 -07:00
John Safranek
a57be5a8e5 Rename the PCT error codes to remove 'FIPS' since they can be enabled without FIPS. 2021-03-26 10:49:52 -07:00
David Garske
f201d65459 Merge pull request #3898 from elms/intime_rtos/crl_directory_fix
INTIME: add support for directory file search
2021-03-26 09:37:21 -07:00
toddouska
79fa71d600 Merge pull request #3882 from TakayukiMatsuo/tk11899
Return code differences in wolfSSL_EVP_PKEY_cmp et al.
2021-03-26 09:36:52 -07:00
toddouska
212be50a23 Merge pull request #3899 from SparkiDev/shake256_improve
SHA-3: Improve SHAKE256 change to support longer output
2021-03-26 09:35:52 -07:00
toddouska
bb7dce8b46 Merge pull request #3921 from SparkiDev/sp_modinv_win
SP MSVC: movslq -> movsxd
2021-03-26 09:34:15 -07:00
Sean Parkinson
1b832bf8fa SHA-3: Improve SHAKE256 change to support longer output
Added tests for 1 complete block output and longer from NIST's CAVP
tests vectors.
2021-03-26 14:59:12 +10:00
Sean Parkinson
a188ef251c SP MSVC: movslq -> movsl 2021-03-26 14:12:58 +10:00
Sean Parkinson
0d995527aa Merge pull request #3918 from dgarske/fix_ecc_mulmod_fast
Fix for SP ecc_mulmod_fast
2021-03-26 08:39:48 +10:00
TakayukiMatsuo
79837eeb8e Changed the function name to be called in the unit test to the OpeSSL function name. 2021-03-26 04:30:36 +09:00
Elms
4eb4cecff4 INTIME: whitespace fixup and zero context in wc_ReadDirFirst 2021-03-25 10:54:05 -07:00
John Safranek
9e3e14c875 Add guard around ECC PCT for builds without validate keygen. WCv5.0-RC4 2021-03-25 10:22:34 -07:00