Hierarchical Memory Counters for Replay-Safe Off-Chip Encryption

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing data protection mechanisms are vulnerable to replay attacks and require excessive storage and memory overhead for maintaining counters, especially when handling large data sets.

Innovation Solution

Implementing a hierarchical counter system with minor, middle, and major counters to manage data integrity and security, reducing storage overhead by incrementing and re-encrypting only specific subsets of data items based on counter overflows.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a single counter is used for each data item to prevent replay attacks, then data security is improved, but storage overhead and memory requirements increase excessively

Engineering Contradiction:
Improvedata securityVSAvoidstorage overhead
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent divides the counter system into three hierarchical levels: major counters (one per cache set), minor counters (one per cache line), and intermediate counters (one per group of cache lines). This segmentation allows the system to track access counts at different granularities, enabling selective re-encryption only when necessary while reducing overall storage requirements compared to maintaining individual counters for every data item.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a hierarchical dimension to the counter structure, organizing counters in multiple levels (major, intermediate, minor) rather than using a flat single-counter-per-data-item approach. This dimensional organization enables the system to manage counter state more efficiently by aggregating counter information at higher levels and only triggering re-encryption when lower-level counters overflow, thereby reducing total storage overhead.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Reliability

If counters are maintained for all data items to ensure data integrity, then replay attack protection is improved, but memory overhead increases

Engineering Contradiction:
Improvedata integrityVSAvoidmemory overhead
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent merges counter functionality across multiple data items by introducing major counters that serve entire cache sets and intermediate counters that serve groups of cache lines. Instead of maintaining separate counters for each individual data item, the system combines counter state at higher hierarchical levels, reducing total memory overhead while still providing integrity protection through selective re-encryption triggered by counter overflows.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The counter system is segmented into three functional levels with different scopes: major counters for cache set-level tracking, intermediate counters for cache line group tracking, and minor counters for individual cache line tracking. This segmentation enables the system to maintain data integrity by monitoring access patterns at appropriate granularities without requiring full counter state for every single data item in memory.

Inventive Principle:
Principle #1Segmentation

3Reliability

If frequent re-encryption is performed to maintain security, then protection against replay attacks is improved, but processing time and system performance deteriorate

Engineering Contradiction:
Improveprotection against replay attacksVSAvoidprocessing time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies partial action by triggering re-encryption only when minor counters overflow, rather than re-encrypting all data items on every access. The hierarchical counter structure allows the system to perform encryption operations selectively on subsets of data (those associated with overflowing minor counters and their parent intermediate/major counters) rather than universally, reducing processing time while maintaining security.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The segmentation of counters into hierarchical levels enables selective re-encryption of only the data subsets associated with overflowing counters at each level. When a minor counter overflows, only the corresponding cache line and its associated higher-level counters need re-encryption, rather than re-encrypting the entire dataset. This segmented approach significantly reduces processing time compared to universal re-encryption.

Inventive Principle:
Principle #1Segmentation

4Quantity of substance

If a hierarchical counter system is implemented to reduce storage overhead, then memory efficiency is improved, but device complexity increases

Engineering Contradiction:
Improvememory efficiencyVSAvoidcounter management complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The hierarchical counter system is segmented into three distinct levels (major, intermediate, minor) with clearly defined responsibilities and scopes. Each level manages counters for a specific granularity of data organization, which simplifies the overall management logic compared to a flat counter system. The segmentation allows independent management of each counter level, reducing the complexity of tracking and updating counter state across the entire system.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

By introducing hierarchical dimensions to the counter structure, the patent organizes counter management in a multi-level framework that naturally handles complexity through layering. Each dimension (major, intermediate, minor) operates semi-independently with well-defined relationships to parent and child counters, making the system more manageable than a single-dimensional flat counter approach would be for achieving the same memory efficiency.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Data Source

PatentUS20260081774A1An apparatus, a method of operating an apparatus, and a non-transitory computer readable medium to store computer-readable code for fabrication of an apparatus
Publication Date: 2026.03.19 ARM LTD
  • US20260081774A1 patent drawing
  • US20260081774A1 patent drawing
  • US20260081774A1 patent drawing

AI summary

There is provided an apparatus provided with counter control circuitry to maintain counters associated with data items including: minor counters, middle counters, and a major counter. The apparatus is also provided with a memory protection unit configured, in response to a transfer of a data item from secure storage to off-chip storage, to modify a minor counter associated with the data item, and to encrypt the data item based on counters associated with the data item. The memory protection unit is also responsive to an overflowing minor counter, to perform a middle re-encryption process comprising modifying a middle counter associated with the data item and re-encrypting data items associated with the middle counter. The memory protection unit is also responsive to an overflowing middle counter, to perform a major re-encryption process comprising modifying the major counter, and re-encrypting each of the data items.