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.
- SecOC engine (AES / CMAC / framing)
- host SoC / key store / safety aggregator
- message + result buffers
2. What it is, at a glance
| Element | Detail | Default | Status |
|---|---|---|---|
| Cipher | AES-128, encrypt-only (FIPS-197) | — | exists |
| MAC algorithm | AES-CMAC over AES-128 (NIST SP 800-38B), 128-bit tag | — | exists |
| Operating modes | AES-ECB · CMAC · SecOC-authenticate · SecOC-verify | — | exists |
| SecOC framing | CMAC over Data-ID (2 B) ‖ freshness (4 B) ‖ payload | — | exists |
| MAC truncation | most-significant MAC_LEN bits, 1–128 | 32 bits | exists |
| Freshness | 32-bit counter; on-wire FV_LEN 1–32 bits; strict-newer replay reject | 32 bits | exists |
| Message buffer | payload length 0–MSG_MAX_BYTES | 64 bytes | exists |
| Fault output | dedicated fault on verify-fail, with cause (mac_fail / stale) | — | exists |
| Interrupt | single done line, enable-gated, write-1-clear pending | — | exists |
| Key source | 128-bit, integrator-provisioned (eFuse / secure key port) | — | exists |
| Bus | 32-bit word-addressed peripheral bus | — | exists |
| Side-channel / DPA hardening | separate security tier | — | not in tier |
| Latency / throughput / fmax | iterative AES; characterization downstream | TBC | TBC |
Sources: Zen SecOC product datasheet; as-built RTL.
3. How a client uses it
- 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
faultline into your safety aggregator. - 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. - 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.
- 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
- Compliance tested: a 14-of-14 passing, assertion-based suite (8 NIST known-answer tests + 6 SecOC) checks results byte-exact against a golden Python AES/CMAC oracle — not self-referential round-trips.
- Discriminating coverage: FIPS-197 AES and SP 800-38B CMAC vectors at message lengths 0 / 16 / 40 / 64 bytes (the 40-byte case exercises the K2 + 10* padding path); SecOC authenticate against golden truncated tags; verify-OK, tampered-MAC reject (
mac_fail), replay / stale-freshness reject (stale), and truncation checked so only the topMAC_LENbits compare. - Provenance: owned by the Zen peripheral group and delivered as parameterized RTL plus a compliance testbench and sprint review record; AES-128, CMAC and the SecOC wrapper are coverage-closed. Pairs naturally with eFuse key storage, a transport controller, and E2E integrity protection for ASIL data paths.
Sources read
Sources: Zen SecOC product datasheet; as-built RTL.