AXI Bus Decryption Engine Latency Reduction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing decryption techniques introduce latency that is not compatible with high-performance bus operations, particularly in microcontrollers like STM32, which require fast execution of encrypted code and data burst reads with reduced silicon area and latency on 64-bit AXI bus interfaces.

Innovation Solution

A decryption engine based on a finite state machine (FSM) that performs parallel address decoding, generation, and decryption during AES mask mining, utilizing speculative trigger of AES mask generation and AXI burst field extraction to manage response data flow efficiently, thereby reducing latency and area impact on 64-bit AXI bus interfaces.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If basic encryption/decryption processing is used, then security is provided, but latency is introduced that is not compatible with high-performance bus operation

Engineering Contradiction:
ImprovesecurityVSAvoidlatency
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies preliminary action by pre-generating AES masks and pre-decoding addresses before actual decryption is needed. The system speculatively triggers mask generation and extracts AXI burst fields in advance, so that when decryption is required, the processing can proceed immediately without introducing latency to the high-performance bus operation.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The decryption process is segmented into multiple parallel operations: address decoding, mask generation, and data decryption are performed as separate concurrent tasks. This segmentation allows each component to be optimized independently and eliminates sequential processing bottlenecks, maintaining high-speed bus operation while providing security.

Inventive Principle:
Principle #1Segmentation

2Productivity

If decryption processing is performed on high-performance bus, then fast execution is achieved, but silicon area increases

Engineering Contradiction:
Improveexecution speedVSAvoidsilicon area
Core Design Contradiction:
ProductivityVSArea of stationary object

Solution Approach 1:

The patent implements a universal decryption engine that handles multiple decryption scenarios through a single integrated architecture. The finite state machine and AES mask generation circuitry serve multiple purposes: address decoding, mask generation, and coordination with AXI burst operations. This multi-functionality reduces the overall silicon area compared to having separate dedicated circuits for each function.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The decryption engine is designed to be self-sufficient by integrating all necessary components within the bus interface itself. The system performs speculative mask generation and address decoding autonomously without requiring external assistance, eliminating the need for additional support circuits and reducing overall silicon area while maintaining fast execution.

Inventive Principle:
Principle #25Self-service

3Loss of time

If parallel address decoding and mask generation are performed, then latency is reduced, but device complexity increases

Engineering Contradiction:
ImprovelatencyVSAvoidcircuit complexity
Core Design Contradiction:
Loss of timeVSDevice complexity

Solution Approach 1:

The patent employs a dynamic finite state machine that adapts its behavior based on the current processing stage. The FSM transitions between states to coordinate address decoding, mask generation, and decryption operations dynamically. This dynamic control mechanism allows parallel processing to reduce latency while the state-machine architecture keeps the control logic manageable and avoids excessive circuit complexity.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentEP3537330B1A decryption method and circuit, corresponding device
Publication Date: 2021.09.29 STMICROELECTRONICS SRL
  • EP3537330B1 patent drawingFigure 1
  • EP3537330B1 patent drawingFigure 2~3

AI summary

A method for data decryption comprises receiving (32), over an AXI bus (10) operating in burst mode, data access requests for data units stored in a memory (MC), subdividing the requests received into requests for encrypted data units and requests for non-encrypted data units, forwarding both requests for encrypted data units and requests for non-encrypted data units towards the memory (MC), retrieving the respective sets of data units over the AXI bus (20), and applying Advanced Encryption Standard, AES, processing (60, 70, 80) to the requests for encrypted data units by calculating (72) decryption masks for the encrypted data units and applying (80) the decryption masks calculated to the encrypted data units retrieved. Subdividing the requests into requests for encrypted data units and requests for non-encrypted data units is performed depending on data start addresses and security information conveyed by the requests.