wolfBoot/tools
Daniele Lacamera 6dabdad01e F-12114: pkcs11: wipe the login PIN in crypto deinit
pkcs11_pin is a file-scope copy of the compile-time credential
passed to C_Login() for the token holding the firmware-decryption
key. pkcs11_crypto_deinit() runs on the pre-handoff path but only
closed the session, leaving the credential in retained bootloader
memory where a post-handoff attacker could recover it and
authenticate to the token.

Wipe the copy (volatile zeroize) after the final C_CloseSession().
No re-init path exists after deinit in the product flow (init is
only called from the verification paths), so wiping inside the
deinit is safe.

Add unit-pkcs11-pin-zeroize: a full init/deinit cycle with a
stubbed PKCS#11 backend that asserts the pin copy is all zero
after deinit and the session was closed, plus a no-session deinit
safety case.

Verification: unit-pkcs11-pin-zeroize 1/2 pre-fix (pin byte 0 not
wiped), 2/2 post-fix; full unit suite green; sim build green;
kontron_vx3060_s2 CI build green.
2026-09-02 12:15:51 +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 ci: add pic32cz stub build 2026-08-28 13:11:26 +02:00
delta
efi efi: sign the x86_64_efi reference kernel with an authenticated HDR_CMDLINE 2026-08-10 21:03:50 +02:00
elf-parser
fdt-parser fdt: rewrite device tree parser with capacity bound and full validation 2026-09-02 10:48:52 +02:00
fs-test update_disk: load signed image from a file when a filesystem is present 2026-09-02 10:47:33 +02:00
keytools fdt: rewrite device tree parser with capacity bound and full validation 2026-09-02 10:48:52 +02:00
lms
openocd Support for MAX32666 2026-07-31 14:33:56 +02:00
renode
sbom sbom: re-vendor wolfGlass at b44ae8d 2026-08-20 15:22:16 +02:00
scripts update_disk: load signed image from a file when a filesystem is present 2026-09-02 10:47:33 +02:00
squashelf add O_BINARY flag for msys2/windows builds 2026-08-11 08:35:12 -06:00
test-expect-version
test-update-server
tpm
uart-flash-server
unit-tests F-12114: pkcs11: wipe the login PIN in crypto deinit 2026-09-02 12:15:51 +02:00
xmss
config.mk
test-delta.mk
test-enc.mk
test-renode.mk
test.mk lib/wolfssl: bump to ti_c25 merge (e71b086fc) for CHAR_BIT!=8 wide-byte support 2026-08-25 00:01:33 +02:00
wolfboot-rpi-devicetree.diff