# US 2016/0261405 A1 · Computing key-schedules of the aes for use in white boxes

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

- Number: US 2016/0261405 A1
- Document ID: US20160261405A1
- Status: Published application
- Kind: A1
- Application number: 14/639,026
- Filed: 2015-03-04
- Published: 2016-09-08
- Earliest claimed: 2015-03-04
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Benoit Chevallier-Mames; Bruno Kindarji; Thomas Icart; Augustin J. Farrugia; Mathieu Ciet
- Web page: https://patentgrep.com/patent/US20160261405A1

## CPC

- H04L 9/0631: {Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms}
- H04L 9/002: {Countermeasures against attacks on cryptographic mechanisms (network architectures or network communication protocols for protection against malicious traffic H04L63/1441)}
- H04L 2209/046: of operations, operands or results of the operations
- H04L 2209/16: Obfuscation or hiding, e.g. involving white box
- H04L 2209/24: Key scheduling, i.e. generating round keys or sub-keys for block encryption
- H04L 2209/60: Digital content management, e.g. content distribution
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Some embodiments provide a method for performing a cryptographic process. The method receives first and second cipher keys. The method generates a set of subkeys corresponding to each of the first and second cipher keys. The set of subkeys for the first cipher key is dependent on the first cipher key and the second cipher key. The method performs the cryptographic process by using the generated sets of subkeys.

## Claims

### Claim 1

A method for performing a cryptographic process comprising a plurality of rounds, the method comprising:
receiving first and second cipher keys;
for the plurality of rounds, generating a first set of subkeys corresponding to the first cipher key as a function of the first cipher key;
for the plurality of rounds, generating a second set of subkeys corresponding to the second cipher key, wherein for each round after a first round, a subkey of the second set of subkeys is a function of (i) a first subkey of the first set of subkeys from a previous round and (ii) a second subkey of the second set of subkeys from the previous round; and
performing the cryptographic process using the generated sets of subkeys.

### Claim 2 (depends on 1)

The method of claim 1, wherein receiving the first and second cipher keys comprises:
receiving a first input comprising the first cipher key masked by a first input masking value; and
receiving a second input comprising the second cipher key, masked by a second masking value, and masked by the first cipher key.

### Claim 3 (depends on 1)

The method of claim 1, wherein generating the first set of subkeys corresponding to the first cipher key comprises generating a subkey for each of the plurality of rounds of the cryptographic process.

### Claim 4 (depends on 1)

The method of claim 1, wherein generating the second set of subkeys corresponding to the second cipher key comprises, for the first round of the cryptographic process, setting a first subkey for the second set of subkeys to the second cipher key masked by a masking value.

### Claim 5 (depends on 1)

The method of claim 1, wherein generating the second set of subkeys comprises performing a set of nonlinear operations to generate the subkey of the second set of subkeys of each round after the first round, the set of nonlinear operations comprising:
a nonlinear function of a portion of the first subkey of the first set of subkeys from the previous round masked by a first masking value; and
a nonlinear function of (i) a portion of the first subkey of the first set of subkeys from the previous round masked by (ii) a portion of the second subkey of the second set of subkeys from the previous round masked by (iii) the first masking value masked by (iv) a second masking value.

### Claim 6 (depends on 5)

The method of claim 5, wherein the set of nonlinear operations further comprises a function to substitute bytes of the subkey according to a substitution table.

### Claim 7 (depends on 1)

The method of claim 1, wherein the cryptographic process is advanced encryption standard (AES).

### Claim 8

A non-transitory machine readable medium storing a program which when executed by at least one processing unit performs a cryptographic process comprising a plurality of rounds, the program comprising sets of instructions for:
receiving first and second cipher keys;
for the plurality of rounds, generating a first set of subkeys corresponding to the first cipher key as a function of the first cipher key;
for the plurality of rounds, generating a second set of subkeys corresponding to the second cipher key, wherein for each round after a first round, a subkey of the second set of subkeys is a function of (i) a first subkey of the first set of subkeys from a previous round and (ii) a second subkey of the second set of subkeys from the previous round; and
performing the cryptographic process using the generated sets of subkeys.

