# US 2017/0286063 A1 · Non-modular multiplier, method for non-modular multiplication and computational device

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

- Number: US 2017/0286063 A1
- Document ID: US20170286063A1
- Status: Published application
- Kind: A1
- Application number: 15/452,744
- Filed: 2017-03-08
- Published: 2017-10-05
- Earliest claimed: 2016-03-30
- Assignees: Winbond Electronics Corp.
- Applicants: Winbond Electronics Corp.
- Inventors: Uri Kaluzhny
- Web page: https://patentgrep.com/patent/US20170286063A1

## CPC

- G06F 7/523: Multiplying only
- G06F 7/588: {Random number generators, i.e. based on natural stochastic processes}
- G06F 7/722: {Modular multiplication (G06F7/724, G06F7/727, G06F7/728 take precedence)}
- G06F 7/729: {using representation by a residue number system}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A non-modular multiplier, a method for non-modular multiplication and a computational device are provided. The non-modular multiplier includes an interface and circuitry. The interface is configured to receive n-bit integers A and B. The circuitry is configured to calculate a non-modular product (A*B) by performing a sequence of computations, and to randomize a pattern of an electrical power consumed by the multiplier when performing the sequence. The sequence includes: generating a random number w, determining moduli M1 and M2 that depend on a number R=2k, k equals a bit-length of M1 and M2, and on the random number w, and calculating a first modular product C=A*B % M1 and a second modular product D=A*B % M2, and producing and outputting the non-modular product (A*B) based on the first and second modular products.

## Claims

### Claim 1

A non-modular multiplier, comprising:
an interface, which is configured to receive n-bit integers A and B; and
circuitry, which is configured to calculate a non-modular product (A*B) by performing a sequence of computations, and to randomize a pattern of an electrical power consumed by the non-modular multiplier when performing the sequence, the sequence comprising:
generating a random number w;
determining moduli M1 and M2 that depend on a number R=2k, wherein k equals a bit-length of M1 and M2, and on the random number w, and calculating a first modular product C=A*B % M1 and a second modular product D=A*B % M2; and
producing and outputting the non-modular product (A*B) based on the first and second modular products.

### Claim 2 (depends on 1)

The non-modular multiplier according to claim 1, wherein the circuitry comprises a Montgomery multiplier, which is configured to calculate the first and second modular products.

### Claim 3 (depends on 2)

The non-modular multiplier according to claim 2, wherein the circuitry is configured to convert A to A′ in the modulus M1 of Montgomery domain by calculating w*A, to convert B to B′ in the modulus M2 of Montgomery domain by calculating (w−d)*B, wherein d is an integer smaller than w, and to calculate the first and second modular products by calculating respective Montgomery products A′⊙B and A⊙B′ using the Montgomery multiplier.

### Claim 4 (depends on 1)

The non-modular multiplier according to claim 1, wherein (A*B) is represented as a combination of a low part ABL and a high part ABH satisfying (A*B)=ABH*R+ABL, and wherein the circuitry is configured to calculate ABH and ABL based on the first and second modular products.

### Claim 5 (depends on 4)

The non-modular multiplier according to claim 4, wherein the circuitry is configured to calculate the high part as ABH=(C−D)/d), wherein d is an integer used in converting B to Montgomery domain, and to calculate the low part as ABL=C−w*ABH.

### Claim 6 (depends on 1)

The non-modular multiplier according to claim 1, wherein the circuitry is configured to determine modulus M1 as M1=R−w, and to determine modulus M2 as M2=R−(w−d), wherein d is an integer smaller than w.

### Claim 7

A method for non-modular multiplication, comprising:
receiving n-bit integers A and B; and
using a multiplier, calculating a non-modular product (A*B) by performing a sequence of computations, and randomizing a pattern of an electrical power consumed by the multiplier when performing the sequence, the sequence comprising:
generating a random number w;
determining moduli M1 and M2 that depend on a number R=2k, wherein k equals a bit-length of M1 and M2, and on the random number w, and calculating a first modular product C=A*B % M1 and a second modular product D=A*B % M2; and
producing and outputting the non-modular product (A*B) based on the first and second modular products.

### Claim 8 (depends on 7)

The method for non-modular multiplication according to claim 7, wherein calculating the first and second modular products comprises calculating the first and second modular products using a Montgomery multiplier.

### Claim 9 (depends on 8)

The method for non-modular multiplication according to claim 8, wherein calculating the first and second modular products comprises converting A to A′ in the modulus M1 of Montgomery domain by calculating w*A, converting B to B′ in the modulus M2 of Montgomery domain by calculating (w−d)*B, wherein d is an integer smaller than w, and calculating the first and second modular products by calculating respective Montgomery products A′⊙B and A⊙B′ using the Montgomery multiplier.

### Claim 10 (depends on 7)

The method for non-modular multiplication according to claim 7, wherein (A*B) is represented as a combination of a low part ABL and a high part ABH satisfying (A*B)=ABH*R+ABL, and comprising calculating ABH and ABL based on the first and second modular products.

### Claim 11 (depends on 10)

The method for non-modular multiplication according to claim 10, wherein calculating the high part comprises calculating ABH=(C−D)/d), wherein d is an integer used in converting B to Montgomery domain, and wherein calculating the low part comprises calculating ABL=C−w*ABH.

### Claim 12 (depends on 7)

The method for non-modular multiplication according to claim 7, wherein determining the moduli M1 and M2 comprises determining modulus M1 as M1=R−w, and determining modulus M2 as M2=R−(w−d), wherein d is an integer smaller than w.

### Claim 13

A computational device, comprising:
an interface, which is configured to receive n-bit integers A and B; and
a multiplier, which is configured to calculate a non-modular product (A*B) by performing a sequence of computations, and randomizing a pattern of an electrical power consumed by the multiplier when performing the sequence, the sequence comprising:
generating a random number w;
determining moduli M1 and M2 that depend on a number R=2k, wherein k equals a bit-length of M1 and M2, and on the random number w, and calculating a first modular product C=A*B % M1 and a second modular product D=A*B % M2; and
producing and outputting the non-modular product (A*B) based on the first and second modular products.

### Claim 14 (depends on 13)

The device according to claim 13, wherein the multiplier applies first and second non-modular multiplication operations between A and B, with different respective w values, wherein first and second power consumption patterns, corresponding to power consumed during executing the first and second non-modular multiplication operations, comprise different respective power consumption patterns.
