Commit Graph

1917 Commits (master)

Author SHA1 Message Date
Reda Chouk a663683679
Merge pull request #660 from dgarske/c2000_puf
Add an SRAM PUF build to the TI C2000 example
2026-12-02 22:56:35 +01:00
David Garske 0537a73a22 Add an SRAM PUF build to the TI C2000 example 2026-12-02 11:57:35 -08:00
Aidan Garske 1bad98f3c0
Merge pull request #658 from padelsbach/mynewt-deprecated
Disable mynewt workflow against wolfSSL master
2026-11-24 11:25:01 -08:00
Paul Adelsbach 9b491e3eb2 Disable mynewt workflow against wolfSSL master 2026-11-24 09:14:37 -08:00
cwilley 6838492146
Merge pull request #657 from padelsbach/mbedtls-info
MbedTLS: print protocol, suite and verify reasons
2026-11-23 13:13:33 -08:00
Paul Adelsbach ebd59e8e51 MbedTLS: print protocol, suite and verify reasons 2026-11-23 13:02:23 -08:00
Tobias Frauenschläger 1efa0bbcc7
Merge pull request #653 from padelsbach/mbedtls-compat
Add MbedTLS example
2026-11-21 17:35:40 +01:00
Paul Adelsbach 026cb39cb3 MbedTLS: move wolfPSA pin to master 2026-11-21 08:11:08 -08:00
Paul Adelsbach 463fd68a8c MbedTLS: Use poll(), handle server close, fcntl() return codes, readme update 2026-11-20 19:28:32 -08:00
Paul Adelsbach 392995e2d6 Add MbedTLS example 2026-11-16 18:25:07 -08:00
Zackery 9a96435db6
Merge pull request #655 from dgarske/rtl8735b_wrap_doc
Add RTL8735B HUK wrapped-key examples for ECC, AES and mutual TLS and fix stale docs
2026-11-16 17:47:07 -07:00
philljj 8c1d8935fa
Merge pull request #625 from julek-wolfssl/chain-verify-cb
Add chain verify callback example
2026-11-16 11:59:41 -06:00
David Garske dd36c2fc72 Add RTL8735B HUK wrapped-key examples for ECC, AES and mutual TLS and fix stale docs 2026-11-13 14:15:55 -08:00
lealem47 a342a4e2e2
Merge pull request #652 from dgarske/noisesrc_wolfentropy
ti-c2000-f28p55x: build rng_noisesrc.c for ENTROPY=1
2026-11-04 14:00:48 -07:00
David Garske 5be759368f ti-c2000-f28p55x: build rng_noisesrc.c for ENTROPY=1 2026-10-29 17:56:24 -07:00
Mattia Moffa a8a1b750fc
Merge pull request #648 from dgarske/mlkem_cryptocb
Add ML-KEM and ML-DSA crypto callback (cryptocb) examples
2026-10-29 20:54:09 +01:00
David Garske b08251306a ci: skip can-bus run when vcan kernel modules are unavailable 2026-10-29 10:41:51 -07:00
David Garske c96769a3e8 Add ML-KEM and ML-DSA crypto callback examples 2026-10-29 10:41:51 -07:00
Mattia Moffa cb1e5f0150
Merge pull request #649 from dgarske/psoc_e8
Add wolfCrypt test and benchmark for Infineon PSOC Edge E8
2026-10-29 18:19:36 +01:00
David Garske ba1f9fba54 Add wolfCrypt test and benchmark for Infineon PSOC Edge E8 2026-10-28 14:00:46 -07:00
Mattia Moffa 321f4578a1
Merge pull request #650 from dgarske/c28x_ecdsa_bench
Add ECDSA and SHA-384 image-verify timings to the TI C2000 example
2026-10-28 04:07:25 +01:00
David Garske 0cd56cacee Add ECDSA/SHA-384 image-verify timing harness and SECP384R1 to the C2000 example 2026-10-26 16:17:16 -07:00
Aidan Garske 821914a725
Merge pull request #646 from dgarske/c2000_ccs
TI C2000 example: add CCS projects for the SHA-2 and SHA-3 examples
2026-10-23 11:17:57 -07:00
Juliusz Sosinowicz 251d63b131 Wait for the socket on write in the chain verify example
Also correct the handshake loop comment, which promised three early
returns and listed two.
2026-10-22 10:22:26 +00:00
Juliusz Sosinowicz 712af9fc58 Run the chain verify callback example against master only
--enable-chain-verify-cb reached wolfSSL master in wolfSSL/wolfssl#11367
and no release carries it. configure exits 1 on an unrecognized --enable-*,
so carrying the flag in the shared tls profile failed that whole directory
on the stable tag rather than just skipping the one example.

