wolfSSL
wolfSSL is an embedded TLS library and crypto engine in C. I contribute ports, footprint profiles and security fixes, including the Agilex 5 crypto offload and heap-free X.509.
Main changes
- Added a wolfCrypt port offloading RNG, SHA-256, AES, ECC and HMAC verification to the Agilex 5 Secure Device Manager.#11042
- Made X.509 parsing work with no heap under WOLFSSL_NO_MALLOC, so embedded builds validate chains without dynamic memory.#10821
- Added the --enable-tinytls13 TLS 1.3 only footprint profile with PSK and certificate variants.#10751
- Built out the wolfCrypt C# wrapper: RNG, ECC, RSA, Ed25519, Curve25519, AES-GCM, hashing and its CI.#3166
- Fixed sniffer and EVP ARIA GCM security bugs, plus others across PKCS#11, PKCS#7 and ASN.1.#11589 #11594
One design choice
The Agilex 5 port values key isolation over speed, since ARMv8 crypto is faster for bulk work. ECC keys are created on the device and never exist in HPS memory. If the device is unavailable, operations fail with WC_HW_E instead of falling back to a software key.
A bug I fixed
The sniffer sized its handshake reassembly buffer from the peer's claimed message length and miscomputed record ends. The fix grows the buffer with bytes actually received, doubling up to the claimed size, rejects messages above MAX_HANDSHAKE_SZ, and subtracts MAC and padding. (#11589)
How it was checked
| PR | Evidence |
|---|---|
| #11589 | Regression splits a Certificate into one-byte records in one TCP packet and runs snifftest on it. |
| #10821 | cert_no_malloc_test checks key and SAN names point inside the source DER; a no-malloc workflow runs it. |
| #10751 | Cortex-M33 flash measured at 30.1 KB for the PSK X25519 floor and 61.3 KB for ECDSA P-256 certificates. |
What is not done yet
Under no-heap X.509, IP and RID alt names fail closed and the SAN list is a fixed pool of 8. The tiny cert profile is not for public PKI.
All my merged pull requests 59 in wolfSSL/wolfssl
- #12162Drop Contiki entropy tests and guard left after Contiki removal
- #11788Remove Contiki support
- #11594Require fresh IVs for EVP ARIA GCM
- #12069Declare wc_ForceZero once across memory.h and wc_compat.h
- #11784Remove legacy MySQL build snippets
- #11779Remove Kinetis Design Studio project
- #11783Remove pre-MDK5 Keil projects
- #11787Remove Apache Mynewt support
- #11795Remove LSR profile
- #11791Remove EROAD profile
- #11789Remove direct CryptoCell 310 support
- #11796Remove picoTCP support
- #11797Remove QL profile
- #11794Remove Intel Galileo support
- #11793Remove game build support
- #11782Remove Visual Studio ARM project
- #11781Remove LPCXpresso project
- #11790Remove nRF51 AES acceleration
- #11778Remove OPENSTM32 project mentions
- #11780Remove TrueSTUDIO project
- #11798Remove Whitewood netRandom support
- #11589Bound sniffer handshakes to their records
- #11042Add Altera Agilex 5 SDM crypto offload port
- #11349Add wolfCOSE and wolfIP compatibility checks
- #11346Harden QNX CAAM memory handling
- #11230Preserve binary ALPN names via length-aware storage
- #11339Reject empty PKCS11 ECDSA integers
- #11239Skip CertManager verify callback for internal cert errors
- #11504Fix custom RNG initialization cleanup
- #11223Clamp ColdFire AES-CBC chunk to remaining length
- #11229Check GrowAnOutputBuffer result in threaded crypt SendData
- #11228Encode default cert validity as UTCTime through 2049
- #10878Low-severity security hardening across TLS, X.509, PKCS#7/12, DTLS 1.3, QUIC, and the sniffer
- #10975Move WOLFSSL_X509_TINY test to the unit test suite and run
- #10954Set label and ID on PKCS11 EC public key
- #10979Route wc_MlDsaKey_SignCtx through the crypto callback before the prvKeySet check for device keys
- #10922Enforce RFC 5280 extension MUSTs under WOLFSSL_NO_ASN_STRICT and validate DTLS 1.3 legacy_session_id echo
- #10936Check ctx extensions before rejecting a TLS1.3 certificate message extension
- #10904Fix PKCS7 streamed SignedData dropping content
- #10823Add WOLFSSL_X509_TINY minimal-extension profile + WOLFSSL_X509_VERIFY_ONLY
- #10704Length Width Hardening
- #10821Add true zero-allocation X.509 certificate verification under WOLFSSL_NO_MALLOC
- #10788Various hardening fixes across sniffer, QUIC, PKCS#11, TLS and tooling
- #10809Reject name constraint subtree with non-zero minimum or maximum
- #10751Add --enable-tinytls13 TLS 1.3-only footprint profile
- #10603PQC enforce modulus and eta range checks in DecodePrivateKey
- #10155Add Negative Testing and Zeroization
- #9931Fix a security review finding
- #9830Fix security review findings for wolfcrypt
- #8382Added neccesary macros when building wolfTPM Zephyr with wolfSSL
- #7771`InitSuites` changes to order making `BUILD_TLS_AES_256_GCM_SHA384` be prioritized over `BUILD_TLS_AES_128_GCM_SHA256`
- #3166wolfCrypt CSharp Wrapper (my commits; PR opened by a colleague)
- #7791`api.c` and `asn.c` changes to allow 0 to be passed in and expanded coverage on test cases.
- #7704Added PKCS7 PEM support:
- #7700ecc.c and test.c changes to add support in ecc_sign_determinsitic.c
- #7705Sha3.c wc_Sha3Update and wc_Sha3Final Hash Type Change
- #7670Added crypto callback for SHA3.
- #7582Revert change from PR #7570
- #7573Add test for HPKE for Curve448