# US 2015/0178146 A1 · Method and apparatus for cipher fault detection

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

- Number: US 2015/0178146 A1
- Document ID: US20150178146A1
- Status: Published application
- Kind: A1
- Application number: 14/136,901
- Filed: 2013-12-20
- Published: 2015-06-25
- Earliest claimed: 2013-12-20
- Assignees: Elliptic Technologies Inc.
- Applicants: Elliptic Technologies Inc.
- Inventors: A. A. Jithra ADIKARI; Jean-Pierre THIBAULT; Mike BORZA
- Web page: https://patentgrep.com/patent/US20150178146A1

## CPC

- H03M 13/09: Error detection only, e.g. using cyclic redundancy check [CRC] codes or single parity bit
- G06F 11/10: Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- H03M 13/611: {Specific encoding aspects, e.g. encoding by means of decoding}
- H04L 9/0618: {Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation}
- 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 2209/34: Encoding or coding, e.g. Huffman coding or error correction
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)
- 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

What is disclosed is an embodiment of a method for ciphering data. Data is provided for ciphering thereof. The data is ciphered in a plurality of steps. For each step, an encoding for error detection of the data for being processed within the step is determined. An output error detection encoding for the step is determined. The data for being processed within the round is processed to provide output error detection encoding which is then verified against the determined output error detection encoding. When the output error detection encoding is other than same as the determined error detection encoding, providing a signal indicative of an error within the cipher process.

## Claims

### Claim 1

A method comprising:
providing data for ciphering thereof; and
ciphering the data in a plurality of cipher rounds, each round comprising:
determining an encoding for error detection of data for being processed within the round,
determining an output error detection encoding for the round,
processing the data for being processed within the round to provide output error detection encoding,
verifying the output error detection encoding against the determined output error detection encoding, and
when the output error detection encoding is other than same as the determined error detection encoding, providing a signal indicative of an error within the cipher process.

### Claim 2 (depends on 1)

A method according to claim 1 comprising:
logging at least one of a presence of an error and an absence of an error during a round of the cipher process.

### Claim 3 (depends on 2)

A method according to claim 2 comprising:
when an error is detected, repeating the cipher process.

### Claim 4 (depends on 1)

A method according to claim 1 comprising:
when an error is detected, repeating the round in which the error is detected.

### Claim 5 (depends on 1)

A method according to claim 1 wherein error detection encoding comprises at least a parity symbol.

### Claim 6 (depends on 5)

A method according to claim 5 wherein the at least a parity symbol comprises a multi-bit parity code.

### Claim 7 (depends on 5)

A method according to claim 5 wherein the at least a parity symbol comprises a mix column parity.

### Claim 8 (depends on 5)

A method according to claim 5 wherein the at least a parity symbol comprises a checksum.

### Claim 9 (depends on 5)

A method according to claim 5 wherein the at least a parity symbol comprises an S-box parity.

### Claim 10 (depends on 1)

A method according to claim 1 wherein the output error detection encoding is determined by determining at least a parity symbol relating to output data from processing the data for being processed within the round.

### Claim 11

A method comprising:
providing first data for ciphering thereof;
performing a ciphering process on the first data, the ciphering process comprising a plurality of intermediate steps;
calculating at least one parity symbol for at least one intermediate step; and
based on the calculated at least one parity symbol, verifying an output value of the at least one intermediate step to detect an error within the output value.

### Claim 12 (depends on 11)

A method according to claim 11 comprising:
repeating the at least one intermediate step until an error within the output value is other than detected.

### Claim 13 (depends on 11)

A method according to claim 11 comprising:
when an error is detected within the output value relating to an intermediate step, repeating the ciphering process.

### Claim 14 (depends on 13)

A method according to claim 13 comprising:
repeating the ciphering process until an error within the output value is other than detected.

### Claim 15 (depends on 11)

A method according to claim 11 comprising:
logging each detected error within an error log file.

### Claim 16 (depends on 15)

A method according to claim 15 comprising:
when the log file is indicative of a detected error within an output value relating to an intermediate step, repeating the ciphering process.

### Claim 17 (depends on 11)

A method according to claim 11 comprising:
calculating at least one other parity symbol for at least one other intermediate step; and
based on the calculated at least one other parity symbol, verifying a second output value of the at least one other intermediate step to detect an error within the second output value.

### Claim 18 (depends on 11)

A method according to claim 11 wherein calculating at least one parity symbol for at least one intermediate step comprises, calculating at least one parity symbol for each intermediate step within the ciphering process; and wherein verifying comprises verifying an output value of each intermediate step to detect an error within said output value.

### Claim 19 (depends on 11)

A method according to claim 11 wherein the at least a parity symbol comprises a multi-bit parity code.

### Claim 20 (depends on 19)

A method according to claim 19 wherein the multi-bit parity code supports error detection and error correction comprising:
automatically correcting an error in the output value based on the multi-bit parity and the output value.

### Claim 21 (depends on 11)

A method according to claim 11 wherein the at least a parity symbol comprises a mix column parity.

### Claim 22 (depends on 11)

A method according to claim 11 wherein the at least a parity symbol comprises a checksum.

### Claim 23 (depends on 11)

A method according to claim 11 wherein the at least a parity symbol comprises an S-box parity.

### Claim 24

A method comprising:
providing external data for ciphering thereof;
performing a ciphering process on the external data, the ciphering process comprising a plurality of intermediate steps comprising:
providing first data for processing;
calculating a result of performing an intermediate step on the first data;
performing an inverse function on the result of the intermediate step; and
comparing a result of the inverse function to the first data to detect an error in processing of the first data; and
when the first data and the result of the inverse function are indicative of an error, performing one of logging the error and repeating calculating a result of performing the intermediate step on the first data.

### Claim 25 (depends on 24)

A method according to claim 24 wherein comparing is performed by comparing at least a parity symbol derived based on the first data and at least a parity symbol based on the result of the inverse function.

### Claim 26 (depends on 24)

A method according to claim 24 wherein performing a ciphering process on the external data comprises:
providing second data for processing, the second data a result of the intermediate step performed on the first data:
calculating a result of performing a second intermediate step on the second data;
performing a second inverse function on the result of the second intermediate step; and
comparing a result of the second inverse function to the second data to detect an error in processing of the second data; and
when the second data and the result of the second inverse function are indicative of an error, performing one of logging the error and repeating calculating a result of performing the second intermediate step on the second data.

### Claim 27

A method comprising:
providing first data for ciphering thereof;
performing a ciphering process on the first data, the ciphering process comprising a plurality of intermediate steps;
calculating at least one error detection and correction code for at least one intermediate step; and
based on the calculated at least one error detection and correction code, verifying an output value of the at least one intermediate step to correct an error within the output value, the error corrected solely in dependence upon the output value and the error detection and correction code.

### Claim 28 (depends on 27)

A method according to claim 27 wherein the at least one error detection and correction code comprises a multi-bit parity code.

### Claim 29 (depends on 27)

A method according to claim 27 wherein the at least one error detection and correction code comprises a mix column parity.

### Claim 30 (depends on 27)

A method according to claim 27 wherein the at least one error detection and correction code comprises a checksum.

### Claim 31 (depends on 27)

A method according to claim 27 wherein the at least one error detection and correction code comprises an S-box parity.

### Claim 32 (depends on 27)

A method according to claim 27 wherein the at least one error detection and correction code comprises one of a turbocode and a hypercode.
