# US 2015/0149427 A1 · Encrypted In-Memory Column-Store

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

- Number: US 2015/0149427 A1
- Document ID: US20150149427A1
- Status: Published application
- Kind: A1
- Application number: 14/088,051
- Filed: 2013-11-22
- Published: 2015-05-28
- Earliest claimed: 2013-11-22
- Assignees: Sap SE
- Inventors: FLORIAN KERSCHBAUM; MARTIN HAERTERICH; MATHIAS KOHLER; ISABELLE HANG; ANDREAS SCHAAD; AXEL SCHROEPFER; WALTER TIGHZERT; PATRICK GROFIG
- Web page: https://patentgrep.com/patent/US20150149427A1

## CPC

- G06F 16/24: Querying
- G06F 16/951: Indexing; Web crawling techniques
- G06F 21/6227: {where protection concerns the structure of data, e.g. records, types, queries}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments relate to processing encrypted data, and in particular to identifying an appropriate layer of encryption useful for processing a query. Such identification (also known as the onion selection problem) is achieved utilizing an adjustable onion encryption procedure. Based upon defined requirements of policy configuration, alternative resolution, and conflict resolution, the adjustable onion encryption procedure entails translating a query comprising an expression in a database language (e.g. SQL) into an equivalent query on encrypted data. The onion may be configured in almost arbitrary ways directing the onion selection. An execution function introduces an execution split to allow local (e.g. client-side) query fulfillment that may otherwise not be possible in a secure manner on the server-side. A searchable encryption function may also be employed, and embodiments accommodate aggregation via homomorphic encryption. Embodiments may be implemented as an in-memory column store database system.

## Claims

### Claim 1

A computer-implemented method comprising:
providing a database comprising encrypted plaintext;
causing an engine to receive a first input comprising a database query including an expression;
causing the engine to receive a second input comprising the plaintext encrypted according to a first encryption scheme;
causing the engine to receive a third input comprising the plaintext encrypted according to a second encryption scheme; and
causing the engine to process the expression, the first encryption scheme, and the second encryption scheme according to an algorithm in order to select an encrypted layer on which to execute the database query.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1 wherein the algorithm comprises:
building a graph of columns used in the database query;
for each graph node, selecting a maximum encrypted layer that can fulfill the database query;
selecting a minimum encrypted layer necessary for each connected component;
choosing a remaining encryption most efficient for database operation; and
scanning an operator tree of the database query from leaves to root,
wherein the database is on a server, and upon encountering a conflict an upper part of the operator tree is executed on a client.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1 wherein:
the engine processes the expression to further output an encrypted database query to execute on the encrypted layer; and
the method further comprises executing the encrypted database query on the encrypted layer to produce an encrypted query result.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1 wherein the expression comprises aggregation, and the selected encryption layer comprises homomorphic encryption.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1 wherein the expression comprises a bound, and the selected encryption layer comprises order preserving encryption.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1 wherein the expression comprises a search function, and the selected encryption layer comprises searchable encryption.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1 wherein plaintext of the selected encryption layer is initially encrypted by order preserving encryption.

### Claim 8

A non-transitory computer readable storage medium embodying a computer program for performing a method, said method comprising:
providing a database comprising encrypted plaintext;
causing an engine to receive a first input comprising a database query including an expression;
causing the engine to receive a second input comprising the plaintext encrypted according to a first encryption scheme;
causing the engine to receive a third input comprising the plaintext encrypted according to a second encryption scheme; and
causing the engine to process the expression, the first encryption scheme, and the second encryption scheme according to an algorithm in order to select an encrypted layer on which to execute the database query.

### Claim 9 (depends on 7)

A non-transitory computer readable storage medium as in claim 7 wherein the algorithm comprises:
building a graph of columns used in the database query;
for each graph node, selecting a maximum encrypted layer that can fulfill the database query;
selecting a minimum encrypted layer necessary for each connected component;
choosing a remaining encryption most efficient for database operation; and
scanning an operator tree of the database query from leaves to root,
wherein the database is on a server, and upon encountering a conflict an upper part of the operator tree is executed on a client.

### Claim 10 (depends on 7)

A non-transitory computer readable storage medium as in claim 7 wherein the method further comprises:
processing the expression to further output an encrypted database query to execute on the encrypted layer; and
executing the encrypted database query on the encrypted layer to produce an encrypted query result.

### Claim 11 (depends on 7)

A non-transitory computer readable storage medium as in claim 7 wherein the expression comprises aggregation, and the selected encryption layer comprises homomorphic encryption.

### Claim 12 (depends on 7)

A non-transitory computer readable storage medium as in claim 7 wherein expression comprises a bound, and the selected encryption layer comprises order preserving encryption.

### Claim 13 (depends on 7)

A non-transitory computer readable storage medium as in claim 7 wherein the expression comprises a search function, and the selected encryption layer comprises searchable encryption.

### Claim 14 (depends on 7)

A non-transitory computer readable storage medium as in claim 7 wherein plaintext of the selected encryption layer is initially encrypted by order preserving encryption.

### Claim 15

A computer system comprising:
one or more processors;
a software program, executable on said computer system, the software program configured to:
provide a database comprising encrypted plaintext;
cause an engine to receive a first input comprising a database query including an expression;
cause the engine to receive a second input comprising the plaintext encrypted according to a first encryption scheme;
cause the engine to receive a third input comprising the plaintext encrypted according to a second encryption scheme; and
cause the engine to process the expression, the first encryption scheme, and the second encryption scheme according to an algorithm in order to select an encrypted layer on which to execute the database query.

### Claim 16 (depends on 15)

A computer system as in claim 15 wherein the algorithm comprises:
building a graph of columns used in the database query;
for each graph node, selecting a maximum encrypted layer that can fulfill the database query;
selecting a minimum encrypted layer necessary for each connected component;
choosing a remaining encryption most efficient for database operation; and
scanning an operator tree of the database query from leaves to root,
wherein the database is on a server, and upon encountering a conflict an upper part of the operator tree is executed on a client.

### Claim 17 (depends on 15)

A computer system as in claim 15 wherein:
the engine processes the expression to further output an encrypted database query to execute on the encrypted layer; and
the software program is further configured to execute the encrypted database query on the encrypted layer to produce an encrypted query result.

### Claim 18 (depends on 15)

A computer system as in claim 15 wherein the expression comprises aggregation, and the selected encryption layer comprises homomorphic encryption.

### Claim 19 (depends on 15)

A computer system as in claim 15 wherein the expression comprises a bound, and the selected encryption layer comprises order preserving encryption.

### Claim 20 (depends on 15)

A computer system as in claim 15 wherein the expression comprises a search function, and the selected encryption layer comprises a searchable encryption.
