What Is CAN Bus Encryption and Why It Matters

Classic CAN has no built-in security. Every frame is transmitted in plaintext, unauthenticated, and freely replayable, a design decision made decades before Bluetooth, Wi-Fi, cellular modems, and OBD-II dongles turned the CAN bus into a networked, remotely reachable attack surface.

A CAN bus encryption and authentication library closes this gap in software, without waiting for a silicon respin or a full AUTOSAR migration. RAPIDSEA Secure CAN Library adds encryption, authentication, and anti-replay protection to every frame, built on the same class of cryptographic primitives referenced by AUTOSAR SecOC.

The result: an ECU that can prove a frame came from a trusted sender, has not been tampered with in transit, and has not been captured and replayed by an attacker, all inside the 8-byte CAN payload constraint.

CAN Bus Encryption
RAPIDSEA Secure CAN Library Architecture

RAPIDSEA Secure CAN Library – Overview

RAPIDSEA Secure CAN Library is a portable C99 software library that encrypts and authenticates Classic CAN 2.0A/B and CAN-FD frames, supporting both 11-bit and 29-bit identifiers, without requiring an RTOS or an AUTOSAR stack underneath it.

It ships as one header and three source files, sitting directly above your existing CAN driver, so it drops into a bare-metal, RTOS-based, or Linux-based ECU project in under a day.

Because every ECU is not on the same roadmap, the library is delivered two ways: as a standalone, AUTOSAR-independent library for teams that want security now without re-architecting their software, and as an AUTOSAR-compatible module, packaged as a Complex Device Driver (CDD) or integrated with the AUTOSAR Crypto Service Manager (CSM) and SecOC layer, for OEMs and Tier-1s standardized on AUTOSAR Classic or Adaptive platforms. Either way, the underlying protection stays the same.

Key Features of RAPIDSEA Secure CAN Library

A CAN bus encryption and authentication library built for real ECUs, delivering the security depth AUTOSAR SecOC was designed to provide.

Frame Encryption & Authentication

Every CAN frame is encrypted and authenticated together, using AES-128, so its content stays confidential and any tampering or forgery is caught before it is trusted.

Anti-Replay Protection

Captured frames cannot be recorded and retransmitted later; every frame is checked for freshness before it is ever accepted.

Fixed, Predictable Bus Overhead

Full encryption and authentication add just one linked frame per secured message, a fixed cost you can budget for at design time.

Hardware Offload Ready

Optional hooks let you offload cryptographic processing to on-chip HSM hardware to reduce CPU load on gateway and high-traffic ECUs.

AUTOSAR Compatible by Design

Runs standalone on bare-metal or RTOS today, or can be delivered as an AUTOSAR CDD / SecOC-integrated module on request.

Frame-Level Protection, Built for the 8-Byte CAN Payload

An 8-byte CAN payload has no room left over for full-strength encryption plus an authentication check, so RAPIDSEA Secure CAN Library uses a secured message scheme, built on a linked pair of CAN frames, to deliver full-strength protection without exceeding the classic CAN frame size.

Every secured message is both encrypted and authenticated before it reaches the bus, and the receiver verifies authenticity before any payload is accepted, so a tampered or forged frame is rejected without ever being trusted by the application.

The only bus-load cost of full encryption and authentication is one additional linked frame per message, a fixed, predictable overhead that automotive network designers can budget for at design time.

RAPIDSEA Secure CAN Library Frame Protection Scheme

Stringent Defence Against Automotive Cyber Attacks

RAPIDSEA Secure CAN Library is built against the CAN-specific threat categories mapped through an ISO 21434 threat analysis and risk assessment (TARA). Each attack class below is closed by a specific mechanism in the library, not by obscurity.

Attack Vector RAPIDSEA Defence Result
Eavesdropping / Bus Sniffing Full payload encryption Blocked
Frame Injection / Forgery Cryptographic authentication check on every frame Blocked
Replay Attack Sequence-based freshness check on every frame Blocked
Signal Tampering Authentication check detects any bit-level change before payload is accepted Blocked
Cross-Channel Attack (gateway pivot) Per-channel keys and independent freshness tracking Blocked
Fuzzing Attack Authentication check fails closed before payload is parsed Blocked
Man-in-the-Middle (MitM) Encrypted and authenticated frame pairing rejects any unverified insertion Blocked
Suspension / ECU Masquerade Freshness tracking and key binding detect a missing or impersonating ECU Blocked

Why Choose RAPIDSEA Secure CAN Library?

Integrate in Under a Day

Three source files, one header, no BSW, no RTOS dependency. Drop RAPIDSEA Secure CAN Library above your existing CAN driver and start encrypting and authenticating frames the same day, guided by our documentation and reference integration examples.

Stronger Than - and Compatible With - AUTOSAR SecOC

AUTOSAR SecOC Profile 1 typically uses a short, truncated authentication check and no encryption. RAPIDSEA Secure CAN Library delivers full payload encryption plus a substantially stronger authentication check, and for OEMs standardized on AUTOSAR, it can be delivered as an AUTOSAR-compatible CDD or integrated with the Crypto Service Manager and SecOC layer instead of replacing it.

Production Proven

Validated on Renesas RH850 and RL78, NXP i.MX RT1064 and LPC1788, and tested end-to-end with PEAK PCAN-USB and Vector VN1610 hardware plus CANalyzer traces, so the security you integrate is the security that has already been road-tested.

RTOS & OS Compatibility - Seamless Integration Across Every Embedded Environment

RAPIDSEA Secure CAN Library is built for true platform independence, pre-validated across the most widely adopted RTOS and embedded environments, from bare-metal microcontrollers to full-scale Linux systems and AUTOSAR Classic BSW stacks. Its hardware-agnostic, portable C99 architecture ensures thread-safe operation with minimal porting effort across all supported platforms.

Environment Status
Bare-metal (no OS) Supported ✅
FreeRTOS Supported ✅
Zephyr RTOS Supported ✅
Azure RTOS / ThreadX Supported ✅
Embedded Linux (SocketCAN) Supported ✅
Windows (testing / simulation) Supported ✅

Use Cases for RAPIDSEA Secure CAN Library

Instrument Cluster ECU

Instrument Cluster ECU

Authenticates speed, RPM, and warning-lamp signals so a spoofed cluster message cannot mask a real fault or falsify a reading to the driver.

Body Control Module (BCM)

Body Control Module

Encrypts and authenticates door lock, window, and immobilizer commands, closing the relay-attack and command-injection paths exposed by infotainment and telematics gateways.

ADAS / Safety ECU

ADAS / Safety ECU

Protects safety-relevant sensor and actuator frames from tampering and replay, supporting the freedom-from-interference goals of an ISO 26262 safety case.

Gateway ECU

Gateway ECU

Terminates and re-originates encrypted, authenticated CAN sessions at the domain boundary, preventing an attacker who reaches one bus segment from pivoting to another.

EV Charging Controller

EV Charging Controller

Secures BMS-to-VCU and charge-controller CAN traffic, protecting cell-voltage, current, and state-of-charge data from tampering during charge sessions.

Commercial Vehicle / J1939

Commercial Vehicle / J1939 Networks

Adds encryption and authentication to J1939 PGNs on trucks, buses, and off-highway vehicles, closing a gap increasingly targeted by fleet-level cyberattacks.

Validation & Interoperability - Tested Against Real-World Automotive Tools

RAPIDSEA Secure CAN Library has been validated against the tools automotive security and network teams already use for bus analysis, functional testing, and cryptographic conformance checking.

Validation Toolchain

The following industry-standard tools and test vector suites are used to verify the encryption, authentication, and replay-protection behavior of the library:

Tool Purpose
PEAK PCAN-USB Adapter Frame-level bus capture and injection testing
Vector VN1610 High-fidelity CAN/CAN-FD interfacing for conformance testing
Vector CANalyzer Trace analysis and bus-load measurement
NIST Reference Test Vectors Cryptographic conformance testing against published reference vectors
Built-in Self-Test Suite Automated verification of cryptographic correctness at startup
Renesas RH850/D1M1A EVB Target hardware validation on automotive-grade silicon
NXP i.MX RT1064 EVK Target hardware validation on gateway-class processors

RAPIDSEA Secure CAN Library Package

Explore our comprehensive library of documents and demo videos

User Manual

User Manual icon

    Get direct access to user manual via the following link

View User Manual

General Documents

General Documents icon

    Download the Secure CAN Library brochure, SecOC comparison note, and ISO 21434 TARA mapping

Download

Video Demonstrations

Video Demonstrations icon

    Watch our video demonstrations directly via the following link

Access Demo Videos

Post-Purchase Document

Post-Purchase Document icon

  • QSG, Gtests
  • MISRA-C Compliance Report
  • HDD, LDD, Wire Protocol & Frame Construction Guide

Contact us

Gated Access Resources

Gated Access Resources icon

  • Cryptographic test vector report
  • Pricing
  • Evaluation Package

Request Access

Technical Reports

Technical Reports icon

  • Resource Utilization (ROM/RAM)
  • ISO 21434 TARA Traceability Matrix
  • Evaluation Version Binary (Windows, Linux)

Request Download Links

FAQs

RAPIDSEA Secure CAN Library is a portable C99 software library that adds encryption, authentication, and anti-replay protection to Classic CAN and CAN-FD frames.

Want AUTOSAR SecOC compatible CAN bus security without re-architecting your ECU software?

Get in touch with our Secure CAN Library team now.

For further information on how your personal data is processed, please refer to the Rapidsea Privacy Policy.