EP2731046B1

Client computer for querying a database stored on a server via a network

Abstract

This record has no abstract on file.

EP2731046B1, drawing sheet 1
Sheet 1 of 12

Term

7 yearsleft in the term

Expires 27 September 2033.

  1. Priority
  2. Filed
  3. Granted
  4. Today
  5. Expires

20 claims: 12 independent, 8 dependent

  1. 1
    A client computer (10) for querying a database (30) stored on a server via a network, the server being coupled to the client computer (10) via the network, wherein the database (30) comprises first data items and suffix items, wherein each suffix item describes a suffix of at least one first data item of the first data items, wherein for each suffix item a first referential connection exists in the database (30) assigning said suffix item to the at least one first data item comprising the suffix of said suffix item, wherein each suffix item is encrypted with a suffix cryptographic key (18) in the database (30), wherein each first data item is encrypted with a first cryptographic key (18) in the database (30), wherein the client computer (10) has installed thereon an application program, the application program being operational to:- receiving a search request, the search request specifying an infix search expression, said expression comprising a first wildcard term on the left side of a search criterion and a second wildcard term on the right side of the search criterion, - transforming the infix search expression into a prefix search expression by disregarding in the search request the first wildcard term and maintaining the search criterion and the second wildcard term, - determine a search interval by transforming the prefix search into a corresponding search interval, wherein the left interval boundary is given by the search criterion and the right interval boundary is given by the search criterion incremented lexicographically by one character;- performing a prefix search by determining all the encrypted suffix items lying within the search interval, - providing to the database (30) a request for providing the one or more encrypted first data items being assigned via the first referential connection to the determined encrypted suffix items, - receiving from the database (30) the requested encrypted first data items and decrypting said received first data items, wherein the suffix items form a partially ordered set in the database (30), the partial order being formed with respect to the suffix items in non-encrypted form, wherein performing the prefix search by determining all the suffix items lying within the search interval comprises determining the suffix item forming an interval boundary of the search interval by a) requesting a current encrypted suffix item from the database (30), b) in response to said requesting of the current encrypted suffix item, receiving from the database (30) the current encrypted suffix item, c) decrypting the current encrypted suffix item for obtaining a current decrypted suffix item, d) determining if the current decrypted suffix item lies within the search interval, e) in case the current decrypted suffix item lies outside the search interval, providing a request for a new encrypted suffix item, wherein the request for the new encrypted suffix item comprises information that the new encrypted suffix item is to be retrieved from a position in the partial order preceding or succeeding the position of the current encrypted suffix item, depending if the interval boundary is preceding or succeeding the current decrypted suffix item with respect to the partial order, and in response to said provision of the request for the new encrypted suffix item, receiving the new encrypted suffix item, f) repeating steps c) - e) with the new encrypted suffix item being the current encrypted suffix item in step c), until the current decrypted suffix item lies within the search interval, g) providing a request for a new encrypted suffix item, wherein the request for the new encrypted suffix item comprises information that the new encrypted suffix item is to be retrieved from a position in the partial order preceding or succeeding the position of the current encrypted suffix item, depending if the interval boundary is preceding or succeeding the current decrypted suffix item with respect to the partial order, and in response to said provision of the request for the new encrypted suffix item, receiving the new encrypted suffix item, h) decrypting the new encrypted suffix item for obtaining a new decrypted suffix item, i) determining if the new decrypted suffix item lies outside the search interval, wherein in case the new decrypted suffix item lies outside the search interval, selecting the current decrypted suffix item as the suffix item forming the interval boundary of the search interval, j) in case the new decrypted suffix item lies within the search interval, repeating steps g) - j) with the new encrypted suffix item being the current encrypted suffix item in step g).
  2. 3
    The client computer (10) of any of the previous claims 1-2, wherein in case in step g) the new encrypted suffix item is unavailable, the application program is operable to select the current decrypted suffix item as the suffix item forming the interval boundary of the search interval.
  3. 4
    The client computer (10) of any of the previous claims 1-3, wherein the application program is further operational for determining the suffix items lying in the search interval by providing the database (30) instructions to recursively traverse the partially ordered set of suffix items in the database (30) in order with respect to the partial order starting from the suffix item forming the interval boundary.
  4. 5
    The client computer (10) of any of the previous claims 1-4, wherein the encrypted suffix items are annotated with elements of a linear order in the database (30), the linear order corresponding to the order in which the encrypted suffix items are stored in the database (30) with respect to the partial ordered set, wherein the application program is further operational for determining the suffix items lying in the search interval by providing the database (30) instructions to retrieve the first element of the linear order annotated to the encrypted suffix item forming the first interval boundary and to retrieve the second element of the linear order annotated to the encrypted suffix item forming the second interval boundary, wherein the application program is further operational for providing to the database (30) instructions to determine all encrypted suffix items having annotated the elements of linear order in between the first element and the second element.
  5. 6
    The client computer (10) of any of the previous claims, wherein the application program is further operable to provide the request for the encrypted suffix item to the database (30), wherein the request for the encrypted suffix item comprises information that the encrypted suffix item is to be retrieved by the database (30), and in response to said provision of the request for the encrypted suffix item, receiving the encrypted suffix item from the database (30).
  6. 7
    The client computer (10) of any of the previous claims, wherein the application program is further operable to:- determine if a requested encrypted suffix item is available in a memory assigned to the client, - in case said requested encrypted suffix item is available in the memory, direct the request to said encrypted suffix item to the memory and in response receiving said requested encrypted suffix item from the memory, - in case said requested encrypted suffix item is unavailable in the memory, direct the request to said encrypted suffix item to the database (30), and in response receive a set of encrypted suffix items from the database (30), said set of encrypted suffix items comprising the requested encrypted suffix item, wherein the encrypted suffix items are ordered in the set of encrypted suffix items according to the partial order, and store the set of encrypted suffix items in the memory.
  7. 9
    The client computer (10) of any of the previous claims, wherein each suffix item has assigned an offset value for each first data item being assigned to the suffix item via the first referential connection, the offset value describing the difference in the word length between the first data item and the assigned suffix item, wherein - the search request is comprising an integer value denoting a number of symbols allowed on the left side of the search criterion, - the request provided to the database (30) for providing the one or more encrypted first data items being assigned via the first referential connection to the determined encrypted suffix items comprises the request for providing the encrypted first data items being assigned via the first referential connection and having assigned an offset value matching the integer value.
  8. 10
    The client computer (10) of any of the previous claims, wherein the application program is further operational for - receiving the search request from a requestor, - providing information content associated with the requested encrypted first data items to the requestor, wherein - the information content is given by the received and decrypted first data items, or - the database (30) further comprises a second relation, wherein the second relation comprises second data items, wherein the second data items are encrypted with a second cryptographic key (18), wherein a second referential connection exists assigning each encrypted first data item to at least one of the second data items stored encrypted in the second relation, wherein the information content is comprised in the second data items, wherein the application program is operable to request from the database (30) the information content via the second referential connections of the requested encrypted first data items, wherein the application program is further operational for decrypting the received encrypted second data items.
  9. 11
    The client computer (10) of any of the previous claims, wherein an encrypted data item is given by the current encrypted suffix item or the first data item, wherein decrypting the encrypted data item comprises - creating a residual data item by removing a predefined data portion of the encrypted data item, wherein the predefined data portion is common for all of the encrypted data items and wherein the content of the predefined data portion is unique for each data item, - generating the cryptographic key (18) required for decrypting the encrypted data item by combining the content of the removed predefined data part with a symmetric key common for all of the encrypted data items, wherein for any subsequent operational steps the removed predefined data part is disregarded from the data item.
  10. 12
    A computer system comprising a client computer (10) according to any of the previous claims, and a database (30) stored on a server, the server being coupled to the client computer (10) via the network, wherein the database (30) comprises data items, wherein data items are encrypted with a cryptographic key in the database (30).
  11. 14
    A method for querying a database (30) stored on a server via a network, the server being coupled to the client computer (10) via the network, wherein the database (30) comprises first data items and suffix items, wherein each suffix item describes a suffix of at least one first data item of the first data items, wherein for each suffix item a first referential connection exists in the database (30) assigning said suffix item to the at least one first data item comprising the suffix of said suffix item, wherein each suffix item is encrypted with a suffix cryptographic key (18) in the database (30), wherein each first data item is encrypted with a first cryptographic key (18) in the database (30), wherein the client computer (10) has installed thereon an application program, wherein the method comprises at the client computer (10):- receiving a search request, the search request specifying an infix search expression, said expression comprising a first wildcard term on the left side of a search criterion and a second wildcard term on the right side of the search criterion, - transforming the infix search into a prefix search by disregarding in the search request the first wildcard term and maintaining the search criterion and the second wildcard term, - determine a search interval by transforming the prefix search into a corresponding search interval, - performing a prefix search by determining all the encrypted suffix items lying within the search interval, - providing to the database (30) a request for providing the one or more encrypted first data items being assigned via the first referential connection to the determined encrypted suffix items, receiving from the database (30) the requested encrypted first data items and decrypting said received first data items, wherein the suffix items form a partially ordered set in the database (30), the partial order being formed with respect to the suffix items in non-encrypted form, wherein performing the prefix search by determining all the suffix items lying within the search interval comprises determining the suffix item forming an interval boundary of the search interval by a) requesting a current encrypted suffix item from the database (30), b) in response to said requesting of the current encrypted suffix item, receiving from the database (30) the current encrypted suffix item, c) decrypting the current encrypted suffix item for obtaining a current decrypted suffix item, d) determining if the current decrypted suffix item lies within the search interval, e) in case the current decrypted suffix item lies outside the search interval, providing a request for a new encrypted suffix item, wherein the request for the new encrypted suffix item comprises information that the new encrypted suffix item is to be retrieved from a position in the partial order preceding or succeeding the position of the current encrypted suffix item, depending if the interval boundary is preceding or succeeding the current decrypted suffix item with respect to the partial order, and in response to said provision of the request for the new encrypted suffix item, receiving the new encrypted suffix item, f) repeating steps c) - e) with the new encrypted suffix item being the current encrypted suffix item in step c), until the current decrypted suffix item lies within the search interval, g) providing a request for a new encrypted suffix item, wherein the request for the new encrypted suffix item comprises information that the new encrypted suffix item is to be retrieved from a position in the partial order preceding or succeeding the position of the current encrypted suffix item, depending if the interval boundary is preceding or succeeding the current decrypted suffix item with respect to the partial order, and in response to said provision of the request for the new encrypted suffix item, receiving the new encrypted suffix item, h) decrypting the new encrypted suffix item for obtaining a new decrypted suffix item, i) determining if the new decrypted suffix item lies outside the search interval, wherein in case the new decrypted suffix item lies outside the search interval, selecting the current decrypted suffix item as the suffix item forming the interval boundary of the search interval, - in case the new decrypted suffix item lies within the search interval, repeating steps g) - j) with the new encrypted suffix item being the current encrypted suffix item in step g).
  12. 20
    A computer program product comprising computer executable instructions to perform the method steps as claimed in any of the previous method claims.