USPatent applicationPatented

Method for privacy-preserving computation of edit distance of symbol sequences

Granted 7 Jan 2014 · 2 office actions

Assignee: Mitsubishi Electric Corporation

Law firm: Law firm · Log in to unlock

Attorney: Attorney · Log in to unlock

Inventors: Wei Sun, Shantanu Rane · Examiner: April Y Blair · AU 2492 · TC 2400

Life of the application

11 dated events
⤢ drag to zoom20102012201420162018202020222024202620282030ProsecutionOwnershipTerm & fees
ProsecutionOwnershipTerm & feeshover for detail · click to open

Abstract

Embodiments of the invention discloses a system and a method for determining an encrypted edit distance as an encryption of a minimum cost of transformation of a first sequence into a second sequence based on an insertion cost, a deletion cost, and a substitution cost. The method determines recursively a current element of the matrix as an encryption of a minimum of a first element, a second element, and a third element to produce the dynamic programming solution, wherein the first element represents the insertion cost, the second element represents the deletion cost, and the third element represents the substitution costs, and wherein the current element, the first element, the second element, and the third element are homomorphically encrypted with a public key; and selects the dynamic programming solution as the encrypted edit distance, wherein steps of the method are performed by a first processor and a second processor.

Description

8 parts
›FIELD OF THE INVENTION

This invention relates generally to determining an edit distance between two symbol sequences, and more particularly to determining securely an encrypted edit distance between two symbol sequences.

›BACKGROUND OF THE INVENTION

An edit distance, also called Levenshtein distance, between two symbol sequences is typically defined as the minimum number of edit operations required to transform a first sequence to a second sequence, with the allowable edit operations being insertion, deletion, or substitution of a single symbol at a time. The symbols can be bits, characters, numbers, glyphs, deoxyribonucleic acid (DNA) nucleotides, optical character recognition (OCR) characters, or fingerprint minutia maps, to name but a few examples.

The edit distance is an important measure in a number of bioinformatics and data-mining applications. Further, the length of the longest subsequence that is common to two input sequences is related to the edit distance. For example, the longest common subsequence in two input character strings “JANUARY” and “FEBRUARY” is “UARY”.

The edit distance and the length of the longest common subsequence can both be determined via dynamic programming, e.g., using Wagner-Fischer or Needleman-Wunsch methods. If the lengths of the symbol sequences are n and m respectively, the dynamic programming solution involves determining the entries of a matrix of size n×m.

FIG. 1 shows pseudocode for a function EditDistance that takes two input character strings, s of length m, and t of length n, and computes the edit distance between those two strings.

FIG. 2 shows a matrix 210 used by the dynamic programming solution for two character strings “FAST” 230 and “FIRST” 240 . Elements of the matrix are determined recursively based on values of previously determined elements. At the end, the bottom-right element of the matrix provides the edit distance 220 .

However, the dynamic programming solution does not provide privacy. If two processors use the dynamic programming solution to find the edit distance between the sequences, each processor knows all the symbols from each string. In some applications, it is necessary to determine the edit distance without disclosing the symbols from the sequences.

In an example of such applications that require privacy, a first processor that stores information about a patient whose DNA sequence is to be examined for susceptibility to genetic disorders, using for example the Smith-Waterman algorithm. A second processor has a database of sequences corresponding to these disorders. The patient information is not to be revealed to the second processor in order to preserve the privacy of the patient. Similarly, the second processor does not want to reveal the database to protect the business, since isolating the sequences in the database may have required significant research, time and investment. Nevertheless, the second processor and the first processor need to determine the edit distance between DNA sequence of the patient and DNA sequences stored in the database to determine if the DNA sequence of the patient approximately matches any of the diagnostic DNA sequences in the database of the second processor. DNA profiling in forensic sciences has similar privacy requirements.

