Daniel Pouzzner
f2c97d5d35
fixes for various wolfcrypt -Wconversions visible only on compilers that promote byte and word16 to signed int, then warn of a sign conflict when an intrinsically safe result is assigned back to the original type.
2023-05-09 23:55:08 -05:00
Daniel Pouzzner
ec9beaab41
linuxkm: add coverage for Linux 6.4+ module memory layout refactor; also, refactor WOLFSSL_LINUXKM_USE_SAVE_VECTOR_REGISTERS to make it settable independent of WOLFSSL_AESNI etc.
2023-05-09 23:53:49 -05:00
Sean Parkinson
158c0362e7
Merge pull request #6372 from rizlik/send_alert_fix
...
tls13: correctly propagatae SendAlert err message
2023-05-10 10:25:15 +10:00
JacobBarthelmeh
cdeba4e1b0
Merge pull request #6364 from anhu/compat_unknown_oid
...
Allow for unknown OIDs in extensions in wolfSSL_X509_set_ext()
2023-05-08 14:51:35 -06:00
JacobBarthelmeh
11512c7e89
Merge pull request #6388 from philljj/zd16114
...
Fix memory leak in TLSX_KeyShare_Setup
2023-05-08 14:47:00 -06:00
Anthony Hu
730db6a841
Address Jacob's comment
2023-05-08 14:47:22 -04:00
jordan
8c792b836c
Fix memory leak in TLSX_KeyShare_Setup
2023-05-08 10:46:33 -05:00
David Garske
62a4329f8e
Merge pull request #6379 from SparkiDev/sp_int_gcd_fix
...
SP int; fix sp_gcd error checking
2023-05-07 12:11:29 -07:00
Daniel Pouzzner
ae844b4a0f
Merge pull request #6378 from SparkiDev/minor_fixes_2
...
Minor fixes
2023-05-04 20:20:33 -05:00
Sean Parkinson
d342e341d8
SP int; fix sp_gcd error checking
...
r can be as large as the smaller of a and b.
Fix sign check.
Add comments as to what GCD does.
2023-05-05 09:11:47 +10:00
Sean Parkinson
55a91c2b55
Minor fixes
...
configure.ac: Don't use == in test.
client.c: Merge string to one line.
asn.c/asn_public.h:
fix conversion warnings/errors.
wc_Asn1_Print no longer public and doesn't need to check for NULL.
wc_Asn1_PrintAll check all pointer parameters for NULL.
2023-05-05 08:43:50 +10:00
David Garske
c3e4da9f66
Merge pull request #6376 from lealem47/freeRTOS_thread
...
Define WOLFSSL_THREAD for FREERTOS case
2023-05-04 14:53:24 -07:00
Lealem Amedie
0af4e8d10a
Define WOLFSSL_THREAD for FREERTOS case
2023-05-04 14:26:12 -06:00
David Garske
6e572cc91d
Merge pull request #6352 from SparkiDev/asn1_print
...
ASN.1 print utility: asn1
2023-05-04 10:55:47 -07:00
Marco Oliverio
75390937bc
tls13: correctly propagatae SendAlert err message
2023-05-04 16:30:50 +00:00
David Garske
4cdf32e497
Merge pull request #6333 from SparkiDev/memusage_6
...
Memory usage improvements
2023-05-04 09:14:24 -07:00
gojimmypi
82e502d8a2
WOLFSSL_SP_INT_NEGATIVE declaration for all Espressif chipsets ( #6374 )
...
* WOLFSSL_SP_INT_NEGATIVE declaration for all Espressif chipsets
* correct naming for WOLFSSL_SHA384 on ESP32-C3
2023-05-04 08:04:25 -07:00
Sean Parkinson
d2afe9e5e0
Memory usage improvements
...
ECC: make private key field 'k' able to be smaller when ALT_ECC_SIZE is
defined.
WOLFSSL_SMALL_STACK_CACHE: allocate temps using new macros.
2023-05-04 10:26:57 +10:00
Sean Parkinson
9cdee20a7d
ASN.1 print: implementation to parse and print added
...
New API to parse and print DER/BER data from a buffer.
Add an example to parse DER, Base64 and PEM files and print out ASN.1 items.
2023-05-04 09:57:44 +10:00
John Bland
6369b1e9ec
Merge pull request #6371 from dgarske/lowres
...
Fixes and improvements for building with low footprint
2023-05-03 19:33:53 -04:00
David Garske
714ec82e91
Merge pull request #6369 from rizlik/dh-async-fix
...
async fixes: dh and tests
2023-05-03 07:50:23 -07:00
JacobBarthelmeh
f05543c9e5
Merge pull request #6370 from SparkiDev/sp_int_copy_change
...
SP int: _sp_copy don't check a == b, change calls to _sp_copy
2023-05-03 08:30:55 -06:00
David Garske
4b90afa37b
Provide way to disable ASN but have wc_RsaPublicKeyDecodeRaw, which doesn't need ASN.1 parsing.
2023-05-02 18:10:25 -07:00
David Garske
61dfbf5ef2
Fixes and improvements for building with low footprint. Fix for ASN template with RSA verify only (was missing mp_leading_bit). Fix to allow disabling DRBG with crypto callbacks enabled. Updated the wolfTPM user_settings.h template with low resource option.
2023-05-02 16:51:41 -07:00
Sean Parkinson
1a8f09d013
Merge pull request #6320 from JacobBarthelmeh/curl
...
smaller sized build with curl
2023-05-03 07:46:29 +10:00
Sean Parkinson
c3a8476b95
SP int: _sp_copy don't check a == b, change calls to _sp_copy
...
Simplify code to make it easier for software analysers.
Reduce work done by using _sp_copy instead of sp_copy where possible.
2023-05-03 07:44:28 +10:00
JacobBarthelmeh
11a77f7078
Merge pull request #6363 from dgarske/threadlocal
...
Add option to support disabling thread local storage
2023-05-02 15:12:13 -06:00
JacobBarthelmeh
58b996353b
Merge pull request #6266 from dgarske/zd15938_async_ecc
...
Fix for async ECC shared secret state
2023-05-02 12:01:31 -06:00
Anthony Hu
0ebe5819d0
Allow for unknown OIDs in extensions in wolfSSL_X509_set_ext()
...
...and add some testing to show we properly inserted the extensions.
2023-05-02 12:43:14 -04:00
Marco Oliverio
a5a2316aa4
async: fix overwrite of keylen params between calls
...
The `kse->pubKeyLen` parameter is used as an input parameter to `DhGenKeyPair`
to provide the size of the `pubKey` buffer (the same size as the prime p). After
that, `kse->pubKeyLen` is used to check that the public key generated is of the
same length as the prime p. If this is not the case, the public key is
padded. If the key generation is asynchronous, then `TLSX_KeyShare_GenDhKey` may
be invoked twice. The second time, the `kse->pubKeyLen` value, updated
asynchronously by the async code, is overwritten with the prime size at the
beginning of the function. When this happens, a wrong public key value is used,
and the shared secret computed is incorrect.
Similar reasoning can be applied to `kse->keyLen`
2023-05-02 16:34:15 +00:00
Marco Oliverio
3e4b95eb4b
test: fix test AEAD limit server set fds as nonblock
2023-05-02 16:34:01 +00:00
JacobBarthelmeh
bdd45350c5
Merge pull request #6361 from bandi13/minorContainerUpdates
...
Minor container updates
2023-05-01 17:05:36 -06:00
David Garske
ceeda82906
Add option to support disabling thread local --disable-threadlocal. Useful for cross-compile situation where thread local storage is not desired. ZD 16062
2023-05-01 15:51:22 -07:00
JacobBarthelmeh
06d5897233
Merge pull request #6362 from dgarske/stm32_hash
...
Improved fix for STM32 hashing on U5
2023-05-01 16:30:57 -06:00
David Garske
72ffa743a0
Fix for async ECC shared secret. ZD 15938
2023-05-01 15:30:03 -07:00
JacobBarthelmeh
ef955c620f
refactor evp.c to group all MD digest functions togther
2023-05-01 13:23:48 -07:00
David Garske
7576380635
Improved fix for STM32 hashing on U5
2023-05-01 13:13:00 -07:00
JacobBarthelmeh
c84abaf5b6
Merge pull request #6357 from kareem-wolfssl/gh6348
...
Fix wc_PeekErrorNodeLineData not unlocking error queue on error.
2023-05-01 13:59:35 -06:00
JacobBarthelmeh
45c8796f7c
Merge pull request #6355 from bandi13/minorBugfix
...
Should only move the index by the amount we wrote
2023-05-01 13:56:22 -06:00
Andras Fekete
931f665a9a
Missing 'tcpdump' utility
2023-05-01 15:30:12 -04:00
Andras Fekete
00fa00f875
Changes to make it possible to use a different base container
2023-05-01 15:28:39 -04:00
JacobBarthelmeh
73b3f9c01a
Merge pull request #6356 from lealem47/init_values
...
Fix uninitialized variable compiler warning
2023-05-01 09:18:48 -06:00
Kareem
f6cdcfcf9f
Fix wc_PeekErrorNodeLineData not unlocking error queue on error.
2023-04-28 16:35:49 -07:00
Lealem Amedie
99b4ee50ba
Fix uninitialized variable compiler warning
2023-04-28 13:58:29 -06:00
Andras Fekete
1522155892
Should only move the index by the amount we wrote
2023-04-28 14:08:15 -04:00
David Garske
52a20fc2b5
Merge pull request #6328 from julek-wolfssl/zd/16000
...
Allow cert callback to override skipAddCA
2023-04-28 10:25:13 -07:00
Juliusz Sosinowicz
13f4e178e5
Zephyr misc fixes for TLS ( #6353 )
...
* zephyr wolfssl_tls_sock: fix project name
* zephyr tls_sock.c: don't include options.h when using user settings
* zephyr: define XSTAT_TYPE for use with XSTAT
2023-04-28 10:00:24 -07:00
JacobBarthelmeh
6b2aca1418
Merge pull request #6347 from SparkiDev/sp_int_armv6_clz
...
SP int ARMv6: clz not available, correct #if
2023-04-28 09:43:58 -06:00
Juliusz Sosinowicz
36ac816cd1
Merge pull request #6342 from TakayukiMatsuo/unittest
2023-04-28 10:06:04 +02:00
Sean Parkinson
f8559b745e
Merge pull request #6351 from douzzer/20230427-linuxkm-simd-fixes
...
20230427-linuxkm-simd-fixes
2023-04-28 11:20:20 +10:00