# US 2015/0039903 A1 · Masking query data access pattern in encrypted data

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

- Number: US 2015/0039903 A1
- Document ID: US20150039903A1
- Status: Published application
- Kind: A1
- Application number: 13/958,730
- Filed: 2013-08-05
- Published: 2015-02-05
- Earliest claimed: 2013-08-05
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Charles D. Cash; Stanislaw Jarecki; Charanjit S. Jutla; Hugo M. Krawczyk; Marcel C. Rosu; Michael Steiner
- Web page: https://patentgrep.com/patent/US20150039903A1

## CPC

- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 16/951: Indexing; Web crawling techniques
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for encrypting a database includes the following step. Keywords in the database are encrypted to obtain encrypted search tags for the keywords. A table of reverse indices is generated for the encrypted search tags. A table of cross keyword indices is generated. A method for searching in an encrypted database includes the following steps. A search is formulated as a conjunct of two or more atomic search queries. One of the conjuncts is selected as a primary atomic search query. Search capabilities are generated for a secondary atomic search query using the primary atomic search query and the secondary atomic search query. Such methods mask query data and the actual composition of the database to reduce computation complexity and privacy leakage.

## Claims

### Claim 1

A method for encrypting a database, comprising:
encrypting keywords in the database to obtain encrypted search tags for the keywords;
generating a table of reverse indices for the encrypted search tags; and
generating a table of cross keyword indices;
wherein the encrypting and generating steps are performed in accordance with one or more processing devices.

### Claim 2 (depends on 1)

The method of claim 1, wherein the database comprises a plurality of attributes and a plurality of records, wherein each of the plurality of records has a value for each of the plurality of attributes.

### Claim 3 (depends on 1)

The method of claim 1, wherein the database has a free text field for each record.

### Claim 4 (depends on 2)

The method of claim 2, wherein the keywords are values for the plurality of attributes.

### Claim 5 (depends on 2)

The method of claim 2, wherein a reverse index of each encrypted search tag for a keyword comprises a list of encrypted record indices in which the keyword occurs.

### Claim 6 (depends on 5)

The method of claim 5, wherein the reverse index of each encrypted search tag for the keyword comprises auxiliary information attached to each entry in the list of encrypted record indices.

### Claim 7 (depends on 6)

The method of claim 6, wherein the auxiliary information is obtained via a computation based on the keyword and the record index.

### Claim 8 (depends on 7)

The method of claim 7, wherein the computation comprises exponentiation in an algebraic group.

### Claim 9 (depends on 7)

The method of claim 7, wherein the computation comprises exponentiation in a cyclic group.

### Claim 10 (depends on 7)

The method of claim 7, wherein the computation comprises a cryptographic hash function.

### Claim 11 (depends on 1)

The method of claim 1, wherein the cross keyword indices comprise a cross value obtained from a keyword and a record index in which the keyword occurs.

### Claim 12 (depends on 11)

The method of claim 11, wherein the cross value is obtained via exponentiation in a cyclic group.

### Claim 13 (depends on 11)

The method of claim 11, wherein the cross value is obtained via a cryptographic hash function.

### Claim 14 (depends on 1)

The method of claim 1, wherein the database is augmented with additional dummy records.

### Claim 15 (depends on 1)

The method of claim 1, wherein the database is augmented with duplicated records.

### Claim 16 (depends on 1)

A computer program product comprising a processor-readable storage medium having encoded therein executable code of one or more software programs, wherein the one or more software programs when executed by the one or more processing devices implement the steps of the method of claim 1.

### Claim 17

A method for searching in an encrypted database, comprising:
formulating a search as a conjunct of two or more atomic search queries;
selecting one of the conjuncts as a primary atomic search query; and
generating search capabilities for a secondary atomic search query using the primary atomic search query and the secondary atomic search query;
wherein the formulating, selecting and generating steps are performed in accordance with one or more processing devices.

### Claim 18 (depends on 17)

The method of claim 17, wherein generating search capabilities for the secondary atomic search query using the primary atomic search query and the secondary atomic search query comprises multiplication in algebraic groups.

### Claim 19 (depends on 17)

The method of claim 17, wherein generating search capabilities for the secondary atomic search query using the primary atomic search query and the secondary atomic search query comprises exponentiation in algebraic groups.

### Claim 20 (depends on 17)

The method of claim 17, wherein generating search capabilities for the secondary atomic search query using the primary atomic search query and the secondary atomic search query comprises using a cryptographic hash function.

### Claim 21 (depends on 17)

A computer program product comprising a processor-readable storage medium having encoded therein executable code of one or more software programs, wherein the one or more software programs when executed by the one or more processing devices implement the steps of the method of claim 17.

### Claim 22

An apparatus for encrypting a database, comprising:
a memory; and
a processor operatively coupled to the memory and configured to: encrypt keywords in the database to obtain encrypted search tags for the keywords; generate a table of reverse indices for the encrypted search tags; and generate a table of cross keyword indices.

### Claim 23

An apparatus for searching in an encrypted database, comprising:
a memory; and
a processor operatively coupled to the memory and configured to: formulate a search as a conjunct of two or more atomic search queries; select one of the conjuncts as a primary atomic search query so as to generate search capabilities for a secondary atomic search query using the primary atomic search query and the secondary atomic search query.
