1
0
mirror of https://github.com/wolfSSL/wolfssl.git synced 2026-10-24 04:09:07 +03:00

9 Commits

Author SHA1 Message Date
Yosuke Shimizu
b5c84cc45a Reject out-of-range SHE counter, flags and key IDs 2026-08-13 08:18:24 +09:00
Daniele Lacamera
b5c67536f9 tests: address review feedback on the Part 5 tests
Include <limits.h> in test_compress.c rather than relying on another
header pulling it in for INT_MAX.

Free wc_PKCS12_parse's outputs with the types it allocates them with:
DYNAMIC_TYPE_PUBLIC_KEY for the key and DYNAMIC_TYPE_PKCS for the cert
buffer, which comes from a WC_DerCertList node. The white-box was using
PRIVATE_KEY/CERT, which misaccounts under memory tracking.

Run the SHE argument guards only on a context wc_SHE_Init() accepted,
since `she` is an uninitialised stack object otherwise.

Note in test_port.c that wc_strlcpy returns the number of bytes copied
rather than XSTRLEN(src) as BSD strlcpy does, so the truncating call is
expected to report 2.
2026-08-07 09:27:42 +02:00
Daniele Lacamera
a123863e92 tests: add she DecisionCoverage case
wc_SHE_GenerateM1M2M3 and wc_SHE_GenerateM4M5 have a 12-operand and an
8-operand argument OR that account for 20 of wc_she.c's 23 uncovered
conditions; the group's other tests only pass valid arguments. One call
per operand.
2026-08-07 09:27:42 +02:00
night1rider
64a1ac8dd2 wc_SHE_ImportM1M2M3: fix guard from || to && so it gates on WOLF_CRYPTO_CB 2026-04-15 18:03:39 -06:00
night1rider
1078e797f8 Fix CMake SHE deps, const-correctness in CryptoCb uid, stale comment, XSTRLEN double call, configure.ac AES-CBC guard, and add LoadKey/LoadKey_Verify test coverage 2026-04-15 11:28:03 -06:00
night1rider
f081a08c5c Address comments from bigbrett and Fenrir bot. Rename she.{c,h} to wc_she.{c,h}, fix naming consistency, auto-enable CMAC/AES dependencies, add WC_SHE_SW_DEFAULT opt-inAddress PR #10009 review comments from bigbrett and Fenrir 2026-04-15 11:28:03 -06:00
night1rider
802c34018c Add more in depth comments in header file for she.h 2026-04-15 11:28:03 -06:00
night1rider
ee7fe9e1b1 SHE API: remove key storage from context, add direct output params 2026-04-15 11:28:03 -06:00
night1rider
eeedc470e9 Add SHE (Secure Hardware Extension) support to wolfCrypt 2026-04-15 11:27:44 -06:00