Chris Conlon
9bc3b867e0
Merge pull request #6157 from miyazakh/add_favouriteDrinkNID
2023-03-06 16:45:14 -07:00
Sean Parkinson
fa8b253657
Merge pull request #6167 from douzzer/20230306-fix-header-loop-test
...
20230306-fix-header-loop-test
2023-03-07 08:47:41 +10:00
Daniel Pouzzner
3c107da2a9
wolfssl/openssl/bn.h: fix bugprone-macro-parentheses.
2023-03-06 15:23:14 -06:00
Daniel Pouzzner
0a90b2d354
configure.ac: further fix for header loop check -- construct header list while in $srcdir, so that -I${srcdir} works as expected. see earlier commits 7baddb04f8 a7d9ea7550 b3a1ac80dc .
2023-03-06 15:21:23 -06:00
David Garske
86e1b0d8ab
Merge pull request #6165 from SparkiDev/bn_move
...
BN compatibility API: move implementation out to separate API
2023-03-06 09:27:24 -08:00
David Garske
9f66a58afd
Merge pull request #6159 from philljj/zd15693
...
Fix ASN1_STRING leak in create_by_NID and create_by_txt
2023-03-06 09:25:37 -08:00
Sean Parkinson
e4c2386b61
BN compatibility API: move implementation out to separate API
...
BN APIs from ssl.c have been moved out to ssl_bn.c that is included in
ssl.c.
Added defines for BN_rand() and BN_pseudo_rand() to indicate which bits
are to be set.
'internal' field now always maps to the ;mpi' field that is a MP
integer.
SetIndividualInternal/External renamed to wolfssl_bn_get/set_value.
Fixed BN APIs to work as closely to OpenSSL as possible.
Added tests.
Moved wolfssl_make_rng out to ssl.c as BN APIs are using it now.
SP int and TFM now check trials are in a valid range for
mp_prime_is_prime_ex().
2023-03-06 14:32:10 +10:00
David Garske
487d46fd28
Merge pull request #6161 from douzzer/20230303-fix-c89-etc
...
20230303-fix-c89-etc
2023-03-05 14:24:33 -08:00
Daniel Pouzzner
b3a1ac80dc
configure.ac: don't check for opensslextra circular header dependencies if ENABLED_LINUXKM (handcrafted linuxkm/Makefile and linuxkm/Kbuild set up paths to correctly find dependencies like linux/mutex.h).
2023-03-04 12:12:08 -06:00
Hideki Miyazaki
05b0796361
add favourite drink pilot attibute type to get it from the encoding
2023-03-04 14:20:48 +09:00
Daniel Pouzzner
ab71f6fd4c
extend C89 build to whole codebase including examples:
...
configure.ac: remove implied --disable-examples when --disable-inline;
tests/api.c: always include wolfcrypt/src/misc.c;
wolfcrypt/src/misc.c: use WC_MISC_STATIC to designate staticness of the misc functions;
wolfssl/wolfcrypt/misc.h: define WC_MISC_STATIC to empty or static depending on #ifdef NO_INLINE or not (respectively);
wolfssl/wolfcrypt/types.h: #ifdef NO_INLINE, #define WC_INLINE WC_MAYBE_UNUSED, and move the definitions of WARN_UNUSED_RESULT and WC_MAYBE_UNUSED above the definition of WC_INLINE for clarity;
wolfssl/wolfcrypt/mem_track.h: always declare TrackMalloc() et al static (no functional change, because the state and callback bindings were and remain unconditionally static, but previously #ifdef NO_INLINE the functions were globals, leading to multiple definitions.
2023-03-03 22:30:08 -06:00
Daniel Pouzzner
e76d12f932
src/ssl.c: fix a couple suppressions to use C comment syntax, for C89 goodness.
2023-03-03 22:01:52 -06:00
Daniel Pouzzner
aecb37c032
linuxkm/module_hooks.c: wc_SetSeed_Cb(wc_GenerateSeed) in wolfssl_init() #ifdef WC_RNG_SEED, regardless of whether wolfcrypt_test() will be called.
2023-03-03 22:00:24 -06:00
Daniel Pouzzner
a7d9ea7550
configure.ac: fix openssl header circular dependency detector to work on out-of-tree builds.
2023-03-03 21:56:42 -06:00
David Garske
35b68fb23d
Merge pull request #5597 from Tathorack/add-renesas-rx64-rx72-sha-support
...
Add RX64/RX71 SHA hardware support
2023-03-03 13:14:32 -08:00
Rhys Hansen
4d81a06557
Update comment format and other minor changes
2023-03-03 13:57:44 -06:00
David Garske
d955ec8d54
Merge pull request #6156 from jpbland1/revert-zephyr-relocation
...
move the zephyr folder back to it's correct location
2023-03-03 11:19:35 -08:00
David Garske
9a597a098b
Merge pull request #6158 from miyazakh/initial_dec
...
fix init var in for-loop
2023-03-03 08:40:55 -08:00
jordan
51dbb44799
Fix ASN1_STRING leak in create_by_NID and create_by_txt
2023-03-03 08:22:35 -06:00
Hideki Miyazaki
0693b66c44
fix init var in for-loop
2023-03-03 17:51:34 +09:00
John Bland
b146830fe8
move the zephyr folder back to it's correct location
2023-03-02 23:40:12 -05:00
David Garske
4ebc896231
Merge pull request #6095 from SparkiDev/aes_gcm_win_asm
...
Aes gcm win asm
2023-03-02 15:02:55 -08:00
Sean Parkinson
a8723f71cb
Merge pull request #6154 from kaleb-himes/wolfmikey-w-fips-140-3
...
Allow building of sakke as external non-FIPS algorithm with wolfmikey product
2023-03-03 08:18:40 +10:00
David Garske
03948fd3ae
Merge pull request #6140 from JacobBarthelmeh/seco
...
Fix AES-ECB with SECO
2023-03-02 13:43:15 -08:00
David Garske
41a9b1148f
Merge pull request #6152 from philljj/spelling_cleanup
...
Used codespell and fixed obvious typos in src and wolfssl.
2023-03-02 11:39:45 -08:00
David Garske
871754b97c
Merge pull request #6153 from bandi13/fixZD15705
...
Fix memory leak
2023-03-02 11:39:03 -08:00
kaleb-himes
7ca4b1bc66
Allow building of sakke as external non-FIPS algorithm with wolfmikey product
2023-03-02 11:30:56 -07:00
Juliusz Sosinowicz
7baddb04f8
Check for circular dependencies in compatibility headers ( #6091 )
...
* Check for circular dependencies in compatibility headers
* Run header check only when ENABLED_OPENSSLEXTRA
* Add missing include
* Pedantic compilers don't like empty translation units
* Fix macro guards
2023-03-02 08:51:13 -08:00
Andras Fekete
406d8753be
Fix memory leak
2023-03-02 11:15:32 -05:00
jordan
409ed6232a
Used codespell and fixed obvious typos in src and wolfssl.
2023-03-02 09:52:07 -06:00
JacobBarthelmeh
9a54cea78b
Fix AES-ECB with SECO
2023-03-02 07:55:05 -07:00
JacobBarthelmeh
3f7109c18b
Merge pull request #6147 from dgarske/cpp17
...
Fixes for building with C++17
2023-03-02 07:46:35 -07:00
Sean Parkinson
126805183c
Merge pull request #6150 from douzzer/20230301-fix-async-and-mips-and-kcapi
...
20230301-fix-async-and-mips-and-kcapi
2023-03-02 13:10:26 +10:00
Daniel Pouzzner
98c1b152a0
wolfssl/openssl/sha.h: fix undersized WOLFSSL_SHA384_CTX to have same size as WOLFSSL_SHA512_CTX (fixes failed assert in fips-140-3-dev-kcapi-opensslextra-build).
2023-03-01 17:55:02 -06:00
Daniel Pouzzner
24a1c171ea
wolfssl/wolfcrypt/settings.h: define WOLFSSL_SP_INT_DIGIT_ALIGN when target is MIPS, to fix a crash in sp_read_unsigned_bin().
2023-03-01 17:52:46 -06:00
Daniel Pouzzner
51339edf47
wolfcrypt/src/asn.c: fix WOLFSSL_ASYNC_CRYPT codepath in SignCert() -- fall through to non-async certSignCtx_lcl for algs without async support.
2023-03-01 17:51:25 -06:00
Daniel Pouzzner
6a7674a146
wolfcrypt/test/test.c: improve strerror_r() flavor sensing (simpler gate randomly provoked cppcheck-all-async-quic).
2023-03-01 17:50:00 -06:00
David Garske
63b049814b
Merge pull request #6136 from SparkiDev/armv7_aes_no_reloc_text
...
ARMv7a AES asm: don't have relocatable text
2023-03-01 14:36:41 -08:00
David Garske
5de15fedee
Merge pull request #6132 from bandi13/moreContainerSupport
...
More container support
2023-03-01 13:57:04 -08:00
David Garske
17ad27c350
Fixes for building with C++17. Adds new USE_CPLUSPLUS_BYTE
build option to use std::byte
as byte
to avoid redefinition issues when customer application sets default namespace to "std" or wants to use "byte".
...
Tested using `./configure CC="g++ -std=c++17" --enable-all && make check`.
2023-03-01 12:49:47 -08:00
David Garske
7d049aa90a
Merge pull request #6141 from SparkiDev/cert_name_enc_fix
...
Cert name encoding fix
2023-02-28 17:36:22 -08:00
Sean Parkinson
3aa1ef5907
ARMv7a AES asm: don't have relocatable text
...
For FIPS hash, don't have relocatable text in ARMv7's AES assembly code.
2023-03-01 11:32:00 +10:00
David Garske
91d77393b9
Merge pull request #6110 from SparkiDev/sp_small_stack
...
SP: WOLFSSL_SP_SMALL_STACK
2023-02-28 17:17:58 -08:00
David Garske
aa8d3df8dd
Merge pull request #6137 from SparkiDev/rsa_enc_no_pad
...
RSA padding - no pad length check fix
2023-02-28 17:17:05 -08:00
Sean Parkinson
d1b8386d36
Cert name encoding fix
...
Only include extra name entries once when encoding.
Fix certDefaultName to not have \0 on strings of extra names.
2023-03-01 10:01:54 +10:00
Sean Parkinson
2a33f24dc9
RSA padding - no pad length check fix
...
Perform correct length check of input bytes based on bits in key in
wc_RsaPad_ex when no padding to be done.
2023-03-01 09:42:39 +10:00
Sean Parkinson
cc8493668b
SP: WOLFSSL_SP_SMALL_STACK
...
Defined when WOLFSSL_SMALL_STACK and !WOLFSSL_SP_NO_MALLOC or on
configuration line as an option to --enable-sp: smallstack.
2023-03-01 09:35:05 +10:00
Daniel Pouzzner
47aad3fedb
Merge pull request #6138 from dgarske/pkcs7_async
...
Fix for PKCS7 with asynchronous crypto enabled
2023-02-28 17:24:56 -06:00
David Garske
2420d5d3b6
Merge pull request #6144 from kareem-wolfssl/zd15741Gh6142
...
Fix for PIC32 crypto HW and unused `TLSX_SetResponse`
2023-02-28 15:10:37 -08:00
David Garske
be6fb0c26f
Merge pull request #6145 from bandi13/x509_sign_test_fix
...
Fix `test_wolfSSL_X509_sign` expected size
2023-02-28 15:10:21 -08:00