# US 2025/0211418 A1 · Data processing method

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

- Number: US 2025/0211418 A1
- Document ID: US20250211418A1
- Status: Published application
- Kind: A1
- Application number: 18/990,641
- Filed: 2024-12-20
- Published: 2025-06-26
- Earliest claimed: 2023-12-21
- Assignees: Commissariat A L'energie Atomique Et Aux Energies Alternatives
- Applicants: Commissariat A L'energie Atomique Et Aux Energies Alternatives
- Inventors: Aymen BOUDGUIGA; Renaud SIRDEY; Oana STAN; Martin ZUBER; Marc RENARD
- Web page: https://patentgrep.com/patent/US20250211418A1

## CPC

- H04L 9/008: {involving homomorphic encryption}
- H04L 9/14: using a plurality of keys or algorithms
- H04L 63/0435: {wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption (cryptographic mechanisms or cryptographic arrangements for symmetric key encryption H04L9/06)}
- H04L 2209/046: of operations, operands or results of the operations
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Data processing method for obtaining a result with a combination of elementary operations; wherein two encryptions [Enc1,Dec1; Enc2,Dec2] are defined, one indecipherable by a server, the other indecipherable by a TEE; and S1) an emitting client supplies and encrypts an input data item; S2) it sends it under encryption to the server or to the TEE; S3) via data processing, these two computers apply the combination of elementary operations to the encrypted data item received so as to obtain a ciphertext of the result, that they send to a receiving client; S4) the latter deciphers the ciphertext of the result and obtains the result. During step S3, the server only processes processed data under encryption indecipherable by the server, and the TEE only processes processed data under encryption indecipherable by the TEE.

## Claims

### Claim 1

A method for processing data in a system comprising two computers to obtain a result using at least one input data item to be supplied by at least one emitting client, the result being obtained by applying a combination of elementary operations to at least one input data item; wherein
one of the computers is a server, and the other is a trusted execution environment, TEE;
a first encryption [Enc1,Dec1] and a second encryption [Enc2,Dec2] are defined, one being indecipherable by the server, and the other being indecipherable by the TEE;
the method includes the following steps:
S1) at least one emitting client supplies a first input data item and applies the first encryption to it;
S2) said at least one emitting client sends the input data item under the first encryption to one of the computers;
S3) during a data processing operation, the two computers apply the combination of elementary operations to said encrypted data item received in step S2 so as to obtain a ciphertext of the result, and send this result to at least one receiving client, step S3 including the following elementary steps:
S31) the first computer encrypts the processed data item under second encryption;
S32) the first computer sends the second computers the processed data item obtained, encrypted under first and second encryption; and
S33) the second computer removes the first encryption from the processed data item received;
S4) said at least one receiving client deciphers the ciphertext of the result and obtains the result;
during the data processing performed in step S3, the server only processes processed data under at least the encryption indecipherable by the server, and the TEE only processes processed data under at least the encryption indecipherable by the TEE, which may be in particular be masking encryption; and
the first and the second encryption verify the property, for any processed data item x:
Dec2(Dec1(Enc2(Enc1(x))))=Dec2(Enc2(x)).

### Claim 2 (depends on 1)

The data processing method according to claim 1, wherein said encryption indecipherable by the server is or comprises a homomorphic, in particular fully homomorphic, encryption.

### Claim 3 (depends on 2)

The data process method according to claim 2, wherein in step S3, the TEE applies to the processed data item or to the processed data only one or more support functions;
a support function being a function other than said elementary operations and which:
contributes to the execution of homomorphic computing operations by the server or to the verification thereof;
serves to encrypt or decipher data to be processed received from the client, processed data (by the computers), or results sent to the client; and/or
serves to prepare (verification) data serving to verify data to be processed received from the client, processed data, and/or results sent to the client.

### Claim 4 (depends on 1)

The data processing method according to claim 1, including the following steps:
S0235) the second computer applies the first encryption to the deciphered data item during step S33, and sends the data item obtained to the first computer; and
S0236) the first computer removes the second encryption from the processed data item received following step S0235.

### Claim 5 (depends on 4)

The data processing method according to claim 4, wherein step S0235 is performed immediately following step S33, such that during step S0235, the second computer applies the first encryption to the processed data item obtained at the output of step S33.

### Claim 6 (depends on 1)

The data processing method according to claim 1, wherein during step S3, the processed data item is encrypted under an encryption other than the first encryption or is encrypted with the first encryption but with another encryption key; and the encrypted result returned following step S3 is encrypted with a different encryption from the first encryption or is encrypted with the first encryption but with another encryption key.

### Claim 7 (depends on 1)

The data processing method according to claim 1, wherein a receiving client receiving the encrypted result following step S3, is identical to or different from the or each of said at least one emitting client supplying the data item in step S1.

### Claim 8 (depends on 1)

The data processing method according to claim 1, furthermore including a step S0411 preceding step S2 and during which the first client applies an additional encryption, particularly symmetric, to the data item; and after the data item has been sent to the first computer in step S2, the first computer removes the additional encryption.

### Claim 9 (depends on 1)

The data processing method according to claim 1, wherein
during an operation S0533, the TEE removes the first encryption, referred to as initial first encryption, which can in particular be a masking encryption, from the processed data item; and
during an operation S0535, the TEE applies to the processed data item a homomorphic encryption, as final first encryption;
during an operation S0535a, following step S0535, the processed data item under final first encryption and under second encryption is sent to the server;
when all of the elementary operations have been performed, the ciphertext of the result is sent to the client under final first encryption; and in step S4, the client removes the final first encryption.

### Claim 10 (depends on 1)

