# US 2020/0396056 A1 · A computer-implemented method of performing format-preserving encryption of a data object of variable size

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

- Number: US 2020/0396056 A1
- Document ID: US20200396056A1
- Status: Published application
- Kind: A1
- Application number: 16/764,121
- Filed: 2018-11-14
- Published: 2020-12-17
- Earliest claimed: 2017-11-14
- Assignees: Pii Guard Aps
- Applicants: Pii Guard Aps
- Inventors: Martin Staal BOESGAARD
- Web page: https://patentgrep.com/patent/US20200396056A1

## CPC

- H03M 7/30: Compression (speech analysis-synthesis for redundancy reduction G10L19/00; for image communication H04N); Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H04L 9/0618: {Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation}
- H03M 7/55: {Compression Theory, e.g. compression of random number, repeated compression}
- H03M 7/6005: {Decoder aspects}
- H03M 7/607: {Selection between different types of compressors}
- H03M 7/70: {Type of the data to be coded, other than image and sound}
- H04L 9/3242: {involving keyed hash functions, e.g. message authentication codes [MACs], CBC-MAC or HMAC}
- H04L 2209/20: Manipulating the length of blocks of bits, e.g. padding or block truncation
- 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)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A computer-implemented method of encrypting a data object of variable size utilizing an inner encryption algorithm can take a variable size input and of outputting, as its output, an encrypted version of the variable size input. The method comprises compressing or encoding the data object in its totality to obtain a compressed or encoded version of the data object in a format compatible with the inner encryption algorithm, encrypting, by the inner encryption algorithm, the compressed or encoded version of the data object to obtain an encrypted version of the data object, and decompressing or decoding the encrypted version of the data object to obtain a decompressed or decoded version of the encrypted version of the data object, which constitutes a format-preserved encrypted version of the data object.

## Claims

### Claim at position 1

-15. (canceled)

### Claim 16

A computer-implemented method of performing format-preserving encryption of a data object of variable size, the method utilizing an inner encryption algorithm which is capable of taking a variable size input and of outputting, as its output, an encrypted version of the variable size input, the method comprising:
compressing or encoding the data object in its totality to obtain a compressed or encoded version of the data object in a format compatible with the inner encryption algorithm;
encrypting, by use of the inner encryption algorithm, the compressed or encoded version of the data object to obtain an encrypted version of the data object;
decompressing or decoding the encrypted version of the data object to obtain a decompressed or decoded version of the encrypted version of the data object;
outputting, as a format-preserved encrypted version of the data object, the decompressed or decoded version of the encrypted version of the data object.

### Claim 17 (depends on 16)

The method according to claim 16, wherein the output format-preserved encrypted version of the data object has a different size than the input data object.

### Claim 18 (depends on 16)

The method according to claim 16, wherein at least one of the compressed or encoded version of the data object and the encrypted version of the data object comprises a bit string, the method further comprising padding at least one of the compressed or encoded version of the data object and the encrypted version of the data object by adding one or more bits of padding information to the at least one of the compressed or encoded version of the data object and the encrypted version of the data object prior to either one of the steps of encrypting and decompressing.

### Claim 19 (depends on 16)

The method according to claim 16, wherein the data object has been derived from a data record comprising the data object and at least one associated data object, and
wherein at least one of the steps of a: compressing or encoding, b: encrypting, c: padding and d: decompressing or decoding depends on at least a portion of the associated data object or data derived from at least a portion of the associated data object.

### Claim 20 (depends on 16)

The method according to claim 16, wherein at least one of the compressed or encoded version of the data object and the encrypted version of the data object comprises a pair of integers representing a domain variable and a position variable,
wherein the position variable represents a value within a range of possible values defined by the domain variable.

### Claim 21 (depends on 16)

The method according to claim 16, wherein the steps of compressing or encoding and decompressing or decoding utilize different schemes, such as
different configurations of a compression and decompression algorithm,
different configuration of an encoding and decoding algorithm,
compression used at one step and decoding used at another step, or
encoding used at one step and decompression used at another step.

### Claim 22 (depends on 16)

The method according to claim 16, wherein the data object comprises a plurality of characters, and
wherein the step of compressing or encoding utilizes a scheme which maps one or more of the characters into a mapped partial output, and
wherein the scheme is configured to identify at least one predetermined character sequence within the data object and to map any identified such predetermined character sequence into a predetermined value representing the mapped partial output.