Determining the edit distance under privacy constraints can use secure multiparty computation (SMC). In SMC, two parties can securely compute any function of their inputs as long as that function can be expressed as an algebraic circuit. However, solutions of two-party computation problem, in which outputs and inputs are related by an algebraic circuit, are complicated to implement, even for a very small number of input sequences. Specifically, those methods rely on oblivious transfer protocols which have high computational complexity, and a high communication overhead. For a practical solution to problems, such as the DNA matching problems described above, it is necessary to devise secure protocols, which have manageable computational complexity and require a relatively small number of encrypted transmissions amongst the two parties.

For example, one method determines the edit distance securely using a third semi-honest but trusted processor. However, the third processor is not always available. Furthermore, the third processor can collude with one of the processors and thereby discover the sequences processed by the other processor.

Another method discloses a two-party symmetric protocol, i.e., two processors incur exactly equal protocol overhead in terms of computational complexity and communication. At the end of the protocol, the two processors each possess additive shares of the m×n matrix described above, from which the edit distance is obtained. However, that method requires a large number of encrypted transmissions between the processors. Moreover, the method works efficiently only for a very limited variety of substitution costs.

Accordingly, there is a need to find a computationally efficient method for determining securely an encrypted edit distance between two symbol sequences.

›SUMMARY OF THE INVENTION

The embodiments of the invention disclose a minimum-finding method configured to determine an encryption of a minimum of numbers in homomorphically encrypted form.

One embodiment of the invention discloses a method for determining an encrypted edit distance as an encryption of a minimum cost of transformation of a first sequence into a second sequence based on an insertion cost, a deletion cost, and a substitution cost. The method determines recursively a current element of the matrix as an encryption of a minimum of a first element, a second element, and a third element to produce the dynamic programming solution, wherein the first element represents the insertion cost, the second element represents the deletion cost, and the third element represents the substitution costs, and wherein the current element, the first element, the second element, and the third element are homomorphically encrypted with a public key. The method selects the dynamic programming solution as the encrypted edit distance. Steps of the method are performed by a first processor and a second processor, such that the first sequence is stored only at the first processor and is kept private from the second processor, and the second sequence is stored only at the second processor and is kept private from the first processor.

Another embodiment of the invention discloses a system configured to determine an encrypted edit distance as an encryption of a minimum cost of transformation of a first sequence into a second sequence based on an insertion cost, a deletion cost, and a substitution cost, wherein the minimum cost is a dynamic programming solution of a matrix, wherein elements of the matrix are determined recursively based on values of previously determined elements.

The system includes a first processor configured to interact with a second processor to determine a current element of the matrix as an encryption of a minimum of a first element, a second element, and a third element, wherein the first element represents the insertion cost, the second element represents the deletion cost, and the third element represents the substitution costs, and wherein the current element, the first element, the second element, and the third element are homomorphically encrypted with a public key.

The system further includes a second processor configured to determine the first element, the second element, and the third element based on properties of additive homomorphic encryption, wherein the first sequence is stored only at the first processor and is kept private from the second processor, and the second sequence is stored only at the second processor and is kept private from the first processor; means for determining recursively the dynamic programming solution; and means for selecting the dynamic programming solution as the encrypted edit distance.

›BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is pseudocode of a prior art function EditDistance that takes two input symbol sequences, s of length m, and t of length n, and computes the edit distance between those two input sequences.

FIG. 2 is a matrix 210 used by a dynamic programming solution for two character strings “FAST” and “FIRST;”

FIG. 3 is a schematic of a method for determining securely an encrypted edit distance according to embodiments of the invention;

FIGS. 4-5 are block diagrams of a method for determining an encryption of a minimum number in a set of encrypted numbers according to embodiments of the invention; and

FIG. 6-7 are pseudocode of a method for determining substitution cost according to embodiments of the invention.

›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT · 1 of 4

Encrypted Edit Distance

