# US 2017/0255469 A1 · Instructions and logic to provide simd sm3 cryptographic hashing functionality

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0255469 A1
- Document ID: US20170255469A1
- Status: Published application
- Kind: A1
- Application number: 15/600,200
- Filed: 2017-05-19
- Published: 2017-09-07
- Earliest claimed: 2014-09-26
- Assignees: lntel Corporation
- Applicants: lntel Corporation
- Inventors: Gilbert M. Wolrich; Vinodh Gopal; Sean M. Gulley; Kirk S. Yap; Wajdi K. Feghali
- Web page: https://patentgrep.com/patent/US20170255469A1

## CPC

- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/30007: {to perform operations on data operands}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/30038: {using a mask}
- G06F 9/38: Concurrent instruction execution, e.g. pipeline or look ahead
- G06F 21/72: in cryptographic circuits
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Instructions and logic provide SIMD SM3 cryptographic hashing functionality. Some embodiments include a processor comprising: a decoder to decode instructions for a SIMD SM3 message expansion, specifying first and second source data operand sets, and an expansion extent. Processor execution units, responsive to the instruction, perform a number of SM3 message expansions, from the first and second source data operand sets, determined by the specified expansion extent and store the result into a SIMD destination register. Some embodiments also execute instructions for a SIMD SM3 hash round-slice portion of the hashing algorithm, from an intermediate hash value input, a source data set, and a round constant set. Processor execution units perform a set of SM3 hashing round iterations upon the source data set, applying the intermediate hash value input and the round constant set, and store a new hash value result in a SIMD destination register.

## Claims

### Claim 1

A processor comprising:
a decode stage to decode a first instruction for a SIMD SM3 hash round slice, the first instruction specifying a round-slice portion of the hashing algorithm, an intermediate hash value input operand, a source data operand set, and a round constant operand set; and
one or more execution units, responsive to the decoded first instruction, to:
perform an SM3 hashing round-slice set of round iterations upon the source data operand set, applying the intermediate hash value input operand and the round constant operand set; and
store a result of the first instruction in a SIMD destination register.

### Claim 2 (depends on 1)

The processor of claim 1, wherein the first instruction specifies said SIMD destination register also as the intermediate hash value input operand.

### Claim 3 (depends on 1)

The processor of claim 1, wherein the first instruction specifies said round-slice portion of the hashing algorithm by a first field in an immediate operand.

### Claim 4 (depends on 3)

The processor of claim 3, wherein the first instruction specifies said round constant operand set at least in part by a second field in the immediate operand.

### Claim 5 (depends on 4)

The processor of claim 4, wherein the first instruction further specifies a Boolean function FFj and GGj selector by said second field in the immediate operand.

### Claim 6 (depends on 1)

The processor of claim 1, wherein the first instruction specifies said round-slice portion of the hashing algorithm in a first instruction mnemonic to be four rounds.

### Claim 7 (depends on 6)

The processor of claim 6, wherein said round constant operand set comprises four pre-rotated 32-bit constant values.

### Claim 8 (depends on 1)

The processor of claim 1, wherein the first instruction specifies said round-slice portion of the hashing algorithm in a first instruction mnemonic to be two rounds.

### Claim 9 (depends on 1)

The processor of claim 1, wherein the first instruction specifies said round-slice portion of the hashing algorithm in a first instruction mnemonic to be one round.

### Claim 10 (depends on 1)

The processor of claim 1, wherein the first instruction specifies said source data operand set as a SIMD register comprising eight 32-bit values.

### Claim 11 (depends on 1)

The processor of claim 1, wherein the first instruction specifies said source data operand set as a memory location comprising eight 32-bit values.

### Claim 12 (depends on 1)

The processor of claim 1, wherein the first instruction specifies said source data operand set as two SIMD registers each comprising four 32-bit values.

### Claim 13 (depends on 1)

The processor of claim 1, wherein the first instruction specifies said round-slice portion of the hashing algorithm by a first field in an immediate operand to store a round number between 0 and 63 and by a second field to store an iteration count between 0 and 3.

### Claim 14

A processor comprising:
a decode stage to decode a first instruction for a SIMD SM3 message expansion, the first instruction specifying a first source data operand set, a second source data operand set, and an expansion extent; and
one or more execution units, responsive to the decoded first instruction, to:
perform a number of SM3 message expansions from the first and second source data operand sets, the number of SM3 message expansions being determined by the specified expansion extent; and
store a result of the first instruction in a SIMD destination register.

### Claim 15 (depends on 14)

The processor of claim 14, wherein the first instruction specifies said SIMD destination register as a destination operand.

### Claim 16 (depends on 14)

The processor of claim 14, wherein the first instruction specifies said first and second source data operand sets as two SIMD registers each comprising eight 32-bit values.

### Claim 17 (depends on 14)

The processor of claim 14, wherein the first instruction specifies said expansion extent by a first field in an immediate operand.

### Claim 18 (depends on 14)

The processor of claim 14, wherein the first instruction specifies said expansion extent in a first instruction mnemonic to indicate a message expansion of four new 32-bit words.

### Claim 19 (depends on 18)

The processor of claim 18, wherein the message expansion for one of the four new 32-bit words requires one other of the four new 32-bit words in addition to the first and second source data operand sets.

### Claim 20 (depends on 14)

The processor of claim 14, wherein the first instruction specifies said expansion extent in a first instruction mnemonic to indicate a message expansion of two new 32-bit words.
