# US 2025/0062890 A1 · Montgomery multiplier architecture

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

- Number: US 2025/0062890 A1
- Document ID: US20250062890A1
- Status: Published application
- Kind: A1
- Application number: 18/373,111
- Filed: 2023-09-26
- Published: 2025-02-20
- Earliest claimed: 2023-08-14
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Mojtaba BISHEH NIASAR; Bharat S. Pillilli
- Web page: https://patentgrep.com/patent/US20250062890A1

## CPC

- H04L 9/06: the encryption apparatus using shift registers or memories for block-wise {or stream} coding, e.g. DES systems {or RC4; Hash functions; Pseudorandom sequence generators}
- G06F 7/722: {Modular multiplication (G06F7/724, G06F7/727, G06F7/728 take precedence)}
- G06F 7/728: {using Montgomery reduction}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Montgomery multiplier architectures are provided. A circuit can include an initial processing element (PE) circuit configured to generate a first output including (i) a radix of a carry out and (ii) a radix of an intermediate result based on radixes of respective operands, a radix of an inverse of a modulus, and a radix of the modulus, middle PE circuits configured to generate a second output including (i) respective radixes of a Montgomery multiplication result and (ii) further respective radixes of a carry out on two consecutive clock cycles based on the first output, and a final PE circuit configured to generate further radixes of the Montgomery multiplication results on two consecutive, subsequent clock cycles based on the second output.

## Claims

### Claim 1

A Montgomery multiplier circuit comprising:
an initial processing element (PE) circuit configured to, based on inputs from a cryptosystem, generate a first output including (i) a radix of a carry out and (ii) a radix of an intermediate result, the inputs from the cryptosystem including a radix of a first operand, a radix of a second operand, a radix of an inverse of a modulus, and a radix of the modulus;
middle PE circuits configured to generate, based on the first output, a second output including (i) respective radixes of a first portion of a Montgomery multiplication result and (ii) further respective radixes of a carry out on two consecutive clock cycles; and
a final PE circuit configured to generate, based on the second output, further radixes of a second portion of the Montgomery multiplication result on two consecutive, subsequent clock cycles.

### Claim 2 (depends on 1)

The Montgomery multiplier of claim 1, wherein the middle PE circuits further operate based on further radixes of the operands.

### Claim 3 (depends on 1)

The Montgomery multiplier of claim 1, wherein the middle PE circuits are connected in series with each other and the initial PE circuit to operate on output of an immediately prior PE circuit and provide output to the final PE circuit.

### Claim 4 (depends on 1)

The Montgomery multiplier of claim 1, wherein the initial PE circuit operates every other clock cycle.

### Claim 5 (depends on 4)

The Montgomery multiplier of claim 4, wherein the middle and final PE circuits operate every clock cycle.

### Claim 6 (depends on 1)

The Montgomery multiplier of claim 1, wherein the initial PE circuit includes:
a first multiplier configured to receive the radixes of the respective operands and generate a first product thereof;
a first adder configured to receive least significant bits (LSBs) of the product and a Montgomery multiplier result from a middle PE circuit of the middle PE circuits and determine a first sum thereof;
a second adder configured to receive a most significant bit (MSB) of the sum and MSBs of the product and generate a second sum thereof; and
a second multiplier configured to receive the radix of the inverse of the modulus and the second sum and generate the intermediate result that is a second product thereof.

### Claim 7 (depends on 6)

The Montgomery multiplier of claim 6, wherein the initial PE circuit further includes:
a first flip flop configured to receive LSBs of the first sum;
a second flip flop configured to receive the second sum; and
a third flip flop configured to receive the intermediate result.

### Claim 8 (depends on 7)

The Montgomery multiplier of claim 7, wherein the initial PE circuit further includes:
a third multiplier configured to receive output of the third flip flop and the radix of the modulus and generate a third product thereof;
a third adder configured to receive LSBs of the third product and output of the first flip flop and generate a third sum thereof; and
a fourth adder configured to receive MSBs of the third product, output of the second flip flop, and an MSB of the third product and generate the radix of the carry out that is a sum thereof.

### Claim 9 (depends on 1)

The Montgomery multiplier of claim 1, wherein each of the middle PE circuits includes:
a fourth multiplier configured to receive the radixes of the respective operands and determine a fourth product thereof;
a fifth multiplier configured to receive the intermediate output and a radix of the modulus and generate a fifth product thereof; and
a fifth adder configured to receive the fourth product, the fifth product, the carry out from an immediately previous middle PE circuit of the middle PE circuits or the initial PE circuit, and a Montgomery multiplication result from a downstream middle PE circuit of the middle PE circuits or the final PE circuit and generate a fifth sum thereof.

