ECDSA Power Analysis Countermeasure via Operation Permutation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Power analysis attacks, such as Simple Power Analysis (SPA) and Differential Power Analysis (DPA), can reveal private keys in Elliptic Curve Digital Signature Algorithm (ECDSA) implementations by measuring power consumption, posing a vulnerability in secure communication.

Innovation Solution

Modifying the order of arithmetic operations in ECDSA, particularly involving the long-term key, and using random integers as masking factors to obscure the execution of scalar multiplication operations, making it difficult for attackers to infer private keys from power consumption measurements.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If standard ECDSA implementation is used, then signature generation is efficient, but private key is vulnerable to power analysis attacks

Engineering Contradiction:
Improvesecurity against power analysis attacksVSAvoidcomplexity of arithmetic operations sequence
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent applies dynamics by making the sequence of arithmetic operations variable rather than fixed. The method introduces dynamic selection of operation sequences based on random values, causing the execution flow to change with each signature generation. This dynamic behavior prevents attackers from correlating power consumption patterns with specific private key bits, as the same private key operations occur in different orders across multiple executions.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent changes the parameter of operation sequence ordering. Instead of always performing scalar multiplication in the same fixed sequence, the method randomly permutes the order of arithmetic operations involving the private key. This parameter change ensures that power analysis attacks cannot succeed because the temporal and sequential patterns in power consumption no longer consistently map to specific private key operations.

Inventive Principle:
Principle #35Parameter changes

2Reliability

If arithmetic operations order is modified to counter power analysis, then security is improved, but computational efficiency decreases

Engineering Contradiction:
Improvesecurity against DPA attacksVSAvoidsignature generation speed
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent applies partial action by selectively randomizing only the portions of the scalar multiplication algorithm that are most vulnerable to power analysis attacks. Rather than completely reworking the entire ECDSA implementation, the method introduces randomness specifically in the ordering of critical arithmetic operations involving the private key, while maintaining efficient execution of other necessary operations. This partial randomization provides sufficient security protection without the full overhead of complete operation reordering.

Inventive Principle:
Principle #16Partial or excessive action

3Reliability

If random masking is applied to obscure operations, then power analysis resistance increases, but computational overhead increases

Engineering Contradiction:
Improveobfuscation of private key operationsVSAvoidnumber of arithmetic operations
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent merges the randomization function with the existing scalar multiplication algorithm structure. Rather than adding separate masking layers or independent randomization routines, the method integrates random operation sequencing directly into the scalar multiplication flow. The random values are used to permute the existing arithmetic operations in-place, combining the obfuscation function with the core cryptographic computation and avoiding redundant operational overhead.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentEP2119103B1Power analysis attack countermeasure for the ecdsa
Publication Date: 2013.10.23 BLACKBERRY LTD
  • EP2119103B1 patent drawingFigure 1
  • EP2119103B1 patent drawingFigure 2
  • EP2119103B1 patent drawingFigure 3

AI summary

Execution of the Elliptic Curve Digital Signature Algorithm (ECDSA) requires determination of a signature, which determination involves arithmetic operations. Some of the arithmetic operations employ a long term cryptographic key. It is the execution of these arithmetic operations that can make the execution of the ECDSA vulnerable to a power analysis attack. In particular, an attacker using a power analysis attack may determine the long term cryptographic key. By modifying the sequence of operations involved in the determination of the signature and the inputs to those operations, power analysis attacks may no longer be applied to determine the long term cryptographic key.