25.01.2015 Views

Download Full Issue in PDF - Academy Publisher

Download Full Issue in PDF - Academy Publisher

Download Full Issue in PDF - Academy Publisher

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

JOURNAL OF COMPUTERS, VOL. 8, NO. 6, JUNE 2013 1429<br />

pk, and Dec(c, sk) function to decrypt ciphertext c with<br />

private key sk. Denote the public key and secret key of<br />

data owner as (pk owner , sk owner ). Denote the public key<br />

and secret key of user user i as (pk useri , sk useri ). All data<br />

are encrypted us<strong>in</strong>g homomorphic encryption algorithm,<br />

each one of owner, sp and user publishes his public key<br />

and uses the private key to decrypt ciphers.<br />

A. data storage<br />

In our solution, data are stored <strong>in</strong> database, and <strong>in</strong><br />

key/data model. That means each tuple is composed of<br />

one key and one data, the key and data are encrypted<br />

respectively. To construct <strong>in</strong>dices of data, several keys<br />

are composited together to form a 1024 b<strong>in</strong>ary bits block.<br />

Number of keys <strong>in</strong> one block is determ<strong>in</strong>ed by length of<br />

key. Let l be length of key, then the number of keys <strong>in</strong> one<br />

block is ⌊(1024)/(l+1)⌋ and one bit is added to each key<br />

to deal with overflow.. Let k 1 , k 2 , . . . , k m be keys which<br />

will be comb<strong>in</strong>ed together, then the key block <strong>in</strong> <strong>in</strong>dex k<br />

can be computed as follows:<br />

Algorithm 1: Index construct<strong>in</strong>g algorithm<br />

Input: key, po<strong>in</strong>ter*<br />

Output: <strong>in</strong>dex file f<br />

1 f= New(file );<br />

2 l= length of key;<br />

3 n = <strong>in</strong>t(1024/(l + 1));<br />

4 while not end of <strong>in</strong>put do<br />

5 i = 0;<br />

6 m 1 = m 2 = 0;<br />

7 while i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!