Skip to content

Add a simple wolfentropy example - #656

Open
kaleb-himes wants to merge 1 commit into
wolfSSL:masterfrom
kaleb-himes:wolfentropy-example
Open

kaleb-himes wants to merge 1 commit into
wolfSSL:masterfrom
kaleb-himes:wolfentropy-example

Conversation

@kaleb-himes

@kaleb-himes kaleb-himes commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

ZD 22859

Copilot AI balanced review requested due to automatic review settings November 18, 2026 15:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new example lacks a required manifest entry, causing the Coverage gate to fail, and its unconditional options.h include prevents compilation in documented non-autoconf user-settings builds.

2 open issues
What changed in this PR

Adds a standalone wolfEntropy example demonstrating entropy health checks and random-byte generation with wolfSSL.

Changes:

  • Demonstrates initialization, version reporting, on-demand health tests, direct entropy retrieval, and RNG use.
  • Documents wolfEntropy configuration, build steps, and relevant APIs.
  • Adds a Makefile with a configurable wolfSSL installation path.
File Description
wolfentropy-example/​wolfentropy_example.c Implements the example with error handling and cleanup.
wolfentropy-example/​README.md Documents setup, usage, configuration options, and sample output.
wolfentropy-example/​Makefile Provides build and clean targets.

Review effort: Balanced

CFLAGS = -Wall -I$(WOLFSSL_INSTALL_DIR)/include
LIBS = -L$(WOLFSSL_INSTALL_DIR)/lib -lwolfssl

all: wolfentropy_example
* Shows the version, an on demand health test, direct entropy, and the RNG.
*/

#include <wolfssl/options.h>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants