Counter-Based ECU Encryption for Confidential CAN Packets

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing CAN bus communication protocols in vehicles are vulnerable to eavesdropping and replay attacks, with current security mechanisms like SecOC in AUTOSAR failing to prevent packet eavesdropping.

Innovation Solution

Implementing encryption and integrity protection methods using a keystream generated from a shared key and a fresh value to encrypt and authenticate packets, ensuring confidentiality and integrity of communication between ECUs.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of information

If encryption protection is implemented using keystream generation, then packet confidentiality is improved, but device complexity increases

Engineering Contradiction:
Improvepacket confidentialityVSAvoidencryption apparatus complexity
Core Design Contradiction:
Loss of informationVSDevice complexity

Solution Approach 1:

The encryption function is segmented into independent modular components: a keystream generation module that takes a key and counter as inputs, and an XOR encryption module that combines the keystream with plaintext packets. This segmentation allows each module to be optimized independently and facilitates easier implementation and maintenance while maintaining confidentiality.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The encryption system uses self-generated counters at both transmitting and receiving ends to produce synchronized keystreams without requiring external key distribution or complex synchronization protocols. The counters automatically increment with each packet, enabling the system to service its own encryption needs using only locally stored keys and packet sequence information.

Inventive Principle:
Principle #25Self-service

2Reliability

If integrity protection is added to encryption, then security against tampering is improved, but communication overhead increases

Engineering Contradiction:
Improveintegrity protectionVSAvoidcommunication overhead
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The integrity protection mechanism is merged with the existing encryption framework by using the same counter and key materials to generate both the keystream for encryption and the authentication tag for integrity verification. This combining approach ensures that integrity protection is achieved without requiring separate communication channels or additional key distribution infrastructure.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The system dynamically adjusts the authentication tag length and verification strictness based on the security requirements of different packet types and communication contexts. For less critical packets, shorter tags are used to reduce overhead, while more critical packets receive longer tags for enhanced integrity protection, optimizing the balance between security and overhead.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20250227095A1Communication method and apparatus
Publication Date: 2025.07.10 HUAWEI TECH CO LTD
  • US20250227095A1 patent drawing
  • US20250227095A1 patent drawing
  • US20250227095A1 patent drawing

AI summary

A first ECU performs an operation using a first key and a first fresh value to generate a keystream; performs an exclusive OR operation using the keystream and a to-be-transmitted first plaintext packet to generate a first ciphertext packet; and sends the first ciphertext packet to a second ECU. The first fresh value is a value generated by a counter in the first ECU when the first ECU transmits a packet, and the counter is configured to record a quantity of packets transmitted by the first ECU. The first ECU transmits the first ciphertext packet to the second ECU. This can prevent the first packet transmitted by the first ECU from being eavesdropped on, and help improve confidentiality of the packet transmitted by the first ECU.