FIG. 3 shows a schematic of a method 300 determining securely an encrypted edit distance 345 as an encryption of a minimum cost of transformation of a first sequence 315 of symbols into a second sequence 325 of symbols. The cost of transformation is determined based on an insertion cost 332 , a deletion cost 334 , and a substitution cost 336 , as described in more details below. As defined herein, the insertion cost is a cost of inserting a symbol into the second sequence, the deletion cost is a cost of deleting the symbol from the second sequence, and the substitution cost is a cost of substituting the symbol from the second sequence with a symbol from the first sequence.

The symbols in the sequences 315 and 325 can be, e.g., bits, characters, numbers, and DNA nucleotides. In various embodiments of the invention, the substitution cost, the insertion cost and the deletion cost are constant or dependent on the symbol being substituted, inserted or deleted.

Steps of the method 300 are performed by a first processor 310 and a second processor 320 , such that the first sequence is stored only at the first processor, and the second sequence is stored only at the second processor. Data transmitted 330 between the first and second processors are homomorphically encrypted with a public key 360 . The public key is available to both the first and second processors. However, only the first processor has the private key 350 , and thus, only the first processor is able to decrypt the symbols.

Embodiments of the invention formulate a minimum cost of transformation as a dynamic programming solution of a system, i.e., a matrix 326 . Encrypted (ζ) elements of the matrix are determined recursively based on values of previously determined elements.

The first sequence x={x i } i=1 n and the second sequence y={y j } j=1 m are inputs to the method 300 . The symbols x i and y j belong to finite alphabet set A (not shown). For convenience, the subsequence {x i } i=a b is shown as {x} i=a b , where the indices a, b are within proper limits, the insertion cost of a symbol Y k is I(y k ), the deletion cost of a symbol X k with a symbol Y i is S(x k , y i ), wherein k, and i are indices of the symbols in the sequences.

The insertion cost I(y k ), the deletion cost D(x k ), and the substitution cost S(x k , y i ) vary among different embodiments.

If M(i, j) is the minimal cost of transforming a subsequence x 1 i into a subsequence y 1 j , then for 1≦i≦n and 1≦j≦m;

As described above, the elements of the matrix in Equation (1) are determined recursively, i.e., M(i, j) are computed using M(i−1, j), M(i,j−1) and M(i−1,j−1). Further, the edit distance M(n, m) is the minimal cost of transforming the first sequence x 1 n to the second sequence y 1 m . In the example shown in FIG. 3 , the edit distance 340 between the character strings “FAST” and “FIRST” is M(4, 5)=2.

The method 300 determines elements of the matrix in encrypted domain at the second processor, and the second processor cannot decrypt values of the elements without the private key. Embodiments of the invention are based on the realization that it is possible to securely determine a minimum number from the set of encrypted numbers based on properties of semantically secure homomorphic encryption.

The dynamic programming solution 345 is selected as the encrypted edit distance. The encrypted edit distance can be stored in a memory (not shown) and/or transmitted to the first processor for the decryption with the private key.

FIG. 5 shows the determination of the edit distance reduced to computing M(i, j) according to Equation (1). For every i and j, 1≦i≦n, 1≦j≦m, of the first sequence and the second sequence, respectively, the first and second processors determine, using a minimum-finding method 400 , a current element 460 of the matrix as an encryption of a minimum of a first element 510 , a second element 520 , and a third element 530 , wherein the first element represents the insertion cost 332 , the second element represents the deletion cost 334 , and the third element represents the substitution costs 336 , and wherein the current element, the first element, the second element, and the third element are homomorphically encrypted 540 with the public key 360 . The encrypted value of the current element M(i,j) is determined according to

ξ(min{ M ( i− 1 ,j− 1)+ S ( x i ,y i ), M ( i− 1 ,j )+ D ( x i ), M ( i,j− 1)+ I ( y j )})=ξ( M ( i,j ))

