Daniel Pouzzner
f1a674eec9
wolfcrypt/src/wc_port.c: in wc_FileLoad(), use ssize_t for fileSz, not long int, for portability.
2023-04-18 14:30:38 -05:00
Daniel Pouzzner
b87c2fc621
fix null pointer deref (found by cppcheck:nullPointerRedundantCheck) in src/x509.c:wolfSSL_X509_EXTENSION_create_by_OBJ().
2023-04-18 14:29:13 -05:00
Daniel Pouzzner
4180a650c8
fix clang-analyzer-deadcode.DeadStores in wolfcrypt/src/asn.c:SetOthername().
2023-04-18 14:27:52 -05:00
Daniel Pouzzner
a4aef0e55d
refinements from peer review for #6303 .
2023-04-18 12:23:24 -05:00
Daniel Pouzzner
193919a276
add wc_strcasecmp() and wc_strncasecmp() to wc_port.c, and set up (USE_WOLF_STR[N]CASECMP) in types.h for targets lacking native implementations (including WOLF_C89);
...
define USE_WOLF_STRSEP if defined(WOLF_C89).
2023-04-18 12:23:24 -05:00
Daniel Pouzzner
4b9302cdb3
another batch of -Wconversion fixes.
2023-04-18 12:23:24 -05:00
Daniel Pouzzner
42bea705d9
fix several more C89 "comma at end of enumerator list" spots in 64-bit-only headers, missed in earlier passes; in tests/unit.h, add a WOLF_C89 definition of AssertPtr() without pragmas, to avoid a -Wdeclaration-after-statement.
2023-04-18 12:23:24 -05:00
Daniel Pouzzner
730890b8cc
wolfssl/wolfcrypt/sp_int.h: fix a missed bugprone-macro-parentheses in the C89 path.
2023-04-18 12:23:24 -05:00
Daniel Pouzzner
d91f0f82d8
wolfssl/wolfcrypt/misc.h: add missing argument names in NO_INLINE path.
2023-04-18 12:23:24 -05:00
Daniel Pouzzner
3d16ec8dc1
wolfssl/wolfcrypt/asn_public.h: fix version threshold for wc_RsaPrivateKeyValidate() prototype.
2023-04-18 12:23:24 -05:00
gojimmypi
98b718f91b
wolfcrypt polish: init, checks, corrections ( #6249 )
...
* wolfcrypt polish: init, checks, corrections
2023-04-18 09:41:42 -07:00
András Fekete
f7d7e4f30a
Merge pull request #6285 from gojimmypi/Espressif_VisualGDB
...
platform-specific VisualGDB test & benchmark projects
2023-04-18 11:52:29 -04:00
JacobBarthelmeh
ff13a7cdc8
Merge pull request #6250 from julek-wolfssl/fix-wolfSSL_DES_ede3_cbc_encrypt
...
Write next IV in wolfSSL_DES_ede3_cbc_encrypt
2023-04-18 09:33:10 -06:00
JacobBarthelmeh
42b73ee326
Merge pull request #6277 from anhu/upnsid
...
Support UPN and SID.
2023-04-17 17:03:55 -06:00
Anthony Hu
120d1f0d1a
Support in the compatibility layer for UPN and SID.
2023-04-17 14:42:27 -04:00
David Garske
91a2c9f18e
Merge pull request #6310 from julek-wolfssl/hostap-certs-update-2023
...
hostap/hwsim: use a custom commit to update the expired certs
2023-04-17 11:36:59 -07:00
Juliusz Sosinowicz
aa47a38a9e
hostap/hwsim: use a custom commit to update the expired certs
...
- use 'theirs' merge strategy
2023-04-17 18:43:47 +02:00
David Garske
5938a40def
Merge pull request #6297 from JacobBarthelmeh/math
...
clean up NO_BIG_INT build, removing WOLFSSL_SP_MATH macro and heapmath compile
2023-04-17 07:44:20 -07:00
JacobBarthelmeh
ec78d1a4b8
Merge pull request #6293 from tim-weller-wolfssl/mynewt-updates
...
Update wolfCrypt porting layer for Mynewt OS to remove build warning.
2023-04-17 08:07:39 -06:00
Sean Parkinson
50e15dbb36
Merge pull request #6283 from cconlon/tls13resume12
...
In SendTls13ClientHello() only send Session ID for sessions being resumed (< TLS 1.3)
2023-04-17 12:21:11 +10:00
David Garske
6b12831dfb
Merge pull request #6302 from douzzer/20230413-more-wolfcrypt-c89
...
20230413-more-wolfcrypt-c89
2023-04-14 14:08:03 -07:00
Jacob Barthelmeh
cb9a121bd7
fix configure, compatibility layer needed big int. for BN use
2023-04-14 14:52:05 -06:00
Daniel Pouzzner
1bed740710
address peer review: make C89-compatible refactors in sakke_pairing() and sakke_modexp_loop(); add explanatory comment for WOLF_ENUM_DUMMY_LAST_ELEMENT() in types.h.
2023-04-14 15:07:05 -05:00
Eric Blankenhorn
39b81ce338
Merge pull request #6282 from dgarske/fix_heapmath
...
Fix for including integer.h when heap math is not used
2023-04-14 14:28:38 -05:00
Daniel Pouzzner
ac85cfa3d5
fix "comma at end of enumerator list" warnings in wolfcrypt for C89 compatibility, mostly by just snipping out unneeded comma, but several using WOLF_ENUM_DUMMY_LAST_ELEMENT() to preserve gated enum values as-is.
2023-04-14 13:48:03 -05:00
Daniel Pouzzner
2bcf6bd3ca
wolfssl/wolfcrypt/types.h: add WOLF_ENUM_DUMMY_LAST_ELEMENT() macro, and disable HAVE_ANONYMOUS_INLINE_AGGREGATES ifdef WOLF_C89.
2023-04-14 13:47:47 -05:00
Daniel Pouzzner
d5588af0a2
wolfcrypt/src/sakke.c: fixes for C89 "initializer element is not computable at load time".
2023-04-14 13:29:26 -05:00
Daniel Pouzzner
105714460c
wolfcrypt/src/fe_448.c: fix declaration-after-statement in fe448_mul_8().
2023-04-14 13:29:26 -05:00
Daniel Pouzzner
edf95dbcbd
add WOLF_C89 clauses to the W64LIT() definitions in wolfssl/wolfcrypt/types.h, and wrap several long long numeric literals with W64LIT() in wolfcrypt/src/{aes.c,blake2b.c,siphash.c};
...
add WOLF_C89 handling to SP_ULONG_BITS and SP_ULLONG_BITS setup in wolfssl/wolfcrypt/sp_int.h.
2023-04-14 13:29:26 -05:00
David Garske
bc3d070629
Merge pull request #6290 from embhorn/zd15969
...
Allow Micrium to use STM32_RNG
2023-04-14 10:59:50 -07:00
David Garske
deae28b9a3
Fix for building with heap math and including integer.h only. Fixes https://github.com/wolfSSL/wolfssl/issues/6280
...
```
./configure --enable-heapmath CFLAGS="-DWOLFSSL_PUBLIC_MP" && make && sudo make install
cd ../wolfssl-examples/ecc
make clean && make
```
2023-04-14 10:37:40 -07:00
JacobBarthelmeh
36a9b9944c
fix guard on ECC export
2023-04-13 16:12:08 -07:00
JacobBarthelmeh
00aa061d77
Merge pull request #6300 from douzzer/20230413-fixes
...
20230413-fixes
2023-04-13 15:41:51 -06:00
JacobBarthelmeh
04ee247389
do not default to heapmath if no other math libraries found, add NO_BIG_INT as a math option in settings.h
2023-04-13 14:38:35 -07:00
David Garske
6040a6b5da
Merge pull request #6299 from JacobBarthelmeh/build
...
fix for wpas build with x509 small
2023-04-13 13:54:50 -07:00
Daniel Pouzzner
358af4ef05
fix for cppcheck/zerodivcond in wolfcrypt/src/pkcs7.c:wc_PKCS7_DecodeAuthEnvelopedData();
...
fixes for clang-tidy/bugprone-macro-parentheses in wolfssl/wolfcrypt/sp_int.{c,h} and wolfcrypt/src/ecc.c;
fix for clang-analyzer-deadcode.DeadStores in olfcrypt/src/asn.c.
2023-04-13 14:51:29 -05:00
David Garske
2307b36a65
Merge pull request #6296 from JacobBarthelmeh/RT1170
...
fix for creating options.h with cmake and WOLFSSL_USER_SETTINGS
2023-04-13 11:24:53 -07:00
JacobBarthelmeh
9a0934161d
fix for wpas build with x509 small
2023-04-13 10:38:12 -07:00
David Garske
419a1f0a01
Merge pull request #6294 from douzzer/20230412-WC_ASN_NAME_MAX-bump-for-MULTI_ATTRIB
...
20230412-WC_ASN_NAME_MAX-bump-for-MULTI_ATTRIB
2023-04-12 16:21:33 -07:00
JacobBarthelmeh
441b78e5a2
Merge pull request #6284 from douzzer/20230410-Wconversion-fixes
...
20230410-Wconversion-fixes
2023-04-12 17:07:24 -06:00
JacobBarthelmeh
d4b92cb65c
Merge pull request #6295 from dgarske/stm32_20230412
...
Fixes for STM32 U5/H5/H7 hash and PKA sign build error
2023-04-12 16:36:43 -06:00
JacobBarthelmeh
26a0142f51
add nomath option for builds without a math library
2023-04-12 15:33:59 -07:00
Daniel Pouzzner
c41030663e
wolfcrypt/src/pkcs7.c: correct fix for clang-analyzer-core.DivideZero in wc_PKCS7_DecodeAuthEnvelopedData().
2023-04-12 16:37:20 -05:00
David Garske
b7ff375ac6
Fix PKA build error with SP sign. Fix U5/H5/H7 hashing, which require a workaround to write an extra 32-bit to flush FIFO before save/restore.
2023-04-12 13:45:29 -07:00
David Garske
e1ca478356
Added STM32G0 benchmarks.
2023-04-12 13:45:28 -07:00
JacobBarthelmeh
2c26b068b2
Merge pull request #6239 from dgarske/stm32h5
...
Support for STM32H5
2023-04-12 14:33:25 -06:00
Daniel Pouzzner
97ffdfa9b8
wolfssl/wolfcrypt/asn.h: if defined(WOLFSSL_MULTI_ATTRIB), bump predefined WC_ASN_NAME_MAX, to fix rsa_certgen_test() with config --enable-testcert --enable-asn=original CPPFLAGS='-DWOLFSSL_CERT_GEN -DWOLFSSL_MULTI_ATTRIB'.
2023-04-12 13:48:03 -05:00
tim-weller-wolfssl
72fc023d38
Update wolfCrypt porting layer for Mynewt OS to provide declarations needed to remove build warning for time API used for XTIME
2023-04-12 12:30:42 -05:00
Daniel Pouzzner
4b59588cf3
more fixes for implicit casts, mostly asn=original.
2023-04-12 02:17:18 -05:00
Daniel Pouzzner
fe2acb53af
wolfcrypt/src/ecc.c:fix overstringent arg check in wc_ecc_gen_k().
2023-04-12 01:37:09 -05:00