Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
cd8ed50
Split Secure flash by category from the map and gate the non-crypto part
aidangarske Nov 18, 2026
15a0b48
Classify the HSM, vnet and conformance objects in the footprint rules
aidangarske Nov 21, 2026
edb039b
Reject manifests reaching SPM RAM or declaring two restart-clear bands
aidangarske Nov 21, 2026
ab3a290
Add the SPM core slot, transfer and constant table types
aidangarske Nov 23, 2026
5dccbaa
Generate flat service, partition and interrupt tables for the SPM core
aidangarske Nov 23, 2026
e73f896
Add a slot-based FF-M IPC core with its host suite
aidangarske Nov 23, 2026
c97b13d
Shrink the SPM core and keep handle generations across slot reuse
aidangarske Nov 23, 2026
ce44903
Keep the NS peripheral probe MPU window clear of guest switches
aidangarske Nov 23, 2026
84e86f2
Run every SPM path on the new core and remove the old FF-M runtime
aidangarske Nov 23, 2026
bf0003b
Fail the build when a call chain needs more transfers than the SPM holds
aidangarske Nov 23, 2026
ebf6c09
Build the unread SPM forensic words only with WT_FFM_FORENSICS
aidangarske Nov 24, 2026
331a9bc
Generate a constant row of guest bindings from each Non-secure domain
aidangarske Nov 24, 2026
99c868b
Bind guests from constant rows and check the manifest only on request
aidangarske Nov 24, 2026
f30eb69
Add the per-partition memory row type the generator fills
aidangarske Nov 24, 2026
cffbfdf
Generate each partition's regions, stack, restart band and policy
aidangarske Nov 24, 2026
600c0e6
Schedule and recover partitions from their generated memory rows
aidangarske Nov 24, 2026
4e9d5bb
Generate the manifest feature set as a compile time constant
aidangarske Nov 24, 2026
a444d1e
Keep the descriptive manifest out of images without the runtime check
aidangarske Nov 24, 2026
5154ca3
Count the guest binding rows as guest code in the footprint split
aidangarske Nov 24, 2026
c4593e3
Drop the unused coroutine run queue and pin switch offsets in one place
aidangarske Nov 24, 2026
e7471d3
Document the per-slot handle generation width
aidangarske Nov 24, 2026
7bfee8f
Keep the fault count and first CFSR the hardware scenarios read
aidangarske Nov 24, 2026
e06648c
Halt on a partition fault when partition restart is built out
aidangarske Nov 24, 2026
c8b457e
Quarantine a faulted guest when guest restart is built out
aidangarske Nov 24, 2026
9c83246
Widen handle generations to 24 bits and the queue ticket to 32 bits
aidangarske Nov 24, 2026
155b2dd
Refuse an unresolved or self-owned dependency when deriving SPM tables
aidangarske Nov 24, 2026
889829b
Document and build the restart and forensics options alone
aidangarske Nov 24, 2026
3d2e1b9
Declare the guest row manifest check only where it is built
aidangarske Nov 24, 2026
1cad897
Declare the privileged ops the SPM runs for its confined owners
aidangarske Nov 24, 2026
0dd77c3
Move the keystore, measurement and update ops out of the SPM dispatcher
aidangarske Nov 24, 2026
3e9cc80
Generate the Secure Partition count as a compile time constant
aidangarske Nov 24, 2026
c796137
Size the scheduled partition table by the generated partition count
aidangarske Nov 24, 2026
6e489c2
Bound the coroutine table by the generated partition and tasklet count
aidangarske Nov 24, 2026
055eb17
Drop the coroutine table entry the bootstrap never uses
aidangarske Nov 24, 2026
c94201e
Check both guest window pointer kinds with one helper
aidangarske Nov 24, 2026
9760699
Build the blocking mutex acquire on the queued acquire
aidangarske Nov 24, 2026
cb89896
Load and zero the reset memory ranges from two constant tables
aidangarske Nov 24, 2026
2ffa3cc
Scrub a restarted partition from its generated memory row
aidangarske Nov 24, 2026
4ad3ce4
Point guest rows at constant windows and regions sized by the manifest
aidangarske Nov 24, 2026
caeb01f
Validate a coroutine pointer by its offset in the table
aidangarske Nov 24, 2026
cdfbdb6
Drop the partition slot in use flag the published count already covers
aidangarske Nov 24, 2026
926bc83
Match the guest row counts before reading its constant region arrays
aidangarske Nov 24, 2026
db1d7af
Drop the secure domain stack fields nothing reads
aidangarske Nov 24, 2026
d5c775a
Check a veneer buffer against CMSE and the guest window in one call
aidangarske Nov 24, 2026
5269403
Wipe a refused boot handoff copy on one path
aidangarske Nov 24, 2026
02e0a7b
Bind the interrupt claim to link time controller hooks
aidangarske Nov 24, 2026
a3807c1
Default service transports to the partition trap on target
aidangarske Nov 24, 2026
9ccb016
Refuse a Secure Partition restart limit above 65535
aidangarske Nov 24, 2026
6db607b
Emit the Secure Partition memory rows with designated fields
aidangarske Nov 24, 2026
53abf28
Hold the Secure Partition restart limit in 16 bits
aidangarske Nov 24, 2026
e62ef2d
Default the message relay transport to the partition trap on target
aidangarske Nov 24, 2026
aee5efd
Move the host-only manifest row derivation into the test support
aidangarske Nov 24, 2026
bb1d9a7
Move the host-only Secure domain resolver into the test support
aidangarske Nov 24, 2026
30dd23c
Report the FF-M requirement IDs the SPM core suite covers
aidangarske Nov 24, 2026
05715b8
Point comments that named the removed FF-M runtime at the SPM core
aidangarske Nov 24, 2026
6309bf3
Take the SP call trims from Make and build their calls out
aidangarske Nov 24, 2026
14e6796
Let the flash classifier hold one category under its own ceiling
aidangarske Nov 24, 2026
0f5348a
Build each SP call trim in CI and refuse it with conformance
aidangarske Nov 24, 2026
4bd5d05
Refuse a conformance build with any Secure Partition call trim off
aidangarske Nov 24, 2026
93f4728
Hold each port's non-crypto and SPM flash ceilings in its port.json
aidangarske Nov 24, 2026
325e1a9
Fix the SPM slot, transfer size and partition limits in the header
aidangarske Nov 24, 2026
7479694
Refuse an SPM build with no IPC transfer
aidangarske Nov 24, 2026
ed0bf35
Check the generated Secure Partition memory rows against the manifest
aidangarske Nov 24, 2026
f8e8362
List the SPM core and footprint tools in the project structure
aidangarske Nov 24, 2026
aabf35c
Drop comparison targets from CI, comments and docs
aidangarske Nov 24, 2026
918ecec
Run the boot isolation proofs only where runtime tables can differ
aidangarske Nov 24, 2026
0ab29c8
Serve every attestation op through one read and one write path
aidangarske Nov 24, 2026
2237d42
Check the challenge and prepare once in the attestation claim builder
aidangarske Nov 24, 2026
879aaa0
Keep the guest measurement log as pointers to the pinned records
aidangarske Nov 24, 2026
a56ea94
Pass each partition's restore hook to the scheduler when it is added
aidangarske Nov 24, 2026
7f8b58c
Bump wolfCOSE and encode attestation text without UTF-8 rechecks
aidangarske Nov 24, 2026
25f179e
Keep the boot composition check in the manifest negative probe image
aidangarske Nov 25, 2026
b6cf452
Refresh the footprint docs and size ceilings for the smaller SPM
aidangarske Nov 25, 2026
68a7935
Declare the boot composition check only where it is built
aidangarske Nov 25, 2026
d10ddb5
Size the wolfHSM crypto and SPM main stacks from measured peaks
aidangarske Nov 25, 2026
3458992
Reserve the assembly crypto stack under the wolfHSM engine too
aidangarske Nov 26, 2026
7848a7c
Fail closed when attestation has no signer transport on target
aidangarske Nov 26, 2026
1a40f8a
Run the merged Fenrir host tests on the SPM core
aidangarske Nov 30, 2026
7e70c43
Hold each port's non-crypto ceilings in its own cross-compile leg
aidangarske Nov 30, 2026
d0405ad
Classify the STM32H563 GPDMA driver as platform code
aidangarske Nov 30, 2026
32a8a52
Read the GPDMA ownership registers with the probe's MPU window open
aidangarske Nov 30, 2026
9a06c21
Drop the stray preprocessor end left in the attestation service
aidangarske Nov 30, 2026
c0cc2a5
Stub the SPM core scheduler and measurement table in the restart test
aidangarske Nov 30, 2026
d8e1fad
Classify the wolfHSM AEAD object as crypto in the footprint rules
aidangarske Dec 1, 2026
ae2973f
Refresh the footprint docs for the sizes on the rebased branch
aidangarske Dec 1, 2026
125285b
Drop a second guest's prefixed banner before reading conformance totals
aidangarske Dec 1, 2026
60c92d7
Build tiny without Secure Partition and guest restart
aidangarske Dec 1, 2026
7599fb8
Pin wolfPSA to upstream master
aidangarske Dec 1, 2026
e0b4cb5
Hold every Secure stack to a free-byte floor in the emulator runs
aidangarske Dec 1, 2026
5b631ee
Keep one coroutine slot and word-align the transfer payload
aidangarske Dec 1, 2026
8e5811b
Add the Secure stack floor to the L562, MCX and RT700 ports
aidangarske Dec 1, 2026
5eeab30
List the runtime check boot and stack floor in the port checklist
aidangarske Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 34 additions & 7 deletions .github/workflows/cross-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,10 @@ jobs:
test "$linked" = "$check" || \
{ echo "WT_MANIFEST_RUNTIME_CHECK=$check linked=$linked" >&2; exit 1; }
done
# TF-M v2.3.1 level 3 tfm_s on the STM32L562E-DK is 79,680 bytes of
# flash and 45,728 bytes of RAM, partition stacks included; the
# guest-local PSA build, attestation included as in TF-M, must stay below
# both (docs/TF-M-Compatibility.md). A port's linked RAM code band is allowed.
- name: Check the guest-local PSA footprint against TF-M level 3
# The guest-local PSA build, attestation included, stays under a fixed
# flash and Secure RAM budget, partition stacks included. A port's
# linked RAM code band is allowed on top.
- name: Hold the guest-local PSA image under its flash and RAM budget
if: matrix.leg != 'common'
run: |
budget=79680
Expand All @@ -171,10 +170,28 @@ jobs:
| awk 'NR == 2 { print $1 + $2 }')
echo "$target guest-local PSA flash: $flash bytes (budget $budget)"
test "$flash" -le "$budget" || \
{ echo "FAIL: $target guest-local PSA build exceeds the TF-M level 3 budget" >&2; exit 1; }
{ echo "FAIL: $target guest-local PSA build exceeds its flash budget" >&2; exit 1; }
python3 tools/secure_ram.py --base-max 45728 \
build_budget_$target/wolftrust.map
done
# Non-crypto flash, split by tools/footprint/classify.py from the
# non-LTO map. Each port's port.json holds its non-crypto and SPM
# ceilings; lower them as size work lands.
- name: Hold the non-crypto and SPM Secure flash under their ceilings
if: matrix.leg != 'common'
run: |
for target in $WT_CI_PORT; do
noncrypto_max=$(python3 tests/target/lib/scenario_matrix.py --port $target \
--get build.noncrypto_max)
spm_max=$(python3 tests/target/lib/scenario_matrix.py --port $target \
--get build.spm_max)
make TARGET=$target WT_ENGINE=native WT_ATTEST_COSE=1 WT_LTO=0 secure-image \
TOOLPREFIX=arm-none-eabi- BUILD_DIR=build_noncrypto_$target
python3 tools/footprint/classify.py build_noncrypto_$target/wolftrust.map \
--rules tools/footprint/wolftrust.rules \
--elf build_noncrypto_$target/wolftrust.elf --max $noncrypto_max \
--category-max spm=$spm_max
done
- name: Build every port's extended-profile secure image (every engine)
if: matrix.leg != 'common'
run: |
Expand All @@ -195,10 +212,20 @@ jobs:
exit 1
fi
grep -q 'unsupported WT_MAX_GUESTS' guests.err
# The Arm suite calls every trimmable Secure Partition API.
for bad in "WT_CONFORMANCE=1 WT_FFM_SP_SKIP=0" "WT_CONFORMANCE=1 WT_FFM_SP_DOORBELL=0 WT_FFM_SP_SKIP=0" "WT_FFM_SP_DOORBELL=2"; do
# shellcheck disable=SC2086
if make $bad BUILD_DIR=build-trims-bad secure-image \
TOOLPREFIX=arm-none-eabi- 2> trims.err; then
echo "FAIL: $bad built" >&2
exit 1
fi
grep -q 'WT_FFM_SP_' trims.err
done
- name: Build every add-on alone for every port (every engine)
if: matrix.leg != 'common'
run: |
for flag in WT_MAX_GUESTS=2 WT_FWU=1 WT_SHA256_FAST=1 WT_WOLFCRYPT_SP_ASM=1 WT_WOLFCRYPT_ARMASM=1; do
for flag in WT_MAX_GUESTS=2 WT_FWU=1 WT_SHA256_FAST=1 WT_FFM_FORENSICS=1 WT_SP_RESTART=0 WT_GUEST_RESTART=0 WT_FFM_SP_DOORBELL=0 WT_FFM_SP_RHANDLE=0 WT_FFM_SP_SKIP=0 WT_WOLFCRYPT_SP_ASM=1 WT_WOLFCRYPT_ARMASM=1; do
for target in $WT_CI_PORT; do
for engine in $(python3 tests/target/lib/scenario_matrix.py --port $target --get build.engines); do
dir=build_addon_${target}_${engine}_${flag%%=*}
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ tests/host/wolfhsm_loopback/test_loopback
tests/host/domain/build/
tests/host/manifest/build/
tests/host/lifecycle/build/
tests/host/ipc/build/
tests/host/spm/build/
tests/host/build/
tests/host/*/build/
Expand Down
36 changes: 11 additions & 25 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ include mk/common.mk
test-vnet test-vnet-target test-vnet-hardware \
test-lifecycle-host test-lifecycle-compilers test-lifecycle-sanitize \
test-lifecycle-valgrind \
test-ipc-host test-ipc-compilers test-ipc-sanitize \
test-ipc-valgrind test-ffm-host test-ffm-compilers \
test-ffm-sanitize test-ffm-valgrind \
test-spm-core-host test-spm-core-compilers \
test-spm-core-sanitize test-spm-core-valgrind \
test-spm-host test-spm-compilers \
test-spm-sanitize test-spm-valgrind \
test-wolfcose-host \
Expand Down Expand Up @@ -174,8 +173,7 @@ clean:
$(MAKE) -C tests/host/domain clean
$(MAKE) -C tests/host/manifest clean
$(MAKE) -C tests/host/lifecycle clean
$(MAKE) -C tests/host/ipc clean
$(MAKE) -C tests/host/ffm clean
$(MAKE) -C tests/host/spm_core clean
$(MAKE) -C tests/host/ffm_domain clean
$(MAKE) -C tests/host/ffm_veneer clean
$(MAKE) -C tests/host/sp_layout clean
Expand Down Expand Up @@ -221,29 +219,17 @@ test-lifecycle-sanitize:
test-lifecycle-valgrind:
$(MAKE) -C tests/host/lifecycle valgrind

test-ipc-host:
$(MAKE) -C tests/host/ipc run
test-spm-core-host:
$(MAKE) -C tests/host/spm_core run

test-ipc-compilers:
$(MAKE) -C tests/host/ipc compilers
test-spm-core-compilers:
$(MAKE) -C tests/host/spm_core compilers

test-ipc-sanitize:
$(MAKE) -C tests/host/ipc sanitize
test-spm-core-sanitize:
$(MAKE) -C tests/host/spm_core sanitize

test-ipc-valgrind:
$(MAKE) -C tests/host/ipc valgrind

test-ffm-host:
$(MAKE) -C tests/host/ffm run

test-ffm-compilers:
$(MAKE) -C tests/host/ffm compilers

test-ffm-sanitize:
$(MAKE) -C tests/host/ffm sanitize

test-ffm-valgrind:
$(MAKE) -C tests/host/ffm valgrind
test-spm-core-valgrind:
$(MAKE) -C tests/host/spm_core valgrind

test-spm-host:
$(MAKE) -C tests/host/spm run
Expand Down
47 changes: 23 additions & 24 deletions docs/Crypto-Engines.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ Both builds use the same five CMSE veneers, generated manifest, service IDs,
SPM-owned caller identity, copied IOVEC rules, isolation bands, storage
services, attestation service, firmware-update service, and Secure Partition
recovery path. The STM32H563 manifest requests isolation profile 3 in both
builds. That value is wolfTrust's validated policy profile, not proof of
independent TF-M Level 3 code and data isolation.
builds. That value is wolfTrust's validated policy profile.

## At a glance

Expand All @@ -29,8 +28,8 @@ independent TF-M Level 3 code and data isolation.

By default the native engine serves all of PSA Crypto, its keys and its
operation state from the Secure image
([`WT_SECURE_PSA=1`](#psa-crypto-in-the-secure-image-wt_secure_psa1)), as
TF-M's Crypto partition does. `WT_SECURE_PSA=0` is the smaller opt-out: the
([`WT_SECURE_PSA=1`](#psa-crypto-in-the-secure-image-wt_secure_psa1)).
`WT_SECURE_PSA=0` is the smaller opt-out: the
guest runs wolfPSA and wolfCrypt itself, so its volatile keys stay in
Non-secure memory. The native wire is a separate explicit interface for
vault-backed key operations. Secure services such as attestation use that vault
Expand Down Expand Up @@ -168,7 +167,7 @@ Ownership and lifetime:
- Persistent keys accept only `PSA_KEY_ID_USER_MIN..PSA_KEY_ID_USER_MAX` and
are stored as vault objects namespaced by client ID, so two guests can use
the same key ID. A new image in the same guest slot inherits that slot's
persistent keys, as in TF-M. Builtin and vendor key IDs, including the IAK,
persistent keys. Builtin and vendor key IDs, including the IAK,
are not reachable from the Non-secure side.

Transport and memory:
Expand Down Expand Up @@ -200,15 +199,15 @@ includes too:

| Profile | Algorithms | STM32H563 Secure flash / RAM |
| --- | --- | ---: |
| `tiny` | `small` without ECC in the PSA surface; ECC key imports and generation return `PSA_ERROR_NOT_SUPPORTED` | 87,551 / 47,344 |
| `small` | `default` with one AEAD, CCM (`WT_AEAD=gcm` swaps it for GCM), and no AES decryption | 91,207 / 47,344 |
| `default` (default) | P-256 ECDSA (random nonce) and ECDH, AES-GCM, CCM and CTR, SHA-256, HMAC, HKDF | 94,343 / 47,344 |
| `extended` | The reference guest's set: `default` plus deterministic ECDSA, CBC and ECB, PBKDF2, SP 800-108 counter KDF, TLS 1.2 PRF, CCM* without a tag | 106,069 / 48,368 |
| `tiny` | `small` without ECC in the PSA surface; ECC key imports and generation return `PSA_ERROR_NOT_SUPPORTED` | 79,299 / 39,744 |
| `small` | `default` with one AEAD, CCM (`WT_AEAD=gcm` swaps it for GCM), and no AES decryption | 82,955 / 39,744 |
| `default` (default) | P-256 ECDSA (random nonce) and ECDH, AES-GCM, CCM and CTR, SHA-256, HMAC, HKDF | 86,091 / 39,744 |
| `extended` | The reference guest's set: `default` plus deterministic ECDSA, CBC and ECB, PBKDF2, SP 800-108 counter KDF, TLS 1.2 PRF, CCM* without a tag | 97,813 / 40,768 |

Every profile but `extended` signs, verifies and agrees keys on wolfPSA's direct
P-256 path over wolfCrypt's SP code, so `ecc.c` and the multi-precision math
leave the image; `extended` keeps them for deterministic ECDSA. With
`WT_AEAD=gcm`, `small` is 92,647 bytes and `tiny` 88,991.
`WT_AEAD=gcm`, `small` is 84,395 bytes and `tiny` 80,739.

The `tiny` row is the algorithm set alone, `WT_SECURE_PSA_PROFILE=tiny`: the
attestation key and the vault's keys still use P-256 there.
Expand All @@ -219,7 +218,7 @@ big-number code at all ([ECC options](Macros.md#ecc-options)).
RAM is the Secure RAM the image reserves. The crypto partition's stack is 6 KiB
in `extended` for `ecc.c`'s ECDSA and 5 KiB in the other profiles, as with
`WT_SECURE_PSA=0`; its data band grows from 1.5 KiB to `WT_PSA_POOL_BYTES` plus
1.5 KiB. The opt-out, `WT_SECURE_PSA=0`, is 70,780 / 45,296 bytes. The PSA
1.5 KiB. The opt-out, `WT_SECURE_PSA=0`, is 62,560 / 37,696 bytes. The PSA
guest drops from 65,384 to 34,600 bytes of flash; it keeps wolfCrypt only for
the attestation token verifier.

Expand Down Expand Up @@ -366,7 +365,7 @@ The Secure image and both guest images must use the same engine. See

## Measured Secure-image cost

These Secure-image measurements were taken on 2026-11-24 with Arm GNU 15.2.1
These Secure-image measurements were taken on 2026-11-25 with Arm GNU 15.2.1
in `ghcr.io/wolfssl/wolfboot-ci-m33mu:v1.25`, LTO on, and the repository
defaults other than the engine, the profile and the output directory:

Expand All @@ -389,23 +388,23 @@ wolfBoot and Non-secure guest images are not included.

| Engine and profile | `text` | `data` | `bss` | Flash | Secure RAM |
| --- | ---: | ---: | ---: | ---: | ---: |
| Native, `default` | 93,951 bytes | 392 bytes | 20,768 bytes | 94,343 bytes | 47,344 bytes |
| Native, `small` | 90,815 bytes | 392 bytes | 20,768 bytes | 91,207 bytes | 47,344 bytes |
| Native, `default`, `WT_SECURE_PSA_PROFILE=extended` | 105,673 bytes | 396 bytes | 20,768 bytes | 106,069 bytes | 48,368 bytes |
| Native, `WT_SECURE_PSA=0` | 70,396 bytes | 384 bytes | 18,376 bytes | 70,780 bytes | 45,296 bytes |
| wolfHSM, default | 98,776 bytes | 392 bytes | 40,684 bytes | 99,168 bytes | 83,968 bytes |
| wolfHSM over native `WT_SECURE_PSA=0` | 28,380 bytes | 8 bytes | 22,308 bytes | 28,388 bytes | 38,672 bytes |
| Native, `extended` | 115,096 bytes | 732 bytes | 31,872 bytes | 115,828 bytes | 63,908 bytes |
| Native, `extended`, `WT_SECURE_PSA=0` | 79,468 bytes | 720 bytes | 27,432 bytes | 80,188 bytes | 58,788 bytes |
| wolfHSM, `extended` | 108,260 bytes | 728 bytes | 66,544 bytes | 108,988 bytes | 107,956 bytes |
| Native, `default` | 86,035 bytes | 56 bytes | 14,528 bytes | 86,091 bytes | 39,744 bytes |
| Native, `small` | 82,899 bytes | 56 bytes | 14,528 bytes | 82,955 bytes | 39,744 bytes |
| Native, `default`, `WT_SECURE_PSA_PROFILE=extended` | 97,753 bytes | 60 bytes | 14,528 bytes | 97,813 bytes | 40,768 bytes |
| Native, `WT_SECURE_PSA=0` | 62,512 bytes | 48 bytes | 12,136 bytes | 62,560 bytes | 37,696 bytes |
| wolfHSM, default | 90,888 bytes | 56 bytes | 34,488 bytes | 90,944 bytes | 72,316 bytes |
| wolfHSM over native `WT_SECURE_PSA=0` | 28,376 bytes | 8 bytes | 22,352 bytes | 28,384 bytes | 34,620 bytes |
| Native, `extended` | 109,620 bytes | 60 bytes | 21,420 bytes | 109,680 bytes | 51,760 bytes |
| Native, `extended`, `WT_SECURE_PSA=0` | 73,992 bytes | 48 bytes | 16,980 bytes | 74,040 bytes | 46,640 bytes |
| wolfHSM, `extended` | 102,784 bytes | 56 bytes | 56,180 bytes | 102,840 bytes | 91,800 bytes |

### Stack contribution

The wolfHSM engine adds one server tasklet stack slot per guest. The default
image has one guest and one 10,496-byte slot (10,240-byte stack plus a
256-byte underflow guard). The rest of the 38,672-byte Secure RAM difference
is the crypto partition's larger stack (10 KiB instead of 5 KiB, since the
wolfHSM server peaks at 7,608 bytes on it) and its larger data band (24 KiB
256-byte underflow guard). The rest of the 34,620-byte Secure RAM difference
is the crypto partition's larger stack (6 KiB instead of 5 KiB; the wolfHSM
server peaked at 4,856 bytes on it in the 2026-11-25 M33MU runs) and its larger data band (24 KiB
instead of 1.5 KiB), which holds the server, protocol and per-guest state. With
`WT_MAX_GUESTS=2` (the `extended` profile):

Expand Down
Loading
Loading