The encryptions of the values M(i−1,j−1) 344 , M(i,j−1) 346 and M(i−1,j) 342 are determined by previous iteration of the method 300 . Encryption of the insertion cost I(y j ), i.e., ξ(I(y j )), is transmitted from the first processor to the second processor. The deletion cost D(X i ), and hence an encryption ξ(D(x i )) is available to the second processor. Encryption of the substitution cost S(x i , y j ), i.e., ξ(S(x i , y j )) is provided or determined dynamically as described below.

The first element representing the insertion cost is determined based on properties of additive homomorphic encryption according to

ξ( I ( y j ))ξ( M ( i,j− 1))=ξ( I ( y j )+ M ( i,j− 1)).

The second element representing the deletion cost is determined based on properties of additive homomorphic encryption according to

ξ( D ( x i ))ξ( M ( i− 1 ,j ))=ξ( D ( x i )+ M ( i− 1 ,j )).

The third element representing the substitution cost is determined based on properties of additive homomorphic encryption according to

ξ( S ( x i ,y j ))ξ( M ( i− 1 ,j− 1))=ξ( S ( x i ,y j )+ M ( i− 1 ,j− 1)).

Then, the minimum-finding method receives 550 as inputs the first element, the second element and the third element, and determines the current element as encrypted value of the minimum. In the embodiments, the current element, the first element, the second element, and the third element are homomorphically encrypted with the public key.

In some embodiments, representation of the substitution cost for an initial element M(1, 1), i.e., M(0, 0)+S(x 1 , y 1 ), is less than or equal to both elements M(0, 1) and M(1, 0) for all possible x 1 , y 1 . Moreover, the insertion and the deletion costs are equal for all symbols and known to both processors. One such commonly occurring example is shown in FIGS. 2 and 3 , in which M(0, 0)=0, S(x 1 , y 1 )=1, In this embodiment, the insertion and the deletion cost for any symbol is 1, so both processors know that M(0, 1)=M(1, 0)=1. Accordingly, the encryption of the element M(1, 1) is not determined using the minimum-finding method.

›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT · 2 of 4

In this embodiment, the second processor determines the initial encrypted element according to ξ(M(1, 1))=ξ(S(x 1 , y 1 )) using appropriate substitution cost. In different embodiments, the encryption of the substitution cost is either predetermined, or computed dynamically as described below.

After determining recursively the encryption of each element in the matrix M, in one embodiment, the second processor transmits a value of the encrypted edit distance ξ(M(n,m)) to the first processor. The first processor decrypts this value and obtains the edit distance between two sequences x 1 n and y 1 m . In one embodiment, the first processor transmits the value of the edit distance back to the second processor. Thus, the edit distance is determined without violating privacy, i.e., the first signal is known only to the first processor, and the second signal is known only to the second processor.

Homomorphic Encryption

Let P be a set of plaintexts associated with a binary operator · P, and H be a set of ciphertexts associated with a binary operator · H.

Definition 1 A mapping ξ: P→H is homomorphic if the following holds for all a, bεP,

ξ( a· P b )=ξ( a )· H ξ( b ).

The embodiments use homomorphic cryptosystems in which the operator · P is the addition operator and the operator · H is the multiplication operator. Such cryptosystems are sometimes referred to as additively homomorphic, e.g., Benaloh and Paillier cryptosystems. Both these cryptosystems are semantically secure, i.e., repeated encryptions of the same plaintext result in different ciphertexts. Embodiments of the invention use a variety of semantically secure additively homomorphic cryptosystems. As an example, the Paillier cryptosystem is briefly summarized below.

Configuration:

Select two large prime numbers p,q, and let N=pq. Denote by Z N 2 *⊂Z N 2 ={0, 1, . . . , N 2 −1} the set of non-negative integers that have multiplicative inverses modulo N 2 . Select gεZ N 2 such that gcd(L(g λ mod N 2 ), N)=1, where λ=lcm(p−1, q−1), and

L ⁡ ( x ) = x - 1 N .