### Claim 9 (depends on 8)

The non-transitory machine readable medium of claim 8, wherein the set of instructions for receiving the first and second cipher keys comprises sets of instructions for:
receiving a first input comprising the first cipher key masked by a first input masking value; and
receiving a second input comprising the second cipher key, masked by a second masking value, and masked by the first cipher key.

### Claim 10 (depends on 8)

The non-transitory machine readable medium of claim 8, wherein the set of instructions for generating the first set of subkeys corresponding to the first cipher key comprises a set of instructions for generating a subkey for each of the plurality of rounds of the cryptographic process.

### Claim 11 (depends on 8)

The non-transitory machine readable medium of claim 8, wherein the set of instructions for generating the second set of subkeys corresponding to the second cipher key comprises a set of instructions for setting, for the first round of the cryptographic process, a first subkey for the second set of keys to the second cipher key masked by a masking value.

### Claim 12 (depends on 8)

The non-transitory machine readable medium of claim 8, wherein the set of instructions for generating the second set of subkeys comprises a set of instructions for performing a set of nonlinear operations to generate the subkey of the second set of subkeys of each round after the first round, the set of nonlinear operations comprising:
a nonlinear function of a portion of the first subkey of the first set of subkeys from the previous round masked by a first masking value; and
a nonlinear function of (i) a portion of the first subkey of the first set of subkeys from the previous round masked by (ii) a portion of the second subkey of the second set of subkeys from the previous round masked by (iii) the first masking value masked by (iv) a second masking value.

### Claim 13 (depends on 12)

The non-transitory machine readable medium of claim 12, wherein the set of nonlinear operations further comprises a function to substitute bytes of the subkey according to a substitution table.

### Claim 14 (depends on 8)

The non-transitory machine readable medium of claim 8, wherein the cryptographic process is advanced encryption standard (AES).

### Claim 15

A device comprising:
a set of processing units; and
a non-transitory machine readable medium storing a program which when executed by at least one of the processing units performs a cryptographic process comprising a plurality of rounds, the program comprising sets of instructions for:
receiving first and second cipher keys;
for the plurality of rounds, generating a first set of subkeys corresponding to the first cipher key as a function of the first cipher key;
for the plurality of rounds, generating a second set of subkeys corresponding to the second cipher key, wherein for each round after a first round, a subkey of the second set of subkeys is a function of (i) a first subkey of the first set of subkeys from a previous round and (ii) a second subkey of the second set of subkeys from the previous round; and
performing the cryptographic process using the generated sets of subkeys.

### Claim 16 (depends on 15)

The device of claim 15, wherein the set of instructions for receiving the first and second cipher keys comprises sets of instructions for:
receiving a first input comprising the first cipher key masked by a first input masking value; and
receiving a second input comprising the second cipher key, masked by a second masking value, and masked by the first cipher key.

### Claim 17 (depends on 15)

The device of claim 15, wherein the set of instructions for generating the first set of subkeys corresponding to the first cipher key comprises a set of instructions for generating a subkey for each of the plurality of rounds of the cryptographic process.

### Claim 18 (depends on 15)

The device of claim 15, wherein the set of instructions for generating the second set of subkeys corresponding to the second cipher key comprises a set of instructions for setting, for the first round of the cryptographic process, a first subkey for the second set of keys to the second cipher key masked by a masking value.

### Claim 19 (depends on 15)

The device of claim 15, wherein the set of instructions for generating the second set of subkeys comprises a set of instructions for performing a set of nonlinear operations to generate the subkey of the second set of subkeys of each round after the first round, the set of nonlinear operations comprising:
a nonlinear function of a portion of the first subkey of the first set of subkeys from the previous round masked by a first masking value; and
a nonlinear function of (i) a portion of the first subkey of the first set of subkeys from the previous round masked by (ii) a portion of the second subkey of the second set of subkeys from the previous round masked by (iii) the first masking value masked by (iv) a second masking value.

### Claim 20 (depends on 19)

The device of claim 19, wherein the set of nonlinear operations further comprises a function to substitute bytes of the subkey according to a substitution table.