The data processing method according to claim 1, wherein
the first encryption applied in step S1 is homomorphic encryption referred to as first homomorphic encryption;
during a step S0633, the TEE removes the first homomorphic encryption from the processed data item;
during a step S0635 performed after step S0633, the TEE applies to the data item a second homomorphic encryption other than the first homomorphic encryption; and
in step S4, the client removes the second homomorphic encryption from the encrypted result.

### Claim 11 (depends on 1)

The data processing method according to claim 1, wherein
the combination of elementary operations includes N elementary operations of order j, j=1 . . . N;
step S3 includes the execution of a plurality of computing loops, iteratively;
in each loop of index j, j=1 . . . N, steps S1, S31, S32 and S33, a step S0730, a step S0735 and a step S0736 are carried out as follows:
during step S1, the client supplies an input data item of index j, and sends said input data item of index j to the first computer, which is the server, as an input data item for step S0730;
during step S0730, the server applies the elementary operation of index j to the data item supplied as an input;
the server carries out step S31 of applying the second encryption to the processed data item and step S32 of sending the encrypted processed data item to the TEE;
the TEE carries out step S33 of removing the first encryption from the processed data item, then in step S0735 applies once again the first encryption to the data item, then resends the thus re-encrypted data item to the server;
on receipt of said thus re-encrypted data item, the server during a step S0736a removes the second encryption therefrom; the data item thus modified is then supplied as an input data item of operation S0730 of the following computing loop where applicable.

### Claim 12 (depends on 11)

The data processing method according to claim 11, wherein
a verifiable computing protocol is defined, which makes it possible to verify the result by carrying out an elementary verification for each of said elementary operations;
the first computer is the server, and the second computer is the TEE;
a tag computing function is defined in the context of the verifiable computing protocol, this function being commutative with the elementary operations gj;
in step S1, the client furthermore sends the server a tag of the ciphertext under first encryption of the data item;
the second encryption is a mask encryption;
in each loop of index j, j=1 . . . N:
in a step S0701a, the client supplies the server with a mask and a mask tag of the mask;
during a step S0730, the server applies the elementary operation of index j to the processed data tag supplied as an input;
during a step S0731, the server encrypts the processed data item under second encryption;
during a step S0732, the server sends the TEE the processed data item obtained, encrypted under first and second encryption;
during a step S0730a, the server applies the elementary operation of index j to the data tag supplied as an input;
during a step S0731a, the server computes the tag of the ciphertext under double encryption using the tag obtained in step S0730a and the tag of the mask mj, and sends this tag to the TEE;
during a step S0732a, according to the encrypted data item received in step S0732, and the encrypted data tag received in step S0731a, the TEE verifies the elementary operation carried out in step S0730 by performing the elementary verification corresponding to this operation;
if the result is positive and the loop index j verifies j<N, in step S0733:
the TEE removes the first encryption (DecHE1) from the encrypted data item received in step S0732 performed during the loop, then
during a step S0735, applies the first encryption to the data item under second encryption and sends the encrypted data item obtained to the server;
during a step S0736, the server removes the second encryption from the data item received following step S0735, and supplies the thus deciphered data item as an input data item for operation S0730 of the following computing loop;
during a step S0735a, the TEE computes a tag of the encrypted data item computed in step S0735 and sends this tag to the server; then
during a step S0736a, the server computes the tag of the unmasked ciphertext using the tag received following step S0735a and the tag of the mask, and supplies the tag of the unmasked ciphertext as an input data item for operation S0730a of the following computing loop.

### Claim 13 (depends on 11)

The data processing method according to claim 11, wherein
the first computer is the TEE;
during at least one of the computing loops, referred to as loop J, of index j=J, the method is executed as follows:
in step S32 of the loop J, in addition to the encrypted data item under first and second encryption, the first computer sends the second computer a signature thereof, as well as another encrypted data item under first and second encryption accompanied by a signature thereof;
in step S33 of the loop J, the server removes the first encryption from the encryption data under double encryption and from said other data item received in step S32;
in a step S0934 of the loop J, the server applies the elementary operation of index J to the two deciphered data items obtained in step S33;
in a step S0934a of the loop J, the server applies the first encryption (EncM11) to the data item obtained;
the server furthermore computes a computing proof proving that the encrypted data item obtained following step S0934a is indeed the result of the application of the elementary operation of index J to the two data items used as an input for step S0934, and sends the encrypted data item obtained in step S0934a as well as the proof to the TEE;
during a step S0934b, the TEE verifies at least if the proof corresponds to the computing result; and,
if the verification result is positive, in a step S0936, the first computer removes the second encryption from the data item, and supplies the data item obtained as an input for a step S31 of the following index loop where applicable; if the verification result is negative, the TEE interrupts the processing.

### Claim 14 (depends on 11)

The data processing method according to claim 11, wherein
the first computer is the TEE;
the second encryption being a homomorphic encryption ensuring security against CCA attacks, for example Paillier encryption;
during at least one of the computing loops, referred to as loop J, of index j=J, the method is executed as follows:
in step S32 of the loop J, in addition to the encrypted data item under first and second encryption, the TEE sends the server another encrypted data item under first and second encryption;
in step S33 of the loop J, the server removes the first encryption from the encryption data item under double encryption and from said other data item received in step S32;
in a step S1134 of the loop J, the server applies the elementary operation of index J to the two deciphered data items obtained in step S33;
in a step S1134a of the loop J, the server applies the first encryption to the data item obtained by applying the elementary operation of index J in step S1134;
the server sends the encrypted data item obtained in step S1134a to the TEE; and,
in a step S1136, the TEE removes the second encryption from the data item, and supplies the data item obtained as an input for a step S31 of the following index loop where applicable.