Let (N,g) be the public key, and (p,q) be the private key.

Encryption:

Let mεZ N be a plaintext. Then, the ciphertext is given by

ξ r ( m )= g m ·r N mod N 2   (2)

where rεZ N * is a number selected at random.

Decryption:

Let cεZ N 2 be a ciphertext. Then, the corresponding plaintext is determined according to

The decryption works irrespective of the value of the number r used during the encryption. Since the number r can be chosen at random for every encryption, the Paillier cryptosystem is probabilistic, and therefore semantically secure, i.e., r 1 ≠r 2 ξ r 1 (x)≠ξ r 2 (x).

Also, the properties of the mapping according to Equation (2) from the plaintext set (Z N ,+) to the ciphertext set (Z N 2 *,·) satisfy the following relations

ψ(ξ r 1 ( m 1 )ξ r 1 ( m 2 )mod N 2 )= m 1 +m 2 mod N,   (4)

ψ([ξ r ( m 1 )] m 2 mod N 2 )= m 1 m 2 mod N,   (5)

wherein m 1 and m 2 are any two integer messages, which are encrypted using the cryptosystem described above. The subscripts r 1 , r above represent the parameter ‘r’ in Equation (2) and are selected at the time of encryption, such that different values of ‘r’ in Equation (2) result in a different ciphertext. By changing the value of ‘r’ at every encryption, Paillier encryption achieves semantic security. In this description, the subscripts ‘r’ are omitted for simplicity of notation, when the notion of the semantic security is not relevant.

Some embodiments of the invention use Paillier encryption. However, other embodiments use other semantically secure additively homomorphic schemes.

Minimum-Finding Method

FIG. 4 shows a block diagram of a method 400 for determining the encryption of a minimum number in a set of encrypted numbers according to embodiments of the invention. The method 400 is used by the embodiments of the invention to determine the current element of the matrix as the encryption of the minimum of the first, the second, and the third elements.

For example, the second processor 320 stores a set of numbers in homomorphically encrypted form ξ r i (a i ), e.g., ξ r 1 (a 1 ), ξ r 2 (a 2 ), . . . , ξ r L (a L ) 410 of L numbers a 1 , a 2 , . . . , a L . The minimum-finding method allows the second processor to determine the encryption of the minimum of these numbers, i.e., ξ r (min i {a i }) 460 for some coefficient rεZ N *. The method 400 does not allow the second processor to discover a i , or any information about the index or value of the minimum.

Similarly, the first processor does not discover any information about the numbers a i , a 2 , . . . , a L . The steps of the method are as follows:

The second processor selects positive integers μ and α 450 at random, i.e., μ is a scaling constant and α is an integer shift selected at random. For the Paillier cryptosystem, to ensure that μ can later be removed, the second processor chooses μ at random from the set Z N *. The second processor then obtains an encryption ξ r 0 (α) 451 using the public key 360 , determines an encrypted summation ξ r′ i (μa i +α)=(ξ r i (a i )) μ ξ r 0 (α) 420 for i=1, 2, . . . , L producing a set of encrypted summations 420 and transmits 425 the set of encrypted summations to the first processor. For the Paillier cryptosystem, the encryption coefficient r′ i =r i r 0 , and the second processor can not determine the encryption coefficient r′ i without knowing the encryption coefficient r i .

The first processor decrypts the numbers with the private key 350 , determines the minimum given by min i {μa i }+α 430 and then re-encrypts the result with the public key to produce an encrypted minimum ξ r B (min i {μa i }+α) 460 and transmits 465 the encrypted minimum back to the second processor. The second processor computes ξ r 0 (−α) 452 , and determines ξ r B (min i {μa i }+α)ξ r 0 (−α)=ξ r (min i {μa i }) 470 .

