Sizing the HSM for the Day One Crypto Core Dies
A zonal gateway that authenticates CAN-XL and SOME/IP traffic is limited by verification time per PDU, not by peak cipher throughput. Size for that number with one crypto core already dead, because a single-core failure is the case that decides whether the vehicle keeps talking. The model below follows one calculation from PDU rate to surviving-core utilisation and states where its error bars come from.
The one parameter that matters
Start from measured MAC verification time per authenticated PDU, t_v, taken on the target HSM with your real job queue, key slot layout and mailbox driver, not from a cipher benchmark on the datasheet. For this model take t_v as 6 µs per PDU, an estimate for a CMAC check on a typical signal PDU that includes the request round trip through the crypto service layer. Next comes the authenticated PDU rate R that the gateway must verify in the worst sustained window. Here R is taken as 40,000 PDUs per second, an estimate for a zonal controller that carries chassis and sensor traffic while a diagnostic session runs. The load is L = R × t_v, which gives 0.24 core-seconds per second, so a derived estimate of 24% of one HSM core spent on verification alone.
What the survivor has to carry
With two crypto cores sharing the work, each runs at about half of L, and that comfortable figure is what most design reviews sign off on. That figure assumes both cores are alive. The failure mode that matters is a watchdog reset or lockup of one core in the middle of a drive cycle: its queued jobs fail, and the freshness counters it held must be rebuilt before receivers will accept its MACs again. In that window the surviving core takes all of L, plus the resynchronisation traffic, plus any jobs the software retries without checking whether the first attempt ever reached the HSM. AUTOSAR's secure onboard communication and crypto service specifications define how freshness and verification results reach the application, but they leave it to you to make sure one core can carry the whole job queue alone.
The error bars are wide and lopsided, because t_v grows with payload length and key slot switching while R spikes during sensor bursts and diagnostics, so the honest band on that 24% estimate reaches toward half a core and almost never falls below it.
The decision rule
Size so that R × t_v × k on a single surviving core stays under the utilisation ceiling your worst-case response analysis allows, where k is the upper error multiplier taken from your own measurements, not from a vendor's typical value. If that inequality fails, the options are a faster HSM, fewer authenticated PDUs through a coarser MAC grouping, or a degraded mode that drops verification for non-safety signals while one core is down. That last option is the cheapest in silicon and the most expensive in your safety case, because each signal you allow to pass unverified needs a written argument for why an attacker can't exploit the moment a core resets.
Technical FAQ: Why size against one surviving core instead of averaging load across the pair?
A core failing is a single event that happens during a drive, and receivers reject the affected frames immediately. If the survivor cannot absorb the full load plus freshness resynchronisation within its deadline, the reset becomes a communication outage on authenticated signals, which an average over both cores never shows.