SHA-2 Sigma Function Acceleration in General Purpose Processors

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing hardware-accelerated SHA algorithms are costly and difficult to implement fully pipelined, limiting throughput and thread simultaneous usage due to the complexity of the SHA algorithm's 8 internal 32-bit or 64-bit states, making efficient checksum calculation challenging in cloud computing and RAS environments.

Innovation Solution

A general-purpose processor with an integrated circuit designed to calculate SHA-2 sigma functions as processor instructions, allowing for in-core acceleration of the SHA-2 hash function, reducing hardware requirements and enabling faster calculations by performing sigma functions within a single instruction cycle.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If fully pipelined hardware is built to perform the whole SHA algorithm, then throughput is improved, but device complexity and manufacturing difficulty increase significantly

Engineering Contradiction:
ImprovethroughputVSAvoidhardware complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent segments the SHA-2 algorithm into two parts: the complex sigma functions are implemented in specialized hardware, while the simpler hash function components are executed in general-purpose processors. This segmentation allows the hardware to focus on performance-critical operations without needing to implement the entire algorithm, reducing overall device complexity while maintaining high throughput.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent extracts the most computationally intensive sigma functions from the complete SHA-2 algorithm and implements them in dedicated hardware units. By taking out only the complex portions and leaving the simpler components for general-purpose processing, the system achieves high throughput without requiring fully pipelined hardware for the entire algorithm.

Inventive Principle:
Principle #2Taking out (Extraction)

2Speed

If specialized hardware is used for SHA algorithm, then calculation speed is improved, but hardware cost and implementation difficulty increase

Engineering Contradiction:
Improvecalculation speedVSAvoidimplementation difficulty
Core Design Contradiction:
SpeedVSEase of manufacture

Solution Approach 1:

The patent divides the SHA-2 implementation into specialized hardware for sigma functions and general-purpose processors for hash function execution. This segmentation enables high calculation speed for the critical sigma functions while avoiding the need to implement the entire SHA algorithm in specialized hardware, thereby reducing implementation difficulty and cost.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent makes general-purpose processors serve dual purposes: executing the hash function components and potentially executing sigma functions when needed. This multi-functionality reduces the need for dedicated hardware for all SHA operations, lowering implementation difficulty and cost while maintaining high speed for critical operations.

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

3Productivity

If SHA algorithm is implemented in specialized hardware, then calculation efficiency is improved, but adaptability to multiple threads is reduced

Engineering Contradiction:
Improvecalculation efficiencyVSAvoidmulti-thread support
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent segments the SHA-2 algorithm execution between specialized hardware (for sigma functions) and general-purpose processors (for hash function and coordination). This segmentation allows multiple threads to share the general-purpose processor resources while utilizing specialized hardware acceleration, thereby maintaining calculation efficiency while improving adaptability to multi-threaded environments.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent enables general-purpose processors to handle multiple SHA-2 related tasks including hash function execution, sigma function coordination, and multi-thread synchronization. This universal approach allows the same hardware to serve multiple threading needs, improving adaptability while maintaining efficiency through specialized hardware acceleration for critical operations.

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

Data Source

PatentUS9164725B2Apparatus and method for calculating an SHA-2 hash function in a general purpose processor
Publication Date: 2015.10.20 BEIJING ZITIAO NETWORK TECH CO LTD
  • US9164725B2 patent drawing
  • US9164725B2 patent drawing
  • US9164725B2 patent drawing

AI summary

Various systems, apparatuses, processes, and/or products may be used to calculate an SHA-2 hash function in a general-purpose processor. In some implementations, a system, apparatus, process, and/or product may include the ability to calculate at least one SHA-2 sigma function by using an execution unit adapted for performing a processor instruction, the execution unit including an integrated circuit primarily designed for calculating the SHA-2 sigma function(s), and calculating the SHA-2 hash function with general-purpose hardware processing components of the processor based on the sigma function(s). In certain implementations, the calculation of the SHA-2 sigma function(s) can be performed by the integrated circuit within a single instruction, allowing for a faster calculation of the SHA-2 hash function.