Commit Graph

1574 Commits (devin/1741050294-optimize-memory-buckets)

Author SHA1 Message Date
Devin AI e0a2f1dd3c Update README with IDE parsing information
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 15:49:23 +00:00
Devin AI baae537c53 Fix memory bucket optimizer and add WOLFSSL_NO_MALLOC testing
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 15:40:30 +00:00
Devin AI 4cf2261e01 Add test script for WOLFSSL_NO_MALLOC and update README
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 15:19:58 +00:00
Devin AI 6aa87008b2 Update scripts to accept wolfSSL directory as argument
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 15:18:28 +00:00
Devin AI abb76a4089 Add copyright notices and comprehensive documentation
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 02:03:21 +00:00
Devin AI 5b99a977e5 Fix all absolute paths in visualization scripts for portability
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 01:59:04 +00:00
Devin AI 3eefff4704 Fix remaining absolute paths in visualization scripts
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 01:55:42 +00:00
Devin AI c19a1cb497 Fix absolute paths in visualization scripts
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 01:55:16 +00:00
Devin AI 576fa7c13a Add visualization scripts and update documentation
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 01:52:38 +00:00
Devin AI 2e993c42b4 Add memory usage comparison script
This script compares memory usage between default and optimized bucket
configurations, showing the improvement in terms of reduced memory waste.
It also generates visualization data for easy comparison.

Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 01:19:36 +00:00
Devin AI 9fcc577479 Update documentation with SBOM and detailed instructions
This commit adds:
1. Comprehensive README.md with stack components and running instructions
2. Software Bill of Materials (SBOM) in table format
3. Detailed visualization documentation
4. Directory structure and algorithm description

Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 01:13:23 +00:00
Devin AI 405fc99e83 Add test script for different TLS operations
This script tests the memory bucket optimizer with different TLS operations:
- TLS 1.2 and TLS 1.3 connections
- Different server configurations (Google, Cloudflare)
- Session resumption
- Non-blocking mode

The script generates a summary of the results showing the number of
allocations, unique sizes, largest bucket, and total waste for each test.

Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 01:13:06 +00:00
Devin AI c7a8831708 Update TLS example to better handle missing static memory support
The TLS example now:
1. Shows example bucket configurations even when static memory is disabled
2. Better handles missing static memory functions
3. Improves error messages and instructions

Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 01:07:30 +00:00
Devin AI 592e088800 Add memory bucket optimizer tool
This commit adds a tool to analyze memory allocation patterns from wolfSSL
operations and recommend optimal static memory bucket configurations to
minimize wasted memory. The tool includes:

- Memory bucket optimizer that analyzes allocation logs
- Example application demonstrating optimized bucket usage
- Visualization scripts using gnuplot
- Scripts to run optimization for different TLS operations

The tool helps users find optimal WOLFMEM_BUCKETS and WOLFMEM_DIST
configurations for their specific use cases.

Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 01:04:54 +00:00
Reda Chouk dc36abdfd4
Merge pull request #491 from wolfSSL/devin/1740502756-add-freertos-fullstack-example
Add FreeRTOS + wolfIP + wolfSSL HTTPS example
2025-03-03 16:58:43 +01:00
Devin AI 468fd86664 PR #491: Address review comments
- Remove autogen.sh and configure commands
- Fix path to ../../../../ for cmake
- Remove redundant build dir creation
- Add sudo make install for wolfSSL

Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
2025-03-03 15:55:15 +00:00
Devin AI ced6ae7b53 PR #491: Fix build command in README.md (make -> mkdir)
Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
2025-02-27 18:23:13 +00:00
Devin AI a57b09bed1 PR #491: Improve setup script and build instructions
- Add --depth=1 to git clone commands for faster downloads
- Integrate wolfSSL and wolfIP setup into setup.sh
- Simplify build instructions in README.md

Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
2025-02-27 18:22:54 +00:00
Daniele Lacamera 34ec4140c7 Fixes for the https fullstack-simulator demo 2025-02-27 17:19:16 +01:00
Devin AI 6d9670101b Add FreeRTOS + wolfIP + wolfSSL HTTPS example
This example demonstrates a full-stack embedded networking application using:
- FreeRTOS (POSIX port) for RTOS simulation
- wolfIP for zero-allocation networking
- wolfSSL for TLS 1.3 security