Note that, with very high probability, ξ r (min i {μa i }) is not equal to any one of the encryptions ξ r i (a i ), because the first processor selects a random encryption coefficient r B unknown to the second processor, which makes the encryption semantically secure. This ensures that, when the second processor obtains the encryption of the minimum, the index of the minimum in the original sequence ξ r 1 (a 1 ), ξ r 2 (a 2 ), . . . , ξ r L (a L ) remains hidden from the second processor.

›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT · 3 of 4

4. The second processor determines 480 , which is the encrypted minimum 460 according to

(ξ r (min i {μa i })) 1/μ =(ξ r (μmin i {a i })) 1/μ =ξ r (min i {a i })

Note that the use of positive integers μ and α prevents the first processor from discovering any information of the numbers a i . Further, due to semantic security, the second processor cannot discover the index ‘i’ of the minimum. Finally, since the second processor does not have the decryption key, the second processor cannot determine the actual value of the minimum.

To determine the edit distance, the minimum-finding method is performed with three values, i.e., L=3 above. In one embodiment, each symbol has positive insertion and deletion costs, and non-negative substitution costs.

In other embodiments, some symbols have a negative or zero insertion cost and/or negative or zero deletion cost. Additionally or alternatively, all the three entries corresponding to the insertion cost, deletion cost and substitution cost can be equal. In such cases, even though the first processor cannot determine values of the variable μ and α, the first processor can determine the minimum value based on the insertion cost of each symbol.

In such embodiments, the second processor appends two or more “dummy” variables to the vector, ξ r 1 (a 1 ), ξ r 2 (a 2 ), . . . , ξ r L (a L ), i.e., L>3. In each iteration of minimum-finding method, different dummy variables and/or number of the dummy variables are used, in order to prevent the first processor from obtaining any information about the dummy variables. Then, after decrypting and determining the minimum, the first processor determines and transmits one or more encrypted values to the second processor.

For example, in some embodiments, the second processor appends dummy variables ξ(A) and ξ(B) to the vector ξ r 1 (a 1 ), ξ r 2 (a 2 ), . . . , ξ r L (a L ) where a variable A is large and a variable B is small compared with all values of the a i . Then, the second processor requests the encryptions of the two smallest values from the first processor, specifying which value is the smallest and which value is the second smallest.

Since the first processor knows that the smallest value corresponds to the variable B, the second processor discards the encrypted element corresponding to the index of the minimum value received from the first processor, and selects the encryption of the second smallest value as the encrypted value of the true minimum.

In some embodiments, instead of having a common constant α, the second processor uses μ as a power of 2 and selects various unequal constants α 1 , α 2 , . . . , α L such that α i <μ for all i=1, 2, . . . , L. The second processor transmits the encryptions ξ(μa i +α i ) to the first processor. Then, the first processor decrypts the encryption and determines a minimum min i μa i +α i . However, instead of transmitting back the encryption of the minimum, the first processor converts the minimum to binary, encrypts each bit and transmits the encrypted bits to the second processor. Since the second processor selected the values of α 1 , α 2 , . . . , α L , the second processor knows exactly how many bits have been utilized for the α i and knows that the remaining bits have been utilized for the desired minimum value scaled by μ. Note that there is no overlap between these bits because α i <μ for all i=1, 2, . . . , L. So, using the properties of homomorphic encryption, the second processor obtains the bits corresponding to the minimum value scaled by μ. Then, the second processor reverses the multiplication by μ. The first processor is prevented from knowing the value of the minimum, even when one or more of the a i values are equal.

Determining Substitution Costs

Embodiments of the invention determine the current element of the matrix as an encryption of the minimum of elements representing the insertion cost, the deletion cost, and the substitution costs. In different embodiments the insertion cost, the deletion cost, and the substitution cost are predefined, determined dynamically, or a combination thereof is used.

For example, in one embodiment, the insertion cost, the deletion cost, and the substitution costs are predefined. In one variation of these embodiments all costs are integer values. In another embodiment, the insertion and the deletion costs are predefined, but the substitution cost is determined dynamically. In one variation of this embodiment, the substitution cost is determined based on values of the symbols to be substituted.

