# US 2025/0211422 A1 · Linear converter, block encryption and/or decryption circuits and chip

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

- Number: US 2025/0211422 A1
- Document ID: US20250211422A1
- Status: Published application
- Kind: A1
- Application number: 18/823,649
- Filed: 2024-09-03
- Published: 2025-06-26
- Earliest claimed: 2023-12-26
- Assignees: Montage LZ Technologies (Chengdu) Co., Ltd.
- Applicants: Montage LZ Technologies (Chengdu) Co., Ltd.
- Inventors: Weike RAO; Rui YANG; Jipeng XIONG; Haihua WEN; Chiachen CHANG
- Web page: https://patentgrep.com/patent/US20250211422A1

## CPC

- H04L 9/0631: {Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms}
- H04L 9/0637: {Modes of operation, e.g. cipher block chaining [CBC], electronic codebook [ECB] or Galois/counter mode [GCM]}
- H04L 2209/122: Hardware reduction or efficient architectures
- H04L 2209/125: Parallelization or pipelining, e.g. for accelerating processing of cryptographic operations
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A linear converter, block encryption/decryption circuits, and a chip. The linear converter multiplies the data block in the block encryption and/or decryption circuits with the constant coefficient matrix in the Galois Field for one time to obtain the linear transformation result, and elements in the constant coefficient matrix are obtained according to transformation coefficients of the basic transformation. The linear converter can reduce the delay of the block encryption and/or decryption process.

## Claims

### Claim 1

A linear converter, applied to block encryption circuit and/or decryption circuit, wherein the linear converter is configured to multiply a data block in the block encryption circuit and/or decryption circuit with a constant coefficient matrix in the Galois Field for one time to obtain a linear transformation result, and elements in the constant coefficient matrix are obtained according to transformation coefficients of a basic transformation.

### Claim 2 (depends on 1)

The linear converter according to claim 1, wherein the linear converter comprises n Exclusive-OR (XOR) combinational logic circuits, each of the XOR combinational logic circuits is configured to perform operations on corresponding data bits in the data block in stage to obtain 1 bit of data in the linear transformation result, wherein n is a positive integer, and n is determined by the quantity of data bits comprised in the data block.

### Claim 3 (depends on 2)

The linear converter according to claim 2, wherein the XOR combinational logic circuits comprise multiple XOR gates, wherein the quantity of XOR gates and their corresponding data bits are determined by corresponding elements in the constant coefficient matrix.

### Claim 4 (depends on 2)

The linear converter according to claim 2, wherein the XOR combinational logic circuits comprise multiple stages of XOR combinational logic units, each stage of the XOR combinational logic units comprises at least one XOR gate.

### Claim 5 (depends on 4)

The linear converter according to claim 4, wherein multiple XOR gates in XOR combinational logic units of the same stage perform XOR operations on the input data bits in a parallel manner.

### Claim 6 (depends on 2)

The linear converter according to claim 2, wherein the n XOR combinational logic circuits obtain n data bits of the linear transformation result in parallel.

### Claim 7 (depends on 1)

The linear converter according to claim 1, wherein a length of the data block is 128 bits.

### Claim 8 (depends on 1)

The linear converter according to claim 1, wherein the constant coefficient matrix is determined by:
determining a transformation matrix C based on R(a)=(l(aƒ−1, aƒ−2, . . . , a0)∥aƒ−1∥. . . ∥a1) and the transformation coefficients of the basic transformation l, in stage to get R(a)=[aƒ−1, aƒ−2, . . . , a0]⊗C, wherein R represents the linear transformation, l represents the basic transformation, a represents the data block, ai represents a i -th byte of the data block a, and ƒ represents a quantity of bytes of the data block a; and
determining the constant coefficient matrix based on the transformation matrix C and a quantity of rounds nr for which R is to be transformed.

### Claim 9 (depends on 8)

The linear converter according to claim 8, wherein the constant coefficient matrix is equivalent to the transformation matrix C raised to the power of nr.

### Claim 10 (depends on 1)

A block encryption circuit, comprising:
a round function module, configured to perform multiple rounds of operation on plaintext data to obtain encrypted intermediate data; and
a key imposition module, configured to process the encrypted intermediate data using a key to obtain a ciphertext;
wherein, the round function module comprises a key imposition unit, a non-linear substitution unit, and the linear converter as claimed in claim 1.

### Claim 11 (depends on 1)

A block decryption circuit, comprising:
an inverse round function module, configured to perform multiple rounds of operation on ciphertext data to obtain decrypted intermediate data; and
a key imposition module, configured to process the decrypted intermediate data using a key to obtain plaintext;
wherein, the inverse round function module comprises a key imposition unit, a non-linear substitution unit, and an inverse linear transformation unit, the inverse linear transformation unit comprises the linear converter as claimed in claim 1.

### Claim 12 (depends on 1)

A chip, comprising: the linear converter as claimed in claim 1, a block encryption circuit, or a block decryption circuit;
wherein the block encryption circuit comprises: a round function module, configured to perform multiple rounds of operation on plaintext data to obtain encrypted intermediate data; and a key imposition module, configured to process the encrypted intermediate data using a key to obtain a ciphertext; wherein, the round function module comprises a key imposition unit, a non-linear substitution unit, and the linear converter;
wherein the block decryption circuit comprises: an inverse round function module, configured to perform multiple rounds of operation on ciphertext data to obtain decrypted intermediate data; and a key imposition module, configured to process the decrypted intermediate data using a key to obtain plaintext; wherein, the inverse round function module comprises a key imposition unit, a non-linear substitution unit, and an inverse linear transformation unit, the inverse linear transformation unit comprises the linear converter.
