SM3 Compression Circuit Using Carry Skip Adders to Shorten Critical Path

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The Cryptographic Hash Algorithm SM3's hardware implementation is resource and time-intensive due to complex iterative compression processes, particularly in the calculation of the compression function.

Innovation Solution

A data compression method utilizing a carry skip adder to perform addition operations in the compression function, specifically for the SM3 algorithm, which includes cascaded 4-bit carry skip adders to accelerate the propagation of carry chains and reduce the critical path length.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If conventional adders are used in the SM3 compression function, then the hardware structure is simple, but the calculation efficiency is low and the critical path is long

Engineering Contradiction:
Improvecalculation efficiencyVSAvoidhardware structure complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The 32-bit adder is segmented into eight 4-bit adders grouped into two sets. Each 4-bit adder processes a specific bit range, and the segmentation allows parallel processing with carry skip logic to bypass sequential carry propagation, thereby reducing the critical path while maintaining functional correctness.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Carry skip signals are introduced as intermediary control signals between the 4-bit adder groups. These signals act as mediators that can bypass the sequential carry propagation through look-ahead logic, enabling faster computation by predicting and skipping carry chains without requiring full sequential dependency.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If sixty-four iterative compressions are performed, then the SM3 algorithm security is maintained, but the time consumption and resource usage increase significantly

Engineering Contradiction:
Improvealgorithm securityVSAvoidtime consumption
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The message scheduling operations and initial register value preparations are performed in advance before the main iterative compression process. By pre-computing message words and preparing initial states, the actual 64 iterative compressions can proceed more efficiently without redundant setup overhead in each iteration.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The adder circuit parameters are changed from conventional ripple-carry architecture to carry-skip architecture with specific grouping (eight 4-bit adders). This parameter change in the hardware structure reduces the time complexity of each compression iteration while maintaining the required 64 iterations for security.

Inventive Principle:
Principle #35Parameter changes

3Measurement precision

If the critical path is lengthened for accurate calculation, then the calculation precision is maintained, but the timing performance deteriorates

Engineering Contradiction:
Improvecalculation precisionVSAvoidtiming performance
Core Design Contradiction:
Measurement precisionVSSpeed

Solution Approach 1:

The carry skip adder enables the calculation to skip through intermediate carry propagation stages by using look-ahead logic. Instead of waiting for carries to ripple through all 32 bits sequentially, the circuit can skip ahead when carry patterns are predicted, thus reducing the critical path length while maintaining accurate addition results.

Inventive Principle:
Principle #21Skipping (Rushing through)

Data Source

PatentUS20240086551A1Data compression method and apparatus, electronic device, and storage medium
Publication Date: 2024.03.14 LANGCHAO ELECTRONIC INFORMATION IND CO LTD
  • US20240086551A1 patent drawing
  • US20240086551A1 patent drawing
  • US20240086551A1 patent drawing

AI summary

The present application discloses a data compression method and apparatus, an electronic device, and a computer-readable storage medium. The method includes: determining a compression function and each initial register value in present compression; and executing the compression function on the basis of each initial register value, and in the execution process, using a carry skip adder to perform the addition operation in the compression function to obtain the value of each register after the present compression is completed. In the data compression method provided by the present application, the use of the carry skip adder to perform the addition operation in the compression function improves calculation efficiency of the compression function, such that the critical path may be shortened so as to improve overall algorithm performance in the hardware implementation.