CAN FD frames are transmitted in cleartext, so any node on the bus can read, forge or replay them. We present a hardware secure layer for CAN FD that encrypts and authenticates each frame with NIST Ascon-AEAD128 and rejects replays using a 48-bit freshness counter that persists across reboots. Each 64-byte data field carries a 46-byte payload, the low 16 bits of the counter and a full 128-bit tag. The receiver reconstructs the full counter from these 16 bits and uses it to form the nonce, so tag verification also rejects replayed frames. Each endpoint reserves counter values in blocks and commits the upper bound of each block to SPI NOR flash before use. In simulation, power interruptions injected during flash writes and erases never caused nonce reuse. On an Artix-7 XC7A35T at 100 MHz, the layer occupies 2549 lookup tables (LUTs) alongside the publicly available CTU CAN FD controller. Its simulated processing overhead is about 1.3 microseconds per frame, under 1% of the frame's airtime. We evaluated it on a physical CAN FD bus with both nodes on one FPGA. An independent adapter recorded highway torque commands and replayed them during braking. The unprotected receiver acted on every replay. The secure layer rejected every replay and still accepted every genuine command.
翻译:暂无翻译