# US 2009/0268900 A1 · Signed montgomery arithmetic

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

- Number: US 2009/0268900 A1
- Document ID: US20090268900A1
- Status: Published application
- Kind: A1
- Application number: 12/260,865
- Filed: 2008-10-29
- Published: 2009-10-29
- Earliest claimed: 2007-11-02
- Assignees: Certicom Corp.
- Inventors: Robert J. Lambert
- Web page: https://patentgrep.com/patent/US20090268900A1

## CPC

- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G06F 7/728: {using Montgomery reduction}
- G06F 21/86: Secure or tamper-resistant housings
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method configured for applying Montgomery style reduction directly to negative quantities as well as positive values, producing the new form which does not require conditional operations to move values into the positive range. The low-order components of the resulting product, or partially completed product, can be reduced either by the addition of multiples of the modulus, as is usual in the standard Montgomery multiplication which accepts positive values, or by subtracting multiples of the modulus, which of course depends on the actual computation. Signed versions of the Montgomery values in a Montgomery computation are used to avoid the conditional addition and subtraction that can leak information, for example, using a two's complement representation.

## Claims

### Claim 1

A method for performing Montgomery arithmetic in a cryptographic operation comprising representing operands in a Montgomery arithmetic operation as signed values; and operating on said signed values to produce a result for use in said cryptographic operation.

### Claim 2 (depends on 1)

The method according to claim 1 wherein said arithmetic operation is Montgomery multiplication.

### Claim 3 (depends on 1)

The method according to claim 1 wherein said signed values are obtained by representing said operands in two's complement form.

### Claim 4 (depends on 1)

The method according to claim 1 wherein said signed values are obtained by representing said operands in one's complement form.

### Claim 5 (depends on 1)

The method according to claim 1 comprising executing a signed-capable Montgomery operation stored in a Montgomery machine to instruct said Montgomery machine to operate using said signed values.

### Claim 6

A computer readable medium for performing Montgomery arithmetic in a cryptographic operation comprising computer readable instructions for representing operands in a Montgomery arithmetic operation as signed values; and operating on said signed values to produce a result for use in said cryptographic operation.

### Claim 7 (depends on 6)

The computer readable medium according to claim 6 wherein said arithmetic operation is Montgomery multiplication.

### Claim 8 (depends on 6)

The computer readable medium according to claim 6 wherein said signed values are obtained by representing said operands in two's complement form.

### Claim 9 (depends on 6)

The computer readable medium according to claim 6 wherein said signed values are obtained by representing said operands in one's complement form.

### Claim 10 (depends on 6)

The computer readable medium according to claim 6 comprising instructions for executing a signed-capable Montgomery operation stored in a Montgomery machine to instruct said Montgomery machine to operate using said signed values.

### Claim 11

A Montgomery machine comprising an arithmetic logic unit configured to operate on signed versions of Montgomery operands; a register file; and a controller, said controller being configured to load said signed versions of said Montgomery operands into said register and operate said arithmetic logic unit on said signed versions to produce a result.

### Claim 12 (depends on 11)

The machine according to claim 11 wherein said arithmetic operation is Montgomery multiplication.

### Claim 13 (depends on 11)

The machine according to claim 11 wherein said signed values are obtained by representing said operands in two's complement form.

### Claim 14 (depends on 11)

The machine according to claim 11 wherein said signed values are obtained by representing said operands in one's complement form.

### Claim 15 (depends on 11)

The machine according to claim 11, further comprising a memory storing a signed capable Montgomery operation, said controller being further configured for executing said signed-capable Montgomery operation to instruct said controller to operate using said signed values.

### Claim 16 (depends on 15)

The machine according to claim 15, further comprising a traditional Montgomery operation stored in said memory, said controller being further configured for selecting either said signed-capable Montgomery operation or said traditional Montgomery operation according to an instruction.
