Zen Peripherals · Automotive · brief · 2026-11-04

A SecOC engine that stops forged and replayed safety frames on your bus

The Zen SecOC engine is the automotive frame-authentication block a client instantiates to protect in-vehicle traffic — steering, braking, and other safety frames. It implements AUTOSAR Secure Onboard Communication over an on-chip AES-128 cipher and an AES-CMAC message-authentication code: each frame carries a truncated MAC plus a monotonic freshness value, and the receiver rejects anything whose MAC does not verify or whose freshness is not strictly newer. One block holds three reusable layers — AES-128, CMAC, and the SecOC wrapper — on a 32-bit peripheral bus. Product / integrator view; every number is sourced from the product datasheet or marked TBC.

1. SecOC in one paragraph

The Zen SecOC engine proves that a frame is both authentic and fresh. On the sender, software loads a 128-bit key, a Data-ID, a freshness value and the payload, then picks a mode and pulses start; the engine computes an AES-CMAC over Data-ID ‖ freshness ‖ payload, truncates the 128-bit tag to the most-significant MAC_LEN bits, and hands back the truncated MAC plus the freshness bits to put on the wire — then increments the freshness so the next frame cannot be a replay. On the receiver, the same engine recomputes the MAC over the received frame, compares it to the one that arrived, and checks the reconstructed freshness is strictly newer than the last one accepted. Either check failing rejects the frame and raises a dedicated fault line into the safety aggregator. AES-128, the CMAC chain, and the SecOC framing are one shared datapath — no second MAC engine — so the AES/CMAC core is also reusable for secure boot or generic message authentication.

AUTOSAR SecOCauthenticate + verify with replay reject
AES-128 CMACFIPS-197 cipher · NIST SP 800-38B MAC
1–128 bittruncated MAC (default 32)
14 / 14compliance tests passing (NIST KAT + SecOC)
host SoCperipheral bus SecOC engineAES · CMAC · framing message / result buffers key storeeFuse / secure port safety aggregatorfault reaction registers irq 128-bit key msg / MAC fault
Figure 1. The SecOC engine sits between the host SoC, a key store, and the safety aggregator: the host loads key/message/mode over the peripheral bus, the engine computes or verifies the truncated CMAC over Data-ID + freshness + payload, and a verify-fail drives a dedicated fault line.
Authentic and fresh, or rejected. Verify passes only when the recomputed MAC matches the received MAC and the reconstructed freshness is strictly newer than the last accepted value. A forged frame fails the MAC check; a captured-and-replayed frame fails the freshness check — and once a frame is accepted, replaying it (equal or older freshness) is then rejected as stale.
No side-channel / DPA hardening in this tier. The engine is correct against the published AES, CMAC and SecOC vectors, but it does not include differential-power-analysis countermeasures — that is a separate security tier. Transport framing (CAN / CAN-FD / LIN / Ethernet) and key provisioning (eFuse / secure key port) are also separate blocks the integrator supplies.

2. What it is, at a glance

ElementDetailDefaultStatus
CipherAES-128, encrypt-only (FIPS-197)—exists
MAC algorithmAES-CMAC over AES-128 (NIST SP 800-38B), 128-bit tag—exists
Operating modesAES-ECB · CMAC · SecOC-authenticate · SecOC-verify—exists
SecOC framingCMAC over Data-ID (2 B) ‖ freshness (4 B) ‖ payload—exists
MAC truncationmost-significant MAC_LEN bits, 1–12832 bitsexists
Freshness32-bit counter; on-wire FV_LEN 1–32 bits; strict-newer replay reject32 bitsexists
Message bufferpayload length 0–MSG_MAX_BYTES64 bytesexists
Fault outputdedicated fault on verify-fail, with cause (mac_fail / stale)—exists
Interruptsingle done line, enable-gated, write-1-clear pending—exists
Key source128-bit, integrator-provisioned (eFuse / secure key port)—exists
Bus32-bit word-addressed peripheral bus—exists
Side-channel / DPA hardeningseparate security tier—not in tier
Latency / throughput / fmaxiterative AES; characterization downstreamTBCTBC

Sources: Zen SecOC product datasheet; as-built RTL.

3. How a client uses it

  1. Instantiate the engine on the 32-bit peripheral bus; wire the 128-bit key in from your eFuse or secure key port, route the done interrupt into your controller, and tie the fault line into your safety aggregator.
  2. Provision the key and set your policy — the truncated-MAC length (MAC_LEN) and the on-wire freshness width (FV_LEN) per your SecOC profile; defaults are 32 / 32.
  3. Authenticate (sender) — load the Data-ID, freshness, and payload, run SecOC-authenticate, and read back the truncated MAC and freshness to append to the outgoing PDU; the engine increments the freshness for you.
  4. Verify (receiver) — load the received payload, truncated MAC and truncated freshness, run SecOC-verify; accept on verify_ok, or take the fault and cause (mac_fail / stale) to drive the system's safe-state reaction.

4. Verification & provenance

Sources read

Sources: Zen SecOC product datasheet; as-built RTL.