# US 2020/0264872 A1 · Calculating device and method

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

- Number: US 2020/0264872 A1
- Document ID: US20200264872A1
- Status: Published application
- Kind: A1
- Application number: 16/061,516
- Filed: 2016-12-05
- Published: 2020-08-20
- Earliest claimed: 2015-12-14
- Assignees: Koninklijke Philips N.V.
- Applicants: Koninklijke Philips N.V.
- Inventors: HENDRIK JAN JOZEF HUBERTUS SCHEPERS; MATHIAS HUBERTUS MECHTILDIS ANTONIUS GORISSEN; LEANDRO MARIN
- Web page: https://patentgrep.com/patent/US20200264872A1

## CPC

- G06F 9/3001: {Arithmetic instructions}
- H04L 9/00: {Cryptographic mechanisms or cryptographic} arrangements for secret or secure communications; Network security protocols
- G06F 7/00: Methods or arrangements for processing data by operating upon the order or content of the data handled (logic circuits H03K19/00)
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/3887: {controlled by a single instruction for multiple data lanes [SIMD]}
- G06F 16/9017: {using directory or table look-up (use of a directory or look-up table in file systems G06F16/13)}
- G06F 21/14: against software analysis or reverse engineering, e.g. by obfuscation
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 2207/7261: Uniform execution, e.g. avoiding jumps, or using formulae with the same power profile
- H04L 2209/16: Obfuscation or hiding, e.g. involving white box
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A calculating device (100) arranged to perform calculations on elements of a ring (R), a ring addition and a ring multiplication being defined on the ring The calculating device comprises an operator module (120) comprising multiple operator units, and a calculation manager (130) arranged to perform a ring multiplication by applying a sequence of the multiple operator units, and perform a ring addition be applying a sequence of the multiple operator units, wherein the sequence for the ring multiplication is the same as the sequence for the ring addition.

## Claims

### Claim 1

A calculating device arranged to perform calculations on elements of a ring (R), a ring addition and a ring multiplication being defined on the ring, the calculating device comprising
an operand store arranged to store encoded ring elements, an encoded ring element representing an element of the ring in encoded form,
an operator module comprising multiple operator units, at least one of the operator units being dyadic,
a dyadic operator unit being arranged to
receive an encoded ring element and a parameter, and
perform a fixed calculation on said encoded ring element and the parameter, thus producing a new encoded ring element, and
a calculation manager arranged to
receive a first encoded ring element and a second encoded ring element,
perform a ring multiplication by applying a sequence of the multiple operator units to the first encoded ring element using parameters obtained at least from the second encoded ring element, and
perform a ring addition by applying a sequence of the multiple operator units to the first encoded ring element using parameters obtained at least from the second encoded ring element, wherein the sequence for the ring multiplication is the same as the sequence for the ring addition.

### Claim 2 (depends on 1)

The calculating device as in claim 1, wherein at least one of the operator units is monadic
a monadic operator unit being arranged to
receive an encoded ring element, and
perform a fixed calculation on said encoded ring element, thus producing a new encoded ring element.

### Claim 3 (depends on 1)

The calculating device as in claim 1, in which an encoded ring element (x) is encoded as a list of multiple ring elements ((a,b)) of the ring.

### Claim 4 (depends on 3)

The calculating device as in claim 3, wherein the list comprises two ring elements, the encoded ring element being the difference between said two unit ring elements (x=a−b).

### Claim 5 (depends on 4)

The calculating device as in claim 4, wherein said two ring elements are represented as exponents ((α,β)), the two ring elements being the exponent of a common base element (u) of the ring raised to the power indicated by the exponent (x=uα−uβ).

### Claim 6 (depends on 1)

The calculating device as in claim 1, wherein the calculation manager is arranged to perform a ring subtraction by applying a sequence of the multiple operator units to the first encoded ring element using parameters obtained at least from the second encoded ring element, wherein the sequence for the ring subtraction is the same as the sequence for the ring addition and the sequence for the ring multiplication.

### Claim 7 (depends on 1)

