wolfProvider

wolfProvider lets OpenSSL 3 applications run on wolfCrypt, including FIPS 140-3. I added ML-KEM, ML-DSA, SLH-DSA, and LMS, built the FIPS CI, and fixed deployment bugs.

Role: major contributor C, OpenSSL 3.x providers, wolfCrypt FIPS wolfSSL/wolfProvider
01 / What I built

Main changes

02 / Design

One design choice

As a loaded module, wolfProvider makes a child libctx to isolate its fetches. As OpenSSL's built-in default it must use the libctx it started in. A libCtxOwned flag makes sure only a libctx it created gets freed.

03 / Debugging

A bug I fixed

On musl, programs with no OpenSSL config hung at the first crypto call. Init created a child libctx while OpenSSL held the provider store lock, and creating it takes that lock again. Replace-default builds now use the core libctx. (#530)

04 / Verification

How it was checked

PREvidence
#530New musl.yml builds on Alpine 3.20, runs unit and cmd tests, and a no-config load under a timeout.
#482New EVP_Cipher() round-trip tests for AES-128-CCM and AES-256-CCM, including tag fetch before finalize.
#460New test_dh.c case with a group whose small subgroup of order 3 passes the range check.
05 / Limits

What is not done yet

The musl job runs nightly and on labeled PRs, not every PR, so a musl-only regression can reach master before it is caught.

All my merged pull requests 89 in wolfSSL/wolfProvider
  • #530Use the core libctx when wolfProvider replaces the default provider to fix a deadlock on musl
  • #460Validate DH peer public key subgroup before key agreement
  • #495Accept the FIPS PSS salt cap in the RSA PSS salt test
  • #455Add SLH-DSA Support
  • #471Correct RSA PSS reporting digest duplication and DES3 reinitialization
  • #482Stop the one-shot AES-CCM length pass from finalizing the operation
  • #459Add LMS Support
  • #480wolfProvider 1.2.2
  • #479Low severity AES-GCM TLS compliance and hardening fixes
  • #463Resolve the wolfSSL FIPS Ready bundle at CI run time
  • #469Cover FIPS-clean EAP methods in hostap CI and enable AES key wrap for wpasupplicant FIPS
  • #470Add IVs to PBES2 test parameters
  • #453Encrypt PKCS#8 keys when a cipher is set on the PrivateKeyInfo encoder
  • #458Test ML-KEM mixed-NULL KEM requests
  • #456Skip PQC workflows on draft pull requests
  • #446Fix PR OSP concurrency collision, add triage PR comments
  • #443Fix macOS dyld lib path
  • #444Export CFLAGS/LDFLAGS before ./config so OpenSSL rpath is actually baked in
  • #441Low-severity hardening, input validation, memory safety, and zeroization fixes
  • #438Security hardening, input validation, memory-safety, and key zeroization fixes
  • #424ci: ORAS-backed OpenSSL/wolfSSL dep cache for from-source builders
  • #425fips: define DH_MIN_SIZE for the FIPS PILOT build
  • #411Add nightly OpenSSL command performance regression testing
  • #418ci: fix nightly OSP after wolfSSL v5.9.2 bump (rolling deb-tag fallback + resolve-ref retry)
  • #399Add ML-KEM and ML-DSA support
  • #409ci: move CI doc to .github/workflows/README.md so it stops overriding the repo README
  • #405ci: harden osp-triage nightly report, fix crash on large runs + silence retry message
  • #406dh: don't export FFC_Q for PKCS#3 keys (fix OpenSSL 3.6.3 DH interop)
  • #400Optimize CI for wolfProvider
  • #377Fix security review Issues in wolfProvider extend test suite coverage
  • #403ci: trigger publish-test-deps-image on PR Dockerfile changes
  • #401Fix nightly FIPS scripts CI: RPATH, dynamic wolfSSL tag, better FIPS errors
  • #402ci: bootstrap test-deps Docker image (prep for PR #400)
  • #389Negative Tests and security review Fixes
  • #354Fix RD detection when running cmdline tests
  • #349Add Static Analysis CI tools
  • #347Fix provider cmd test
  • #324Add cmd-test arguments
  • #342Use CFLAGS for RD to utilize in meta-wolfssl
  • #338Add EC public key auto derivation from private key
  • #299Add Initial FIPS support for wolfProvider Github CI
  • #290Add option to force debug output to log file
  • #286Add git test for replace default
  • #294Add FIPS version selection support
  • #269Initial support for fips ready CI testing
  • #252Add bind9 Github Workflow
  • #261Support for WOLFPROV_LEAVE_SILENT return 0 suppression
  • #259Revamp Debug Selection and Output in wolfProvider
  • #244Add libcryptsetup github workflow
  • #248Fix WPFF runtime checks for key managment functions
  • #253Fix hang with rsa cmd test and other bugs
  • #251Fix privSz for wp_dh_get_params
  • #241Add tpm2-tools github workflow
  • #238Use openvpn osp patch
  • #219Add CI Github workflow for libssh2
  • #226Add opensc/opensc-pkcs11 Github CI workflow
  • #212Add ref for pam-pkcs11 test and fix WPFF
  • #225Fix tag logic in build script
  • #223Add FIPS mode for env-setup script
  • #218Fix OOM error with macos IDE/XCODE
  • #196Fix RSA decode and empty Keygen OID with FIPS
  • #209Add `WOLFPROV_DEBUG` to simple test
  • #191Implement FIPS support for testing scripts and fix FIPS AES cmd test
  • #190Add `HAVE_GETPID` to options.h to fix `dh->ctx` override by rng
  • #177tnftp.yml - Github CI Workflow
  • #166Verify that wolfProvider loads for all workflows
  • #159Update openvpn Version to v2.6.12
  • #158Update Default Versions for `scripts/build-wolfprovider.sh`
  • #157liboauth2 CI test support
  • #145Fix Refs in `simple.yml`
  • #147Support for `build-wolfprovider.yml` workflows
  • #143net-snmp.yml - Github CI Worklfow
  • #142Add Cache Key for Openssl Version Cache / Restore
  • #138openssh.yml - Github CI Workflow
  • #140Update Github CI version refs to latest `openssl-3.5.0` and `5.8.0-stable`
  • #139Fix for failing ipmitool and grpc without WPFF
  • #123Github workflow testing support with `WOLFPROV_FORCE_FAIL=1`
  • #113ipmitool.yml - CI github workflow
  • #104openldap.yml - CI github workflow
  • #103grpc.yml - CI github workflow
  • #121Inject `WOLFPROV_FORCE_FAIL=1` after we build provider
  • #119Add `WOLFPROV_FORCE_FAIL=1` option to curl.yml test
  • #95Add Command-Line Integration Tests for AES, RSA, RSA-PSS, HASH, and ECC Operations
  • #98stunnel.yml - CI github workflow
  • #99socat.yml - CI github workflow
  • #102sssd.yml - CI Github workflow
  • #101codespell.yml - CI github workflow
  • #100multi-compiler.yml - CI Github workflow
  • #107no-sm3 and no-sm4 android prb build error fix

all work view the repository