wolfBoot/tools
Daniele Lacamera 35a23bf0ef F-6875: pkcs11: zeroize NSC bounce buffers before freeing them
The PKCS#11 non-secure-callable veneers deep-copy every NS attribute
value and every mechanism parameter into secure-world heap. On key
import (C_CreateObject/C_UnwrapKey/C_CopyObject/C_SetAttributeValue
carrying CKA_VALUE or the RSA private components) and on password-based
derivation (CKM_PKCS5_PBKD2 pPassword) those bounce buffers hold
plaintext secrets, but nsc_tmpl_free() and nsc_mech_free() released them
with a bare XFREE(), leaving the material in the freed secure heap block
until something else happens to overwrite it.

Scrub each block with wc_ForceZero() before releasing it. The template
values use the prepare-time snapshot length, since wolfPKCS11 rewrites
work[].ulValueLen on the C_GetAttributeValue path; nsc_alloc() now
records the length of each mechanism allocation for the same reason.

Adds unit-pkcs11-nsc-zeroize, which drives C_CreateObject_nsc_call and
C_DeriveKey_nsc_call over a secure-heap stand-in that is never cleared,
and fails if the imported key or the PBKDF2 password survives the free.
2026-08-04 08:26:17 +02:00
..
armclang Remove obvious/redundant comments 2026-07-31 16:00:14 +02:00
bin-assemble renesas-rx: fix build for GCC RX 8.3/14.2 2026-07-30 15:32:31 +02:00
check_config
ci PolarFire SoC: LPDDR4 DDR init for MPFS250T Video Kit (M-Mode) 2026-08-03 12:27:22 +02:00
delta tools/delta: check pwrite result in bmpatch 2026-07-02 17:01:28 +02:00
efi
elf-parser
fdt-parser Add wolfBoot FIT support for loading bitstream 2026-06-09 15:30:27 +02:00
keytools F-7053: sign: propagate make_header() failure to the exit status 2026-08-04 08:16:53 +02:00
lms Addressed copilot's comments 2026-04-29 13:15:52 +02:00
openocd Support for MAX32666 2026-07-31 14:33:56 +02:00
renode
scripts Add NXP T10xx (T1024/T1040) wolfIP support + flash-write fix 2026-07-30 13:29:09 +02:00
squashelf F-4692: guard squashelf segment-offset alignment against integer overflow 2026-06-10 21:01:16 +02:00
test-expect-version
test-update-server
tpm Address Copilot review comments 2026-06-09 15:52:07 +02:00
uart-flash-server F-5675: fix signed-overflow UB from uint8_t<<24 in serve_update version assembly 2026-06-11 18:53:49 +02:00
unit-tests F-6875: pkcs11: zeroize NSC bounce buffers before freeing them 2026-08-04 08:26:17 +02:00
xmss
config.mk Add support for auxillary algorithms and cert chain/TPM usage 2026-07-22 11:47:16 +02:00
test-delta.mk
test-enc.mk
test-renode.mk
test.mk Update wolfssl submodule 2026-07-31 14:33:56 +02:00
wolfboot-rpi-devicetree.diff