The calculating device as in claim 1, wherein
the multiple operator units comprise a dyadic up operator unit (Δ), the up operator unit being arranged to
receive a representation for a first ring element (a) and a second ring element (b), the encoded ring element (x) being the difference between the first ring element and the second ring element (x=a−b), and to receive a parameter ring element (c), and
calculate the first ring element ring multiplied with the inverse of the parameter (ac−1) and calculate the second ring element ring multiplied with the inverse of the parameter (bc−1), the new encoded ring element (y) being represented by the results of said two calculations (y=ac−1−bc−1), and/or
the multiple operator units comprise a dyadic down operator unit (∇), the down operator unit being arranged to
receive a representation for a first ring element (a) and a second ring element (b), the encoded ring element (x) being the difference between the first ring element and the second ring element (x=a−b), and to receive a parameter ring element (c), and
calculate the first ring element ring multiplied with the parameter (ac) and calculate the second ring element ring multiplied with the parameter (bc), the new encoded ring element (y) being represented by the results of said two calculations (y=ac−bc).

### Claim 8 (depends on 1)

The calculating device as in claim 1, wherein the multiple operator units comprise a monadic box operator unit (□), the box operator unit being arranged to
receive a representation for a first ring element (a) and a second ring element (b), the encoded ring element (x) being the difference between the first ring element and the second ring element (x=a−b),
obtain the negation of the encoded ring element (x) plus a fixed increment (−(x+1)=−x−1) in encoded form.

### Claim 9 (depends on 1)

The calculating device as in claim 1, comprising a storage storing a look-up table implementing the box operator unit.

### Claim 10 (depends on 7)

The calculating device as in claim 7, wherein the calculation manager is arranged to
receive a representation for a first first ring element (a) and a first second ring element (b), the first encoded ring element (x) being the difference (x=a−b) between the first first ring element (a) and the first second ring element (b),
receive a representation for a second first ring element (c) and a second second ring element (d), the second encoded ring element (x) being the difference (y=c−d) between the second first ring element (c) and the second second ring element (d), wherein
the sequence for the ring addition is given by
the up operator unit with parameter the second first ring element (c),
the box operator unit
the down operator unit with parameter the second first ring element (c),
the up operator unit with parameter the second second ring element (d),
the box operator unit
the down operator unit with parameter the second second ring element (d), and/or
the sequence for the ring multiplication is given by
the up operator unit with parameter the ring multiplication (cbd) of the second first ring element (c), the first second ring element (b), and the second second ring element (d)
the box operator unit
the down operator unit with parameter the ring multiplication (bd) of the first second ring element (b) and the second second ring element (d),
the up operator unit with parameter the ring multiplication (ad) of the first first ring element (a) and the second second ring element (d),
the box operator unit
down operator unit with parameter the ring multiplication (ad) of the first first ring element (a) and the second second ring element (d),

### Claim 11 (depends on 1)

The calculating device as in claim 1 comprising a combining unit, the combining unit being arranged to select two consecutive operations of the operator units, combine the selected operations into a single new operation unit, and combine the corresponding parameters accordingly.

### Claim 12 (depends on 1)

The calculation system comprising
a calculation device according to claim 1, and
a parameter unit, separate from the calculation manager, arranged to compute the parameters obtained at least from the second encoded ring element for performing the ring multiplication and ring addition by the calculation manager.

### Claim 13 (depends on 12)

The calculation system as in claim 12, comprising a first circuit arranged as the calculation device and a second circuit arranged as the parameter unit, the first and second circuit being distinct and different circuits.

### Claim 14

A calculating method arranged to perform calculations on elements of a ring (R), a ring addition and a ring multiplication being defined on the ring, the calculating method comprising
storing encoded ring elements, an encoded ring element representing an element of the ring in encoded form,
multiple operations, at least one of the operations being dyadic,
a dyadic operations comprising
receiving an encoded ring element and a parameter, and
performing a fixed calculation on said encoded ring element and the parameter, thus producing a new encoded ring element,
receiving a first encoded ring element and a second encoded ring element,
performing a ring multiplication by applying a sequence of the multiple operations to the first encoded ring element using parameters obtained at least from the second encoded ring element, and
performing a ring addition be applying a sequence of the multiple operations to the first encoded ring element using parameters obtained at least from the second encoded ring element, wherein the sequence for the ring multiplication is the same as the sequence for the ring addition.

### Claim 15 (depends on 14)

A computer program comprising computer program instructions arranged to perform the method of claim 14 when the computer program is run on a computer.

### Claim 16 (depends on 15)

A computer readable medium comprising the computer program s in claim 15.