Give it its own profile and its own entry, pinned to master with
wolfssl_ref, the way pkcs7-signeddata-stream already is. The other 22 tls
targets keep testing the released library. The entry builds only the two
binaries its pair needs, since the tls entry builds the rest against both
refs already.

wolfssl-matrix built every profile for every ref and then seeded whatever
pins were missing, so a profile no unpinned entry uses was still built for
refs its flags predate. Build the (profile, ref) pairs entries actually ask
for instead, which covers the pinned ones and drops the impossible ones.
2026-10-22 10:22:26 +00:00
Juliusz Sosinowicz 8fdd415d97 Fix cleanup ordering and error paths in the chain verify example
The trust service thread calls wolfSSL, so joining it after
wolfSSL_Cleanup() could tear down library state the thread was still
using. Stop the service first.

Three error paths alongside it:

- Size the anchor file before allocating for it. A ftell() of -1 became a
  SIZE_MAX malloc, and the read failure path returned without freeing.
- Destroy the mutex and condition variable and free the anchor when
  pthread_create() fails, so a service that never started leaves nothing
  behind.
- Keep the socket's existing flags when setting O_NONBLOCK, and fail if
  either fcntl() does, rather than running blocking without saying so.
2026-10-22 10:22:26 +00:00
Juliusz Sosinowicz c55986e21c Run the chain verify callback example in CI
The example needs --enable-chain-verify-cb, which the tls profile did not
carry, so client-tls-chainverifycb built as the stub that prints "wolfSSL
was built without --enable-chain-verify-cb" and nothing ran it. Add the
flag, and a pair entry that runs it against server-tls.

The flag only defines WOLFSSL_CHAIN_VERIFY_CB. WOLFSSL_ASYNC_IO is already
on in this profile, so nothing else in tls/ is affected.

server-tls presents ../certs/server-cert.pem on port 11111, which the
client's default anchor ../certs/ca-cert.pem issued, so the pair needs no
arguments beyond the host.
2026-10-22 10:22:26 +00:00
Juliusz Sosinowicz 93c6eccbe1 Add chain verify callback example
A TLS client whose root of trust lives outside wolfSSL. No CA is loaded
into the context; a chain verify callback hands the server's certificates
to a trust service on its own thread, standing in for an HSM that holds
the anchors, and defers the handshake with CHAIN_VERIFY_WANT_E until the
service has a verdict. Switches show the handshake failing with no
callback installed and with the service rejecting the chain.

Requires wolfSSL built with --enable-chain-verify-cb.
2026-10-22 10:22:26 +00:00
David Garske 3d2a76621f TI C2000 example: add CCS projects for the SHA-2 and SHA-3 examples 2026-10-20 15:20:05 -07:00
Mattia Moffa 7f29c50efa
Merge pull request #645 from dgarske/c2000_sha_examples
TI C2000 example: add standalone SHA-2 and SHA-3 examples
2026-10-20 21:36:57 +02:00
David Garske 9c37a40bac TI C2000 example: add standalone SHA-2 and SHA-3 examples (SHA2=1, SHA3=1) 2026-10-15 08:31:03 -07:00
philljj acfd54a311
Merge pull request #642 from SparkiDev/example_fixes_1
Fix certvfy and tls examples for wolfSSL master API changes
2026-10-14 23:29:19 -05:00
philljj e21e4c708c
Merge pull request #634 from julek-wolfssl/fenrir-13971-dtls-demux-empty-datagram
F-13971: Ignore zero-length datagrams in DTLS demux server
2026-10-13 00:41:35 -05:00
Sean Parkinson 9392da1907 Fix certvfy and tls examples for wolfSSL master API changes
certvfy: wc_ParseCert() now takes a WOLFSSL_CERT_MANAGER*, so a Signer
  can no longer be passed as the CA. Check the issuer and verify the
  signature with wc_CheckCertSigPubKey() instead.
