Monotonic Counter with Persistent Power Supply for Anti-Replay
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing cryptographic systems on chip face challenges with data loss and aging due to high erasing and writing cycles in non-volatile memory-based monotonic counters, which are prone to power loss and slow incrementation, making them vulnerable to replay attacks and data integrity issues.
Innovation Solution
A system on chip architecture incorporating a monotonic counter with a volatile counter register fed by a persistent power supply, including a bus interface and command interpreter, which ensures data integrity and accelerates counter increments, using a power-loss register to detect and reset the counter in case of power loss, and a milestone bit registration mechanism for monotonicity.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If a non-volatile memory-based monotonic counter is used, then data persistence is achieved, but data loss and aging occur due to high erasing and writing cycles
Solution Approach 1:
The patent creates a copy of the counter value in volatile memory (RAM) that is continuously updated. Instead of directly writing to non-volatile memory for each increment, the system maintains a volatile copy that is periodically flushed to non-volatile memory, reducing wear while maintaining persistence.
Solution Approach 2:
The patent changes the state of the counter register from non-volatile to volatile memory, fundamentally altering how the counter operates. This allows the counter to be stored in RAM and only periodically committed to non-volatile memory, changing the parameters of data storage and access.
2Reliability
If a non-volatile memory-based monotonic counter is used, then data persistence is achieved, but incrementation speed is slow
Solution Approach 1:
The patent maintains a volatile copy of the counter in RAM that can be incremented at full speed without the constraints of non-volatile memory. This volatile copy serves as a working buffer that is periodically flushed to non-volatile memory, allowing fast incrementation while maintaining persistence.
Solution Approach 2:
The patent segments the counter operation into two parts: a fast volatile memory counter for active incrementation and a persistent non-volatile memory counter for data retention. This segmentation allows each component to optimize for its specific function.
3Speed
If a volatile counter register with persistent power supply is used, then counter incrementation speed is accelerated, but power loss risk increases
Solution Approach 1:
The patent introduces a persistent power supply (such as a battery or capacitor) as an intermediary between the volatile counter register and the main power supply. This intermediary maintains the counter value during brief power interruptions, acting as a buffer that protects against complete power loss while allowing the volatile register to operate at full speed.
Solution Approach 2:
The patent provides beforehand cushioning by implementing a persistent power supply that can maintain the counter register during anticipated power fluctuations. This protective measure is in place before actual power loss occurs, cushioning against the risk of data loss while enabling high-speed operation.
4Reliability
If a monotonic counter is used for anti-replay mechanism, then replay attacks are prevented, but data integrity issues arise due to power loss and aging
Solution Approach 1:
The patent maintains a volatile copy of the monotonically increasing counter value that is continuously updated during operation. This volatile copy is periodically flushed to non-volatile memory, ensuring that the counter value used for anti-replay protection is both current and persistent, preventing replay attacks while maintaining data integrity.
Solution Approach 2:
The persistent power supply acts as an intermediary that protects the counter value during power loss events. By maintaining the counter register during brief interruptions, the persistent power supply ensures that the monotonically increasing sequence is preserved, maintaining data integrity and preventing replay attacks.
Data Source
AI summary
In an embodiment a system on chip includes a persistent power supply and anti-replay mechanism comprising a monotonic counter including a volatile counter register powered by the persistent power supply.