Constant Substitution Cost

In one embodiment, the substitution cost is a constant when the symbols of the first and the second sequences are different, and zero when the symbols are identical. One variation of this embodiment, maps the symbols in the alphabet to an integer set {1, 2, 3, . . . , Q}, wherein Q is the size of the alphabet set. For example, for DNA sequences with symbols A,T, C, G the size Q=4. The substitution cost in this embodiment is S(a, b)=0 if a=b and S(a, b)=1 if a≠b, wherein a is a symbol of the first sequence, and b is a symbol of the second sequence.

FIG. 6 shows pseudocode of a method for determining a constant substitution cost according to following steps.

1. The first processor converts the symbol ‘a’ of the first string to a first binary sequence of length Q having first ‘a’ bits equal to 1 and the last Q−a bits equal to 0. The bits from the first binary string are defined as a i , where i goes from 1 to Q. Similarly, the second processor converts the symbol ‘b’ of the second sequence to a second binary sequence of length Q having the first ‘b’ bits equal to 1 and the last Q−b bits equal to 0. 2. The first processor transmits the encryption of each bit in the first binary sequence to the second processor. 3. The second processor computes a 2×2 determinant from the first and second bits from the second binary string, and the first and second encrypted bits from the first binary sequence according to ξ(U 1 )=ξ(a 1 b 2 −a 2 b 1 )=ξ(a 1 b 2 )ξ(−a 2 b 1 )=[ξ(b 2 ) raised to the power a 1 ]*[ξ(b 1 ) raised to the power (−a 2 )]. 4. The second processor repeats the previous step for the second and third bits from both binary sequences, then the third and fourth bits, and so on until the entire sequence of length Q is exhausted. Thus, the second processor determines the encrypted 2×2 determinants ξ(U 1 ), ξ(U 2 ), . . . , ξ(U Q-1 ). 5. The second processor computes a sum of determinants ξ(U) as Π i ξ(U i )=ξ(Σ i U i ) where i varies from 1 to Q−1. This uses the property of additive homomorphic encryption. 6. The second processor selects a number d at random, and computes ξ(U+d)=ξ(U)ξ(d) and transmits the result to the first processor. 7. The first processor decrypts the two numbers, determines the product (U+d) 2 =U′, encrypts the product U′ and transmits ξ(U′) back to the second processor. 8. The second processor computes ξ(U′)ξ(−2dU)ξ(−d 2 )=ξ(U′−2dU−d 2 )=ξ(U 2 ).

›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT · 4 of 4

By construction, U=0, 1 or −1. Therefore, U 2 is either 0 or 1 depending on whether the symbols ‘a’ and ‘b’ are the same or different respectively. Thus, ξ(U 2 ) provides the encrypted value of the substitution cost. The second processor only obtains the encrypted substitution cost but not the actual substitution cost since the second processor does not have the decryption key. The first processor knows nothing, due to lack of knowledge of the number “d.”

Absolute Distance Substitution Cost

In another embodiment, the substitution cost is an absolute distance between symbols of the first and the second sequence, i.e., if the symbols are ‘a’ and ‘b’ respectively, then the substitution cost S(a, b)=|a −b|. Similarly to the aforementioned embodiment, the symbols in the alphabet are mapped to an integer set {1, 2, 3, . . . , Q}.According to the minimization protocol, the first processor can determine the encryption of the substitution cost. The second processor cannot.

FIG. 7 shows pseudocode of a method for determining an absolute distance substitution cost according to following steps.

1. The first processor converts the symbol ‘a’ of the first sequence to a first binary sequence of length Q having a first ‘a’ bits equal to 1 and the last Q−a bits equal to 0. The bits from the first binary sequence are defined as a i , where i ranges from 1 to Q. Similarly, the second processor converts the symbol ‘b’ of the second sequence to a second binary sequence of length Q having the first ‘b’ bits equal to, 1 and the last Q−b bits equal to 0. 2. The first processor transmits encryption of each bit in the binary sequence to the second processor. 3. The second processor determines encryption of the substitution cost ξ(S(a, b)) based on the properties of additive homomorphic encryption according to