tls: NO_SESSION_CACHE_REF is now the default, so a session from
  wolfSSL_get_session() is freed with its connection. Use
  wolfSSL_get1_session() in client-tls13-resume and client-tls-perf.
2026-10-09 12:16:54 +10:00
Aidan Garske edc61e14c0
Merge pull request #636 from dgarske/csr_ecc_rawpub
Add a CSR example using a raw ECC public key (Qx/Qy or X9.63)
2026-10-07 08:40:57 -07:00
Aidan Garske 290ef0172f
Merge pull request #628 from dgarske/nuvoton_m2354
Add Nuvoton NuMaker-M2354 wolfCrypt test and benchmark example
2026-10-01 13:16:44 -07:00
David Garske df45e5cd68 Add Nuvoton NuMaker-M2354 wolfCrypt test and benchmark example 2026-10-01 12:39:40 -07:00
David Garske 11e039f999 Add a CSR example using a raw ECC public key (Qx/Qy or X9.63) 2026-10-01 11:25:47 -07:00
Sameeh Jubran 0227d4073d
cra-kit: correct Art. 14 reporting mechanics and Art. 18 (an AR is optional); remove ROADMAP.md (#603) 2026-09-28 16:35:07 -07:00
Aidan Garske 850c4c021a
Merge pull request #635 from padelsbach/ocsp-pkcs11-fix
Remove expect_fail labels after v5.9.4 release
2026-09-28 14:49:11 -07:00
Paul Adelsbach 4a4d65b09f Remove expect_fail labels after v5.9.4 release 2026-09-27 09:54:32 -07:00
Juliusz Sosinowicz 4484273238 F-13971: ignore zero-length datagrams in the DTLS demux server
recvfrom() returns 0 for an empty UDP datagram. The server treated that
as fatal, so any peer could stop it with a single empty packet. Also
retry EINTR/EAGAIN and report other receive errors.
2026-09-24 12:50:17 +00:00
Aidan Garske 7d9ed2c72e
Merge pull request #631 from padelsbach/freebsd-version-tolerance
Address nightly failure in BSD kernel workflow
2026-09-17 15:11:52 -07:00
Paul Adelsbach 82a19ba9b1 Address nightly failure in BSD kernel workflow 2026-09-17 10:32:07 -07:00
Aidan Garske fff9e1eac8
Merge pull request #629 from padelsbach/cert-regen-2026
Update certs to fix failing nightly
2026-09-16 09:42:05 -07:00
Paul Adelsbach 6ff9c5e966 Update certs to fix failing nightly 2026-09-14 14:25:28 -07:00
Aidan Garske e691776d7f
Merge pull request #627 from dgarske/efr32xg25_cryptocb
EFR32xG25 Secure Element example
2026-09-11 09:10:55 -07:00
Aidan Garske dfc84f3d13
Merge pull request #623 from dgarske/puf_interactive_uart
puf: fix transmit-only UART HAL and add an interactive INTERACTIVE=1 demo mode
2026-09-10 16:22:44 -07:00
David Garske 269816454e EFR32xG25 Secure Element example for wolfSSL PR 11267: wolfCrypt test, benchmark and TLS 1.3 2026-09-10 16:11:49 -07:00
David Garske ef8181959e puf: fix transmit-only UART HAL and add an interactive INTERACTIVE=1 demo mode 2026-09-10 08:49:58 -07:00