# US 10,958,414 B2 · Clock period randomization for defense against cryptographic attacks

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

- Number: US 10,958,414 B2
- Document ID: US10958414B2
- Status: Granted
- Kind: B2
- Application number: 15/436,489
- Filed: 2017-02-17
- Published: 2017-08-24
- Granted: 2021-03-23
- Earliest claimed: 2016-02-23
- Assignees: Google Inc.
- Applicants: Google Inc.
- Inventors: Donald Stark
- Web page: https://patentgrep.com/patent/US10958414B2

## CPC

- H04L 9/002: {Countermeasures against attacks on cryptographic mechanisms (network architectures or network communication protocols for protection against malicious traffic H04L63/1441)}
- G06F 7/582: {Pseudo-random number generators}
- G06F 7/588: {Random number generators, i.e. based on natural stochastic processes}
- H04L 9/003: {for power analysis, e.g. differential power analysis [DPA] or simple power analysis [SPA]}
- H04L 9/004: {for fault attacks}
- H04L 2209/08: Randomization, e.g. dummy operations or using noise
- H04L 2209/12: Details relating to cryptographic hardware or logic circuitry
- 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

Methods, systems, and apparatuses for defending against cryptographic attacks using clock period randomization. The methods, systems, and apparatuses are designed to make side channel attacks and fault injection attacks more difficult by using a clock with a variable period during a cryptographic operation. In an example embodiment, a clock period randomizer includes a fixed delay generator and a variable delay generator, wherein a variable delay generated by the variable delay generator is based on a random or pseudorandom value that is changed occasionally or periodically. The methods, systems, and apparatuses are useful in hardware security applications where fault injection and/or side channel attacks are of concern.

## Claims

### Claim 1

A method of generating a variable clock signal with a variable clock period for use during a cryptographic operation, the method comprising:
receiving an input clock signal;
generating a fixed delay amount;
generating a variable delay amount;
combining the fixed delay amount and the variable delay amount to create a combined delay amount;
applying the combined delay amount to the input clock signal to create the variable clock period; and
generating the variable clock signal based on the variable clock period to control a device during the cryptographic operation.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving the variable clock signal;
generating another variable delay amount;
combining the fixed delay amount and the other variable delay amount to create another combined delay amount;
applying the other combined delay amount to the variable clock signal to create another variable clock period that is different from the variable clock period; and
outputting another variable clock signal based on the other variable clock period to control the device during the cryptographic operation.

### Claim 3 (depends on 1)

The method of claim 1, wherein a lower limit of the combined delay amount corresponds to a minimum clock period that the device can handle.

### Claim 4 (depends on 1)

The method of claim 1, wherein an upper limit of the combined delay amount corresponds to a maximum clock period that satisfies a performance threshold for the device.

### Claim 5 (depends on 1)

The method of claim 1, wherein the cryptographic operation contains a key branch or jump instruction.

### Claim 6 (depends on 1)

The method of claim 1, wherein the variable clock period prevents a fault injection attack on the device.

### Claim 7 (depends on 1)

The method of claim 1, wherein the fixed delay amount is created by a plurality of ring oscillators.

### Claim 8 (depends on 4)

The method of claim 4, wherein the variable delay amount is based on a random or pseudorandom value.

### Claim 9 (depends on 8)

The method of claim 8, wherein the random or pseudorandom value is used to control a phase interpolator that controls the variable delay amount.

### Claim 10 (depends on 8)

The method of claim 8, wherein the random or pseudorandom value is used to control a plurality of delay generators.

### Claim 11 (depends on 10)

The method of claim 10, wherein:
the delay generators comprise varactors; and
the random or pseudorandom value is used to vary voltages of bottom plates of the varactors to control the variable delay amount.

### Claim 12 (depends on 10)

The method of claim 10, wherein:
the delay generators comprise banks of linear capacitors; and
the random or pseudorandom number is used to activate or deactivate each of the linear capacitors effective to control the variable delay amount.

### Claim 13 (depends on 12)

The method of claim 12, wherein the linear capacitors are activated or deactivated prior to generating the variable delay amount.

### Claim 14 (depends on 12)

The method of claim 12, wherein:
the random or pseudorandom number is used to select a trim code from a plurality of trim codes; and
the trim code determines whether each of the linear capacitors is activated or deactivated.

### Claim 15 (depends on 14)

The method of claim 14, wherein the trim code is applied to the linear capacitors based on binary-weighting or a unary coding.

### Claim 16

An apparatus for generating a randomized clock signal for use during a cryptographic operation, the apparatus comprising:
an input configured to receive an input clock signal;
a variable delay generator configured to produce a variable delay amount, the variable delay generator comprising a plurality of delay generators;
a controller configured to control the delay generators to produce the variable delay amount;
a fixed delay generator configured to generate a fixed delay amount;
circuitry configured to combine the fixed delay amount and the variable delay amount to create a combined delay amount; and
an output configured to generate the randomized clock signal during the cryptographic operation once the combined delay amount has elapsed since the input clock signal was received.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein:
the input is further configured to receive the randomized clock signal;
the variable delay generator is further configured to generate another variable delay amount;
the circuitry is further configured to combine the fixed delay amount and the other variable delay amount to create another combined delay amount that is different than the combined delay amount; and
the output is further configured to generate another randomized clock signal during the cryptographic operation once the other combined delay amount has elapsed since the randomized clock signal was received.

### Claim 18 (depends on 16)

The apparatus of claim 16, wherein a lower limit of the combined delay amount corresponds to a minimum clock period that an associated device can handle.

### Claim 19 (depends on 16)

The apparatus of claim 16, wherein an upper limit of the combined delay amount corresponds to a maximum clock period that satisfies a performance threshold for an associated device.

### Claim 20 (depends on 16)

The apparatus of claim 16, wherein the fixed delay generator comprises a plurality of ring oscillators.

### Claim 21 (depends on 16)

The apparatus of claim 16, wherein the cryptographic operation contains a key branch or jump instruction.

### Claim 22 (depends on 16)

The apparatus of claim 16, wherein the variable clock period prevents a fault injection attack on a device associated with the apparatus.

### Claim 23 (depends on 16)

The apparatus of claim 16, wherein the controller controls the delay generators based on a random or pseudorandom value.

### Claim 24 (depends on 23)

The apparatus of claim 23, wherein the controller comprises a phase interpolator that controls the delay generators based on the random or pseudorandom value.

### Claim 25 (depends on 23)

The apparatus of claim 23, wherein:
the delay generators comprise varactors; and
the random or pseudorandom value is used to vary voltages of bottom plates of the varactors to control the variable delay amount.

### Claim 26 (depends on 23)

The apparatus of claim 23, wherein:
the delay generators comprise banks of linear capacitors; and
the random or pseudorandom number is used to activate or deactivate each of the linear capacitors effective to control the variable delay amount.

### Claim 27 (depends on 26)

The apparatus of claim 26, wherein the linear capacitors are activated or deactivated by the controller prior to the variable delay generator generating the variable delay amount.

### Claim 28 (depends on 26)

The apparatus of claim 26, wherein:
the random or pseudorandom number is used by the controller to select a trim code from a plurality of trim codes; and
the trim code determines whether each of the linear capacitors is activated or deactivated by the controller.

### Claim 29 (depends on 28)

The apparatus of claim 28, wherein the trim code is used by the controller to activate or deactivate the linear capacitors based on binary-weighting or a unary coding.