### Claim 10 (depends on 9)

The Montgomery multiplier of claim 9, wherein each of the middle PE circuits further includes:
a fourth flip flop configured to receive LSBs of the fifth sum, the LSBs of the fifth sum corresponding to a radix of the result of Montgomery multiplication; and
a fifth flip flop configured to receive MSBs of the fifth sum, the MSBs of the fifth sum corresponding to a middle carry out of the middle PE circuit.

### Claim 11 (depends on 10)

The Montgomery multiplier of claim 10, wherein the middle PE circuits each further include:
a first multiplexer configured to receive the carry out and the middle carry out from the fifth flip flop as respective inputs; and
a second multiplexer configured to receive the Montgomery multiplication result from the downstream middle PE circuit of the middle PE circuits or the final PE circuit and the LSBs of the fifth sum from the fourth flip flop as respective inputs.

### Claim 12 (depends on 11)

The Montgomery multiplier of claim 11, wherein the final PE circuit includes:
a sixth multiplier configured to receive the radixes of the respective operands and determine a sixth product thereof;
a seventh multiplier configured to receive the intermediate output and a radix of the modulus and generate a seventh product thereof; and
a sixth adder configured to receive the sixth product, the seventh product, the carry out from a last middle PE circuit of the middle PE circuits, and a radix of the result of the Montgomery multiplication from the final PE circuit and generate a sixth sum thereof.

### Claim 13 (depends on 12)

The Montgomery multiplier of claim 12, wherein the final PE circuit further includes:
a sixth flip flop configured to receive LSBs of the sixth sum, the LSBs of the sixth sum corresponding to a radix of the result of the Montgomery multiplication; and
a seventh flip flop configured to receive MSBs of the sixth sum, the MSBs of the sixth sum corresponding to a final carry out of the final PE circuit.

### Claim 14 (depends on 13)

The Montgomery multiplier of claim 13, wherein the final PE circuit further includes:
a third multiplexer coupled to the sixth adder, the third multiplexer configured to receive the final carry out and the carry out from a last middle PE circuit of the middle PE circuits as respective inputs; and
a fourth multiplexer configured to receive the radix of the result of the Montgomery multiplication from the fifth flip flop and the LSBs of the sixth sum from the sixth flip flop as respective inputs.

### Claim 15

A method comprising:
generating, based on radixes of respective operands, a radix of an inverse of a modulus, and a radix of the modulus, by an initial processing element (PE) circuit and during a first clock cycle, a first output including (i) a radix of a carry out and (ii) a radix of an intermediate result;
generating, based on the first output, by middle PE circuits, and during second and third clock cycles, respective second outputs including (i) respective radixes of a Montgomery multiplication result and (ii) further respective radixes of a carry out based on the first output; and
generating, based on the second output, by a final PE circuit, and during third and fourth clock cycles, further respective radixes of the Montgomery multiplication result based on the second output.

### Claim 16 (depends on 15)

The method of claim 15, wherein the middles PE circuits operate based on the radix of the carry out, the radix of the intermediate result, and the radixes of the operands.

### Claim 17 (depends on 15)

The method of claim 15, wherein the middle PE circuits are connected in series with each other.

### Claim 18 (depends on 15)

The method of claim 15, wherein the initial PE circuit operates every other clock cycle and the middle and final PE circuits operate every clock cycle.

### Claim 19

A system for Montgomery multiplication, the system comprising:
a clock;
a cryptosystem configured to implement a cryptographic algorithm;
an initial processing element (PE) circuit configured to, based on inputs from the cryptosystem and during a first clock cycle of the clock, generate a first output including (i) a radix of a carry out and (ii) a radix of an intermediate result, the inputs from the cryptosystem including a radix of a first operand, a radix of a second operand, a radix of an inverse of a modulus, and a radix of the modulus;
middle PE circuits configured to generate, during second and third clock cycles of the clock and based on the first output, a second output including (i) respective radixes of a first portion of a Montgomery multiplication result and (ii) further respective radixes of a carry out, the second and third clock cycles immediately after the first clock cycle; and
a final PE circuit configured to generate, during fourth and fifth clock cycles of the clock based on the second output, further radixes of a second portion of the Montgomery multiplication result, the fourth and fifth clock cycles immediately after the third clock cycle.

### Claim 20 (depends on 19)

The system of claim 19, wherein:
the middle PE circuits include a first middle PE circuit and a last middle PE circuit coupled in series with each other and the initial PE circuit and the final PE circuit;
the first middle PE circuit coupled to receive the first output from the initial PE circuit; and
the last middle PE circuit coupled to provide the second output to the final PE circuit.
