Reference Architecture for CAN-FD Security: Where Truncated CMAC Ends and Post-Quantum Signatures Begin

A CAN-FD data field is capped at 64 bytes (ISO 11898-1:2015), while an ML-DSA-44 signature (FIPS 204) is 2,420 bytes. Per-frame post-quantum signing is therefore not a viable interoperability baseline. The defensible reference architecture keeps AUTOSAR SecOC (SWS_SecureOnboardCommunication, R22-11 or later) with AES-CMAC (NIST SP 800-38B) and truncated freshness on every frame. Post-quantum primitives (ML-KEM per FIPS 203, ML-DSA per FIPS 204, SLH-DSA per FIPS 205) go into key establishment, ECU authentication and firmware signing, and are mediated by gateway proxies toward Automotive Ethernet. That split must be traceable to the ISO/SAE 21434:2021 TARA and the UN R155 CSMS evidence.

Decision criteria (per-frame MAC vs. PQC signature)

Use truncated CMAC for any signal with a cycle time in the millisecond range or a payload below 64 bytes. Treat MAC truncation length, not key size, as the bound on online forgery probability (64 bits gives 2^-64 per attempt; 32 bits only fits short-lived, rate-limited signals). Prefer AES-256 keys where the HSM allows it, as margin against Grover. Reserve ML-DSA or SLH-DSA for asynchronous artefacts: software update manifests, ECU certificates and key-provisioning messages carried over ISO 15765-2 (ISO-TP) or UDS (ISO 14229-1).

Pre-implementation checklist

Collect for each PDU the cycle time, payload length, ASIL and TARA attack feasibility, accepted latency, and the counter width the Freshness Value Manager can keep monotonic across sleep/wake and resets. Also confirm the HSM's CMAC throughput and its key slots for symmetric keys and PQC public keys. Confirm whether the gateway terminates SecOC or forwards it end-to-end, and that the Csm/CryIf and KeyM configurations allow algorithm IDs to be swapped without changing the PDU layout (crypto-agility).

Illustrative analytical scenario (not a measurement)

A 64-byte CAN-FD PDU carries a 24-bit truncated freshness value and a 64-bit truncated CMAC (11 bytes of overhead), leaving 53 bytes for the signal. The same ML-DSA-44 signature would need at least 38 full 64-byte frames before transport-layer overhead, so it is applied once per session or per update. Failure and recovery: when truncated-FV verification fails repeatedly, the FVM triggers a resynchronisation with the full freshness value via an authenticated sync message, and the verification status is reported to the IdsM. Safety-relevant consumers move to a defined degraded mode instead of silently dropping frames.

Should a CAN-FD ECU fleet migrate SecOC frames to post-quantum signatures, or keep symmetric CMAC?

Keep symmetric CMAC per frame. Shor's algorithm does not break AES-CMAC, and a 64-bit truncated tag remains bounded by online forgery attempts. The quantum exposure sits in the asymmetric layer: key distribution, ECU certificates and secure boot/update signatures. Migrate that layer first to hybrid schemes (classical ECDSA/ECDH combined with ML-DSA/ML-KEM), so that interoperability holds while the supplier chain transitions. Verify the migration in three steps: confirm that every SecOC PDU layout is unchanged; run a key-rollover and FVM-resync test with fault injection (reset, counter overflow, gateway restart); and keep a fallback key set and algorithm ID in KeyM so a defective PQC implementation can be revoked without bricking the ECUs.

Back to CANCryptography · Domains

← Back to CANCryptography
Engineering & Architecture Brief

Reference Architecture for CAN-FD Security: Where Truncated CMAC Ends and Post-Quantum Signatures Begin

A CAN-FD data field is capped at 64 bytes (ISO 11898-1:2015), while an ML-DSA-44 signature (FIPS 204) is 2,420 bytes. Per-frame post-quantum signing is therefore not a viable interoperability baseline. The defensible reference architecture keeps AUTOSAR SecOC (SWS_SecureOnboardCommunication, R22-11 or later) with AES-CMAC (NIST SP 800-38B) and truncated freshness on every frame. Post-quantum primitives (ML-KEM per FIPS 203, ML-DSA per FIPS 204, SLH-DSA per FIPS 205) go into key establishment, ECU authentication and firmware signing, and are mediated by gateway proxies toward Automotive Ethernet. That split must be traceable to the ISO/SAE 21434:2021 TARA and the UN R155 CSMS evidence.

Decision criteria (per-frame MAC vs. PQC signature)

Use truncated CMAC for any signal with a cycle time in the millisecond range or a payload below 64 bytes. Treat MAC truncation length, not key size, as the bound on online forgery probability (64 bits gives 2^-64 per attempt; 32 bits only fits short-lived, rate-limited signals). Prefer AES-256 keys where the HSM allows it, as margin against Grover. Reserve ML-DSA or SLH-DSA for asynchronous artefacts: software update manifests, ECU certificates and key-provisioning messages carried over ISO 15765-2 (ISO-TP) or UDS (ISO 14229-1).

Pre-implementation checklist

Collect for each PDU the cycle time, payload length, ASIL and TARA attack feasibility, accepted latency, and the counter width the Freshness Value Manager can keep monotonic across sleep/wake and resets. Also confirm the HSM's CMAC throughput and its key slots for symmetric keys and PQC public keys. Confirm whether the gateway terminates SecOC or forwards it end-to-end, and that the Csm/CryIf and KeyM configurations allow algorithm IDs to be swapped without changing the PDU layout (crypto-agility).

Illustrative analytical scenario (not a measurement)

A 64-byte CAN-FD PDU carries a 24-bit truncated freshness value and a 64-bit truncated CMAC (11 bytes of overhead), leaving 53 bytes for the signal. The same ML-DSA-44 signature would need at least 38 full 64-byte frames before transport-layer overhead, so it is applied once per session or per update. Failure and recovery: when truncated-FV verification fails repeatedly, the FVM triggers a resynchronisation with the full freshness value via an authenticated sync message, and the verification status is reported to the IdsM. Safety-relevant consumers move to a defined degraded mode instead of silently dropping frames.

Technical FAQ: Should a CAN-FD ECU fleet migrate SecOC frames to post-quantum signatures, or keep symmetric CMAC?

Keep symmetric CMAC per frame. Shor's algorithm does not break AES-CMAC, and a 64-bit truncated tag remains bounded by online forgery attempts. The quantum exposure sits in the asymmetric layer: key distribution, ECU certificates and secure boot/update signatures. Migrate that layer first to hybrid schemes (classical ECDSA/ECDH combined with ML-DSA/ML-KEM), so that interoperability holds while the supplier chain transitions. Verify the migration in three steps: confirm that every SecOC PDU layout is unchanged; run a key-rollover and FVM-resync test with fault injection (reset, counter overflow, gateway restart); and keep a fallback key set and algorithm ID in KeyM so a defective PQC implementation can be revoked without bricking the ECUs.

Related Architecture Specifications (PQCECOSYSTEM): fhecipher.com · kybercipher.com · mlkemcompliant.com

More Technical Articles on cancryptography.com

Probabilistic Collision Analysis of Truncated Post-Quantum MACs on 5 Mbps CAN FD →Fulfilling UN Regulation 155 and ISO/SAE 21434 Post-Quantum Threat Assessment Requirements →CANCryptography: Reference Architecture, Interoperability & Deterministic Telemetry →