Polynomial Function Substitution Cost

In another embodiment, the substitution cost is a result of an application of a polynomial function to the symbols of the two sequences, as described in U.S. patent application Ser. No. 12/495,721, incorporated herein by reference. For example, the second processor stores an integer a and the first processor stores an integer b. The embodiment determines, at the second processor, the substitution cost S(a,b)=Σ i,j c ij a i b j in encrypted form.

The substitution cost S (a,b)=(a−b) s is a polynomial of degree s in b, i.e., 0≦j≦s. Thus, the second processor determines the substitution cost ξ r (Σ i,j c ij a i b j ) for some encryption coefficient rεZ N *. The second processor is not able to decrypt the substitution cost because the second processor does not possess the private key. The first processor knows only the value of integer b. The steps are as follows:

1. For 0≦j≦s, the first processor encrypts, b j and transmits ξ r B (b j ) to the second processor. 2. The second processor based on values of c i,j and a, determines

This method incurs a significantly lower computation and communication overhead for polynomial evaluation compared with the methods based on oblivious transfer. Methods based on the oblivious transfer become extremely complex and incur a large transmission overhead even for very simple polynomials.

Longest Common Subsequence

One embodiment of the invention determines the length of the longest common subsequence between the first and the second sequences. This embodiment is similar in many respects to the embodiments for determining the edit distance. There are only two main differences:

First, instead of computing minimum of three elements at each step of the method, the embodiment determines a maximum of three elements. For example, for numerical values, the two processors reverse the signs of all the values, and use the minimum-finding method described above.

Second, instead of selecting the edit distance as the last element M(n, m) of the matrix, we search the entire matrix and find the maximal element in the matrix. An encryption of the maximal element can be found by reversing the sign of each element in the matrix M and applying the minimization protocol described earlier. Then, the obtained result is sent to the first processor who decrypts it to obtain the maximal element. This maximal element gives the length of the longest common subsequence. This means that after computing the entire matrix, the two processors perform one more maximum-finding protocol with mn encrypted elements to obtain the desired result, which is the encryption of the length of the longest common subsequence.

Although the invention has been described by way of examples of preferred embodiments, it is to be understood that various other adaptations and modifications may be made within the spirit and scope of the invention. Therefore, it is the object of the appended claims to cover all such variations and modifications as come within the true spirit and scope of the invention.

Claims as granted

11 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

3 codes
IPC · International Patent Classification
Section H — Electricity
  • H04L9/00
USPC · US Patent Classification
380/28708/422

Claim changes

Soon
Coming soonHow the claims changed between publication and grant

See which claims were amended, added or cancelled during examination, with every added and removed word marked.

AmendedAddedCancelledUnchanged

The published claims of this application are not paired with the granted ones in what we hold.

File wrapper

⤢ drag to zoomJan 2010Jul 2010Jan 2011Jul 2011Jan 2012Jul 2012Jan 2013Jul 2013Jan 2014USPTOApplicantNon-final rejectionResponse after non-finalFinal rejectionNotice of allowance
USPTOApplicanthover for detail · click to open
Pendency
3.9 y
1,428 days filing → grant
Office actions
2
non-final + final
Responses
2
no RCE
Interviews
1
examiner interview summaries
Examiner
April Y Blair
art unit 2492 · TC 2400
Citations: 16 back · 8 forward

See the full prosecution history — every USPTO and applicant action on this file, in order.

Log in to unlock

Documents

Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.

Log in to unlock

Chain of title

⤢ drag to zoom20102012201420162018202020222024202620282030Owner 1
Titlehover for detail · click to open

See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.

Log in to unlock