Sizing HSM Verification Headroom for the Day a Core Goes Dark
Peak MAC throughput does not tell you whether an in-vehicle HSM survives a partial failure. What tells you is the load the remaining resources carry once a core, a key slot or a DMA channel is gone. A central gateway that terminates authenticated CAN-XL and SOME-IP traffic spends most of its crypto budget on verification, and that budget has to fit inside whatever is left after the fault. The model below sizes that residual case directly. Every figure in it is an estimate, to be replaced by measurements on your own silicon.
The load model
Write the crypto load as U = R × t. R is the combined rate of authenticated frames the gateway must verify. t is the HSM service time per frame, and it covers job dispatch through the AUTOSAR crypto stack and secure onboard communication layers, the CMAC computation and the freshness check. The concrete parameter is t, estimated here at 8 µs per frame for a short CAN-XL payload on a dedicated HSM core with the key already resident. For R, take an estimate of 20,000 authenticated frames per second, counting all buses plus the SOME-IP signals the gateway re-signs. The product puts U at an estimated 16% of one core, a figure that looks comfortable and misleads for exactly that reason.
Where the error bars sit
Neither input holds still. t varies with payload length. It also depends on whether the key has to be reloaded from protected storage, and it grows with queue contention when the host floods the HSM during a diagnostic session. On a cold key path the service time can grow by several times. R is worse, because the network architect sets it and not you, and it rises with every software release that moves a signal from plain to authenticated. Treat the 16% estimate as the center of a band whose upper edge is not on any datasheet, and size against that upper edge.
The failure that matters
The failure mode that breaks vehicles is a watchdog reset or lockup of one HSM core, not a slow cipher. While the core is down, crypto jobs return busy and the secure onboard communication layer counts each pending PDU as a failed verification, so the frames get dropped and receivers that require authenticated signals go to their safe state. After recovery, the surviving resources have to carry the normal load U plus a resynchronisation burst of freshness values and key reloads, all on cold key paths, which is where t is largest. Here is the decision rule. Measure U at its upper edge on the degraded configuration with cold keys, and check that the queue drains the reset backlog before the receivers' freshness window closes. If it cannot, add a second HSM instance or commit to a static shedding table before tape-out, because a higher clock does nothing for the key reload path.
What still has to be decided
The remaining trade-off is silicon against the safety case: a second HSM buys failover margin but doubles the key provisioning and freshness state you must keep coherent, while a shedding table costs nothing in area and a great deal in sign-off, because someone has to put their name to the list of authenticated signals the vehicle can lose while the HSM recovers.