Features:
- Virtual networking through TAP interface
- HTTPS server with TLS 1.3
- UDP echo server for testing
- Comprehensive test scripts

Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
2025-02-25 16:59:16 +00:00
Juliusz Sosinowicz 85733255d7
Merge pull request #487 from gasbytes/timeout-dtls-examples
Added OS-level timeout support for the DTLS I/O callbacks examples
2025-02-25 15:47:45 +01:00
Reda Chouk 7daf133366 Added OS-level timeout support for the DTLS I/O callbacks examples 2025-02-25 15:29:25 +01:00
Devin AI f126104b53 Add UDP echo server and fix wolfIP socket integration
Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
2025-02-21 13:16:55 +00:00
Devin AI 7617c270a2 Fix wolfIP build integration and add random number generator
Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
2025-02-21 13:09:14 +00:00
Devin AI e1f6c36bd7 Add POSIX port utilities for FreeRTOS simulation
Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
2025-02-21 13:00:40 +00:00
Devin AI 338ccaad16 Update CMakeLists.txt with test application build configuration
Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
2025-02-21 13:00:20 +00:00
Devin AI 948f86a844 Add test application for FreeRTOS simulation
Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
2025-02-21 13:00:03 +00:00
Devin AI 3e74bebd17 Add CMake configuration and FreeRTOS POSIX simulation config
Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
2025-02-21 12:59:23 +00:00
Devin AI 4275b4e94b Update setup script and add .gitignore for FreeRTOS fullstack example
Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
2025-02-21 12:58:53 +00:00
Devin AI 6e6e7e6b8f Add FreeRTOS setup script for fullstack example
Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
2025-02-21 12:58:06 +00:00
Sean Parkinson 702d54ca18
Merge pull request #486 from anhu/pq_update
PQ update. Prepare for OQS deprecation.
2025-02-07 08:04:55 +10:00
Anthony Hu 358e4a2a04 PQ update. Prepare for OQS deprecation. 2025-02-06 14:46:24 -05:00
JacobBarthelmeh 163395fa51
Merge pull request #483 from philljj/fix_rsa_mldsa_example
fix rsa mldsa example.
2025-01-28 08:16:58 -07:00
jordan 551f73f3ab fix rsa mldsa example. 2025-01-27 12:33:54 -05:00
David Garske 3ec0c4b1a2
Merge pull request #472 from julek-wolfssl/dtls-server-demux
DTLS: Add server single socket demultiplexing example
2025-01-27 07:51:16 -08:00
David Garske 57846b1f40
Merge pull request #481 from JacobBarthelmeh/store
add x509 store verify example
2025-01-24 12:57:53 -08:00
JacobBarthelmeh cfbde0cfd8 initialize ret value 2025-01-24 13:29:01 -07:00
David Garske 94193d04f6
Merge pull request #479 from philljj/fix_mldsa_dual
Fix gen_ecdsa_mldsa_dual_keysig_cert example.
2025-01-24 12:10:56 -08:00
jordan 0615115861 X9.146: fix ecdsa mldsa example, update mldsa keys, fix typo. 2025-01-24 14:06:08 -05:00
JacobBarthelmeh 47dac4432e update README 2025-01-24 11:55:26 -07:00
JacobBarthelmeh ba898e7adb add x509 store verify example 2025-01-24 11:03:17 -07:00
Daniel Pouzzner 38c5e5d952
Merge pull request #477 from JacobBarthelmeh/bio_dtls
add DTLS bio example
2025-01-21 00:08:15 -06:00
David Garske ae1097d6ed
Merge pull request #478 from JacobBarthelmeh/smime
print out signed attribute
2025-01-20 16:48:14 -08:00
JacobBarthelmeh a182509c92 print out signed attribute 2025-01-07 10:31:37 -07:00
David Garske 8775b5c06d Minor improvements. Tested with RSA and ECC for both DTLS v1.2 and v1.3. Tested with/without calling accept/connect. Tested with calling `wolfSSL_is_init_finished`. 2025-01-03 11:59:26 -08:00
JacobBarthelmeh 8ec1a5e14a add DTLS bio example 2025-01-03 12:08:05 -07:00
David Garske 63893d5af9
Merge pull request #475 from LinuxJedi/STM32
Add STM32 README.md
2024-12-21 07:16:57 -08:00
Daniel Pouzzner 137ed22a34
Merge pull request #470 from anhu/nonblock_timeout
Use the timeout value for non-blocking
2024-12-16 21:01:23 -06:00
JacobBarthelmeh bee7a18993
Merge pull request #474 from cconlon/android574FipsReady
Update Android NDK Gradle example for wolfSSL 5.7.4 FIPS Ready
2024-12-09 11:00:22 -07:00
Andrew Hutchings ba95b31d1b Add STM32 README.md
Points to the `wolfSSL/wolfssl-examples-stm32` respository.
2024-12-05 15:28:20 +00:00