### Claim 23 (depends on 16)

The method according to claim 16, wherein the data object comprises a plurality of characters, and
wherein the step of compressing or encoding utilizes a scheme which maps one or more of the characters into a mapped partial output, and
wherein the scheme is configured to identify at least one predetermined format property of the data object, and
wherein the scheme is further configured to map the one or more characters and the format property, so as to render the compressed or encoded version of the data object dependent from the one or more characters and the at least one format property.

### Claim 24 (depends on 16)

The method according to claim 16, wherein the steps of a: compressing or encoding, b: encrypting and c: decompressing or decoding are performed by use of a first set of configuration data by use of a first set of algorithms in steps a, b and c, the method further comprising the steps of:
determining a format property, such as a size, of the format-preserved encrypted version of the data object;
determining if the format property of the format-preserved encrypted version of the data object complies with a predetermined constraint; and
if the characteristic fails to comply with the predetermined constraint:
redoing at least one of steps a, b and c by use of second configuration data different from the first configuration data and/or
use of second type of algorithm in at least one of steps a, b and c different from the first algorithms
to obtain a new format-preserved encrypted version of the data object.

### Claim 25 (depends on 16)

The method according to claim 16, wherein the steps of a: compressing or encoding, b: encrypting and c: decompressing or decoding are performed by use of a first set of configuration data by use of a first set of algorithms in steps a, b and c, the method further comprising the steps of:
determining a format property, such as a size, of the format-preserved encrypted version of the data object;
determining if the format property of the format-preserved encrypted version of the data object complies with a predetermined constraint; and
if the characteristic fails to comply with the predetermined constraint:
applying the encryption algorithm to the encrypted version of the data object to obtain a further encrypted version of the data object, and
decompressing the further encrypted compressed version of the data object
to obtain a new format-preserved encrypted version of the data object.

### Claim 26 (depends on 16)

The method according to claim 16, further comprising the steps of:
adding authentication data to at least one of the data object, the compressed or encoded version of the data object, the encrypted version of the data object, and the format-preserved encrypted version of the data object; and
authenticating at least one of the data object, the compressed version of the data object, the encrypted version of the data object, and the format-preserved encrypted version of the data object by verifying the authentication data added during further operations.

### Claim 27 (depends on 16)

The method according to claim 16, wherein the step of encrypting and/or any preceding step is carried out in such a way to render the format-preserved encrypted version of the data object non-deterministic.

### Claim 28 (depends on 16)

The method according to claim 16, further comprising the step of embedding a key label into the format-preserved encrypted version of the data object.

### Claim 29

A computer-implemented method of performing format-preserving encryption of a data object of variable size, the data object having a pre-defined format and comprising a plurality of characters occurring in at least two sequences of text characters mutually separated by pre-defined format-defining characters,
wherein the plurality of characters and the format-defining characters define at least one format property of the data object, the method comprising:
compressing or encoding at least one of:
the at least two sequences of text characters and the format-defining characters; and
the at least two sequences of text characters and the at least one format property to obtain an encoded set of data;
encrypting the encoded set of data by use of an inner encryption algorithm which is capable of taking a variable size input and of outputting, as its output, an encrypted version of the variable size input, to obtain an encrypted set of data;
decompressing or decoding the encrypted set of data to obtain a decoded encrypted set of data fulfilling the pre-defined format of the data object;
outputting the decoded encrypted set of data as a format-preserved encrypted version of the data object.

### Claim 30

A computer-implemented method of performing format-preserving encryption of a data object of variable size, the data object having a pre-defined format, the method comprising:
compressing or encoding, by use of a reversible compression or encoding algorithm, the data object to obtain a compressed or encoded version of the data object;
encrypting the compressed or encoded version of the data object by use of an inner encryption algorithm which is capable of taking a variable size input and of outputting, as its output, an encrypted version of the variable size input, to obtain an encrypted version of the data object;
decompressing or decoding, by use of a reversible decompression or decoding algorithm, the encrypted version of the data object to obtain a decompressed or decoded encrypted version of the data object fulfilling the pre-defined format of the data object;
outputting the decompressed or decoded encrypted version of the data object as a format-preserved encrypted version of the data object;
wherein the decompression or decoding algorithm is different from a reversed version of the compression or encoding algorithm.
