Juliusz Sosinowicz
7ed5e0b3ba
zephyr no malloc
...
- cert gen
- csr gen
- pkcs12
- Compiles for Zephyr 3.4.0 and 2.7.4
- Add support for CONFIG_POSIX_API
2024-05-07 10:38:01 +02:00
kaleb-himes
e45867bbc3
WIN fips section refactor / wolfEntropy API syntax adjustment
2024-04-09 09:48:33 -06:00
kaleb_himes
81f5ac7f6c
SRTP-KDF FS Preview
2024-04-09 09:48:33 -06:00
David Garske
83dc3dfac1
Add support for the Infineon/Cypress HAL TRNG.
2024-03-28 13:57:26 -07:00
gojimmypi
e40eb3c774
Update Arduino examples; add wolfcrypt breadcrumbs.
2024-03-06 15:13:37 -08:00
Daniel Pouzzner
dfbde4514b
global refactor of static mutex initialization to use WOLFSSL_MUTEX_INITIALIZER, and adjustment of WOLFSSL_MUTEX_INITIALIZER macro to take an argument, for Linux kernel compatibility.
2024-02-29 02:11:32 -06:00
Brett Nicholas
55421a11b9
review: removed WOLFSSL_ABI from and refactored args for wc_rng_new_ex, updated tests
2024-02-27 10:17:24 -07:00
Brett Nicholas
1a5064cf8c
add full support to wolfcrypt tests for random.c cryptocbs
2024-02-23 13:02:05 -07:00
David Garske
815c290293
Merge pull request #7231 from anhu/maxqrng
...
Use the MAXQ1065/1080 rng when available.
2024-02-16 09:43:46 -08:00
David Garske
6f88ed0901
Merge pull request #7177 from gojimmypi/PR-Arduino-Update
...
Improved Arduino Support: ESP32, Due
2024-02-13 09:43:42 -08:00
gojimmypi
bf29066d70
Add wolfSSL debug messages
2024-02-08 17:22:36 -08:00
Anthony Hu
16c74a31b2
Use the MAXQ1065/1080 rng when available.
2024-02-08 16:10:36 -05:00
gojimmypi
ee0e25de5f
Improved Arduino Support, ESP32, Due; (+ code review x2)
2024-02-01 08:31:00 -08:00
JacobBarthelmeh
3f10496757
add weak source of entropy on microblaze to test with
2024-01-03 13:35:00 -08:00
David Garske
fb5eab8f79
Fix one shot hash routines to attempt offloading to crypto callbacks. Fix random.c health test to use devId. Fix FIPS unused "ssl".
2023-12-19 11:20:56 -08:00
gojimmypi
7e69030df1
Espressif ESP32-C3 ESP32-C6 ESP32-S2 Hardware Acceleration
2023-11-20 18:05:18 -08:00
Tobias Frauenschläger
081b34919c
Zephyr: improve order of random seed sources
...
When using Zephyr, we also want to use the proper wc_GenerateSeed
method. However, if one of the defines is set (e.g., NO_STM32_RNG), the
Zephyr option is ignored, although it would work. Hence, we have to
change the order in which these settings for the source of a random seed
are evaluated.
Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com >
2023-11-09 10:41:54 +01:00
Tobias Frauenschläger
9d880fe161
Zephyr: Fix deprecation warning for rand32.h
...
Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com >
2023-11-09 10:41:54 +01:00
JacobBarthelmeh
449fb9c581
Fix for report CID 330424 wrong sizeof argument
2023-10-27 13:20:50 -06:00
Hideki Miyazaki
f8604da8e3
change to use a cutom random generation func for PRNG
2023-10-11 06:50:26 +09:00
Hideki Miyazaki
8d5df6fec2
change to use custom random generation func
2023-10-08 16:42:36 +09:00
Hideki Miyazaki
5e97b9fde8
addressed review comments
2023-09-15 13:22:35 +09:00
Hideki Miyazaki
1c9afb8b12
initial commit for RZN2L board Support
2023-09-13 09:22:55 +09:00
Hideki Miyazaki
47caa9b06d
generalize sce protect impl to fsp sm(secure module)
2023-08-13 09:23:03 +09:00
Juliusz Sosinowicz
67d6d438c5
Port testing to wolfSSL threading interface
2023-08-04 10:49:39 +02:00
Andras Fekete
b31e485dc9
Remove 'HAVE_FIPS_VERSION < 2' blocks
2023-08-02 17:08:03 -04:00
David Garske
4862b57415
Simplify Windows Entropy_TimeHiRes, which just needs a precision timer to differentiate, not specific time.
2023-07-13 14:30:58 -07:00
David Garske
761a976d0c
Add support for MemUse Entropy on Windows.
2023-07-13 12:56:13 -07:00
gojimmypi
57546405c0
refactor WROOM32 ESP32
2023-07-07 15:47:00 -07:00
David Garske
53c30f44a0
Support for using the Nuttx STM RNG register definitions, enabled with STM32_NUTTX_RNG. ZD 16315
2023-06-30 13:00:52 -07:00
gojimmypi
6b240fa41a
Refactor HAVE_PTHREAD and _POSIX_THREADS ( #6536 )
...
* HAVE_PTHREAD gate in test.h
* add config.h and settings.h to test.h
* added config.h and settings.h to other test.h in wolfcrypt/test
* settings #ifdef _POSIX_THREADS HAVE_PTHREAD
* cyassl settings _POSIX_THREADS HAVE_PTHREAD
* undo cyassl _POSIX_THREADS HAVE_PTHREAD
* move settings.h #include in both test.h
* add !defined(SINGLE_THREADED) logic
* refactor HAVE_PTHREAD, _POSIX_THREADS
2023-06-26 07:32:20 -07:00
Eric Blankenhorn
53fe93430e
Update EBSNET port
2023-06-21 15:52:42 -05:00
Sean Parkinson
ed01b14356
cppcheck: fixes from scan
...
wolfssl_sce_unit_test.c:
sce_crypt_Sha_AesCbcGcm_multitest(): duplicate condition
ssl_asn1.c:
wolfSSL_i2t_ASN1_OBJECT(): done is not needed
MonthStr(): fix bounds check on i
woolfcrypt_test.c, test_main.c, wolfssl_tsip_unit_test.c, devices.c,
aes.c, des3.c:
Variable not used.
asn.c:
DecodeSubjKeyId(): sz is unsigned - check for less than zero does
nothing
kcapi_rsa.c:
KcapiRsa_Decrypt(): fix ret check by using else
KcapiRsa_Encrypt(): make same change for consistency
kcapi_hash.c:
KcapiHashFinal(): move ret into #ifdef where it is needed
stm32.c:
wc_Stm32_Hash_GetDigest(): i redeclared with different type - use ii
instead
bio.c, conf.c:
XFREE checks for NULL
Reduce scope of varialbes.
Condition same.
2023-06-07 17:27:51 +10:00
Daniel Pouzzner
85e0bf337b
fix for benign sign clash in wc_RNG_GenerateBlock().
2023-05-17 01:05:33 -05:00
Chris Conlon
a474179cdf
Merge pull request #6301 from miyazakh/ra_cryptonly
...
Add Renesas SCE RSA Crypt Only support
2023-05-12 16:32:15 -06:00
JacobBarthelmeh
bab35c4de2
add WOLF_CRYPTO_CB_FIND macro to guard find device ID callback
2023-05-10 15:28:19 -07:00
JacobBarthelmeh
71cbc019d7
always call crypto cb when compiled in
2023-05-08 09:49:50 -07:00
JacobBarthelmeh
57de292d19
add guard for random with CAAM + MQX
2023-04-24 16:29:22 -07:00
gojimmypi
98b718f91b
wolfcrypt polish: init, checks, corrections ( #6249 )
...
* wolfcrypt polish: init, checks, corrections
2023-04-18 09:41:42 -07:00
Hideki Miyazaki
35f6099d7c
Add SCE RSA Crypt Only feature
...
- RSA SSA 1024/2048 Sign/verify
- RSA ES 1024/2048 Enc/Dec
- Unit test for these RSA operation
2023-04-14 06:41:24 +09:00
Daniel Pouzzner
ed11669f3c
more fixes for implicit casts, including asn=template.
2023-04-12 01:37:09 -05:00
David Garske
72c6429276
Better fixes for pedantic to resolve (error: comparison of unsigned expression >= 0 is always true). Also overlong lines.
2023-04-12 01:37:09 -05:00
David Garske
6418e3cbfe
Fixes for implicit casts.
...
Tested with `./configure --disable-asm --enable-32bit --enable-asn=original --enable-cryptonly CFLAGS="-Wconversion -pedantic" && make`. Some progress with ASN template, but not complete.
2023-04-12 01:37:09 -05:00
Sean Parkinson
10c1009bbd
Merge pull request #6127 from JacobBarthelmeh/qnx
...
IMX6Q CAAM Port
2023-04-05 08:44:00 +10:00
David Garske
a4a6a05f06
Merge pull request #6251 from PrinceOfPuppers/master
...
updated zephyr includes
2023-04-03 16:25:32 -07:00
JacobBarthelmeh
30adcd58d8
IMX6Q CAAM Port
2023-04-03 16:41:08 -06:00
Sean Parkinson
8851065848
cppcheck fixes
...
Fix checking of negative with unsigned variables.
Check digestSz for 0 in wc_SSH_KDF() so that no possibility of dividing
by zero.
Change XMEMCPY to XMEMSET in renesas_sce_util.c.
Fix test.c to free prvTmp and pubTmp on read error.
Remove unused variables.
XFREE checks for NULL so don't check before call.
Move variable declarations to reduce scope.
2023-04-03 16:59:58 +10:00
PrinceOfPuppers
9b1aed0c82
updated zephyr includes
2023-03-29 22:22:31 -04:00
kaleb-himes
59107aeaa8
Fix a typo in PP macro and add a ceiling to guard against implementation bugs
2023-03-27 16:02:34 -06:00
John Safranek
907a29ab9e
RNG Tweak
...
1. Remove a redundant test. The duplicate data test is not required and
is checking for something that potentially can happen normally,
albeit rarely.
2023-03-10 11:08:35 -08:00