APPARATUS AND METHOD FOR GIVING THE COMPRESSED ENCRYPTION FUNCTIONALITY TO INTEGER-BASED HOMOMORPHIC ENCRYPTION SCHEMES

Information

  • Patent Application
  • 20150180659
  • Publication Number
    20150180659
  • Date Filed
    June 23, 2014
    10 years ago
  • Date Published
    June 25, 2015
    9 years ago
Abstract
The present invention relates to a compressed encryption and decryption apparatus comprising: an interface receiving a public key, a secret key and a compression ratio; a memory storing instructions for encryption and decryption of plaintexts; and a processor encrypting and decrypting plaintexts according to the instruction, wherein the instruction comprises instructions performing; generating an extended public key and an extended secret key by revising the public key and the secret key according to the compression ratio; outputting the extended public key; receiving compressed ciphertext; and decrypting the compressed ciphertext using modulo operation for multiplication of the extended secret key and the compressed ciphertext.
Description
CROSS REFERENCE TO RELATED APPLICATION

This application claims the benefit of Korean Patent Application No. 10-2013-0161797, filed on Dec. 23, 2013, entitled “Apparatus and method for giving the compressed encryption functionality to integer-based homomorphic encryption schemes”, which is hereby incorporated by reference in its entirety into this application.


BACKGROUND OF THE INVENTION

1. Technology Field


The present invention relates to an encryption technology, and more particularly to the technology for giving the compressed encryption functionality to integer-based homomorphic encryption schemes.


2. Description of the Related Art


Homomorphic encryption scheme is a form of encryption which allows operations to be carried out on encrypted data.


Recent researches on designs of the homomorphic encryption have been focused on realization of very large size of a public key which is used in conventional schemes. A research which should be accompanied along with those researches is to reduce cost for storing the encrypted data. Since an application environment which is expected to use homomorphic encryptions requires a serve to store high-volume data such as cloud services or big-data services, it is very important to develop not only techniques for reducing the length of a public key using fixed special resources but also techniques for reducing the size of encrypted data which is expected to be very variable and large.


Most of the techniques proposed to date are configured to encrypt only 1 bit information in a ciphertext. Thus, n (n is predetermined natural number) numbers of ciphertexts are generated for n bit encryption which results in increases in cost for the same level to store those data. Recently, the scheme to encrypt multiple bit information in a single ciphertext has been developed. An existing compressed encryption scheme allows the compressed encryption for ξ bit plaintext information in a single ciphertext when a compression ratio ξ is determined and then parameters which are corresponding thereto are determined in the design of the homomorphic encryption scheme. About n/text missing or illegible when filed numbers of ciphertexts are generated for the encryption of n bit information so that the storage space efficiency is improved by about t times compared to those techniques which perform the encryption in units of bit. However, this existing compressed encryption scheme cannot use the parameters which are used for other integer-based schemes but should use parameters satisfying certain conditions for the compressed encryption.


SUMMARY OF THE INVENTION

An object of the present invention is to provide an apparatus and method for compressed encryption and decryption which compresses and encrypts multiple plaintext information to a single ciphertext.


Another object of the present invention is to provide an apparatus and method for compressed encryption and decryption which compresses and encrypts multiple plaintext information to a single ciphertext without changing basic parameters and basic algorithms of the homomorphic encryption scheme.


According to an aspect of the present invention, there is provided a compressed encryption and decryption apparatus comprising: an interface receiving a public key, a secret key and a compression ratio; a memory storing instructions for encryption and decryption of plaintexts; and a processor encrypting and decrypting plaintexts according to the instruction, wherein the instruction comprises instructions performing; generating an extended public key and an extended secret key by revising the public key and the secret key according to the compression ratio; outputting the extended public key; receiving compressed ciphertext; and decrypting the compressed ciphertext using modulo operation for multiplication of the extended secret key and the compressed ciphertext.


The step of decrypting the compressed ciphertext using modulo operation for multiplication of the extended secret key and the compressed ciphertext may comprise: calculating an integer value by stripping the decimal part from the multiplied value of the extended secret key and the compressed ciphertext; adding the integer value and the compressed ciphertext; and obtaining plaintext from least significant bits of the added value of the integer value and the compressed ciphertext, wherein the number of least significant bits is according to the compression ratio.


The instruction may further comprise instructions performing: receiving an external extended public key; and compressing and encrypting the plaintext by performing modulo operation to the external extended public key, wherein the external extended public key may be a key which is revised from a public key according to the compression ratio.


The step of compressing and encrypting the plaintext by performing modulo operation to the external extended public key may comprise generating a compressed ciphertext by adding a value resulted from modulo operation according to any one from the external extended public key for the sum of at least one of the external extended public key, and number of bits according to the compression ratio from the plaintext.


According to another aspect of the present invention, there is provided a compressed encryption and decryption method in an encryption method of plaintext by an encryption and decryption apparatus, comprising: receiving a public key, a secret key and a compression ratio; generating an extended public key and an extended secret key by revising the public key and the secret key according to the compression ratio; outputting the extended public key; receiving compressed ciphertext; and decrypting the compressed ciphertext using modulo operation for multiplication of the extended secret key and the compressed ciphertext.


The step of decrypting the compressed ciphertext using modulo operation for multiplication of the extended secret key and the compressed ciphertext may comprise: calculating an integer value by stripping the decimal part from the multiplied value of the extended secret key and the compressed ciphertext; adding the integer value and the compressed ciphertext; and obtaining plaintext from least significant bits of the added value of the integer value and the compressed ciphertext,


wherein the number of least significant bits is according to the compression ratio.


The compressed encryption and decryption method may further comprise: receiving an external extended public key; and compressing and encrypting the plaintext by performing modulo operation to the external extended public key, wherein the external extended public key is a key which is revised from a public key according to the compression ratio.


The step of compressing and encrypting the plaintext by performing modulo operation to the external extended public key may comprise generating a compressed ciphertext by adding a value resulted from modulo operation according to any one from the external extended public key for the sum of at least one of the external extended public key, and number of bits according to the compression ratio from the plaintext.


According to an embodiment of the present invention, the present application allows improvement in storage efficiency by compressing and encrypting multiple bit information into a single ciphertext.


In addition, according to an embodiment of the present invention, since the present invention uses general encryption algorithms which perform encryption by a single bit, it can lower the required volume of storage space without deteriorating stability of chipertexts and efficiencies associated with differences in parameters.


In addition, according to an embodiment of the present invention, the present invention allows encryption multiple bit information to a single ciphertext without changing basic configuration of integer-based homomorphic encryption and also decryption back.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 illustrates a compressed encryption and decryption apparatus according to an embodiment of the present invention.



FIG. 2 is a flowchart illustrating a process for generating an extended public key and an extended secret key by a compressed encryption and decryption apparatus according to an embodiment of the present invention.



FIG. 3 is a flowchart illustrating a process for encryption of a plaintext by a compressed encryption and decryption apparatus according to an embodiment of the present invention.



FIG. 4 is a flowchart illustrating a process for decryption of a compressed ciphertext by a compressed encryption and decryption apparatus according to an embodiment of the present invention.





DESCRIPTION OF THE EXEMPLARY EMBODIMENTS

While the present invention will be described with reference to particular embodiments and accompanying drawings in more detail, it is to be appreciated that various changes and modifications thereof may be made. There is no intention to limit the invention to those particular embodiments and accompanying drawings but it is to be appreciated that the present invention includes all modifications, alterations, equivalents and substituents included in the spirit and scope of the present invention.


In the present description, an expression such as “transmit” is intended to include not only that a signal is transmitted from one component to another component which are connected directly but also that a signal is transmitted from one component to another component which are connected having a different component in the middle.


Furthermore, it is to be appreciated that a public key and a secret key are the public key and the secret key according to known homomorphic encryption schemes.



FIG. 1 illustrates a compressed encryption and decryption apparatus according to an embodiment of the present invention.


Referring to FIG. 1, a compressed encryption and decryption apparatus comprises an interface 110, a processor 120 and a memory 130.


The interface 110 receives a plaintext, a public key, a secret key, and a compression ratio to be an object for encryption. Here, the interface 110 may receive data from an external device by being equipped with a communication module or extract data from storage medium equipped in the compressed encryption and decryption apparatus. The compression ratio means the number of bits of the plaintext to be included in one compressed ciphertext. The public key and the secret key are the keys generated according to known integer-based homomorphic encryption schemes. Namely, η-bit (η is predetermined natural number) odd number p may be selected as a secret key and a public key may be selected from the set represented by Equation 1 by the secret key p,






D
γ:ρ(p)={x=p·a+b: aεZ∩[0,2γ/p),bεZ∩(−2ρ,2ρ)}  Equation 1


wherein, Z is a set of integers which means that the public key can be selected from the set Dγ:ρ(p) including any element xi for i−1, . . . . Here, in the detailed description of the present invention, the public key is defined as







p





k

=

{


x
0

,

x
1

,





,

x
r


}





and it is assumed that x0 is a multiple of p. Particularly, S which is a color of the subset randomly selected from {x1, . . . ,xtext missing or illegible when filed} may be generated and a public key including elements in the form of pq+2r for natural numbers q and r may be generated by calculating






2





i

S





x
i




mod


(

x
0

)


.







Here, one who has selected S cannot know q and r. An integer-based homomorphic encryption and decryption scheme generates a ciphertext having the form of c=pq+2r+m by adding 1 bit plaintext m to be encrypted to a value calculated with






2





i

S





x
i




mod


(

x
0

)


.







Therefore, the integer-based homomorphic encryption and decryption scheme performs decryption by performing a modulo operation twice such as the following Equation 2 for C.






m=(c mod(p)) mod(2)=(pq+2r+m mod(p)) mod(2)  Equation 2


In addition, the integer-based homomorphic encryption and decryption scheme may perform decryption in another form according to implementations. For example, the integer-based homomorphic encryption and decryption scheme calculates q which is a quotient of pq+2r+m divided by p and further calculates (p+1)q+2r+m by adding q to pq+2r+m. Here, since p+1 is even, the remainder of (p+1)q+2r+m divided by 2 can be restored to a plaintext. An exemplary embodiment of the homomorphic encryption and decryption scheme has been described above and it can be modified from the form described above according to implementation. However, the encryption process using a public key will not deviate from the basic process which includes generation of a random number of pq+2r and addition of a plaintext to the random number. Further, a compressed encryption and decryption apparatus according to an embodiment of the present invention which will be described below uses public keys and secret keys according to any one of various know types of the integer-based homomorphic encryption and decryption scheme which has been described above.


The interface 110 may receive a compressed ciphertext to which a plaintext is encrypted and an extended public key from an external device. The extended public key is a public key having a part of contents which are changed or added from the public key used in the homomorphic encryption scheme to provide compressed encryption according to compression ratio. Hereinafter, the extended public key received from an external device is called as an external extended public key.


The processor 120 compresses and encrypts plaintexts using an external extended public key according to instructions stored in the memory. The processor 120 may generate an extended public key and an extended secret key using a public key, a secret key and a compression ratio according to instructions stored in the memory, and decrypt a compressed ciphertext using the extended secret key to generate a plaintext.


The memory 130 stores instructions to conduct the above-mentioned functions of the processor 120.


A process for generating an extended public key and an extended secret key which is performed by the processor 120 according to the above-mentioned instructions will be described below in more detail. The process will be described mainly with a compressed encryption and decryption apparatus to explain simply and clearly the processes performed by the processor 120 of the present invention.



FIG. 2 is a flowchart illustrating a process for generating an extended public key and an extended secret key by a compressed encryption and decryption apparatus according to an embodiment of the present invention.


Referring to FIG. 2, in Step 210, the compressed encryption and decryption apparatus receives a public key, a secret key and a compression ratio through the interface 110.


In Step 220, the compressed encryption and decryption apparatus generates an extended public key having the form of pq+2ξ, for an integer q and r by changing the public key or adding a part of information of the public key. Namely, the compressed encryption and decryption apparatus generates an extended public key by adding a compression ratio ξ to the existing public key information or changing the public key itself by adding xi*=2lxi mod(x0) in addition to xi but it can be different according to implementations.


In Step 230, the compressed encryption and decryption apparatus generates the extended secret key to p/p ( p=−p mod(2l) That is, p is a value which satisfies the following Equation 3.






p+ p=p−p=0 mod(2l)  Equation 3


Here, when a secret key includes secret information in addition to the information relating to p in the integer-based homomorphic encryption scheme, the secret information may be an extended secret key.


As described, the extended public key and the extended secret key which are generated by the compressed encryption and decryption apparatus according to an embodiment of the present invention may include a public key and a secret key used in the integer-based homomorphic encryption scheme, respectively and additional information to provide compressed encryption functionalities to the corresponding public key and secret key.



FIG. 3 is a flowchart illustrating a process for encryption of a plaintext by a compressed encryption and decryption apparatus according to an embodiment of the present invention.


Referring to FIG. 3, in Step 310, the compressed encryption and decryption apparatus receives a plaintext and an external extended public key pk={x0, x1, . . . xnl} through the interface. In Step 320, the compressed encryption and decryption apparatus extracts ξ bits(Mε{0,1}ξ) from the plaintext according to a compression ratio.


In Step 330, the compressed encryption and decryption apparatus selects a subset S={1, . . . ,r} from the external extended public key.


In Step 340, the compressed encryption and decryption apparatus generates a compressed ciphertext C to which the plaintext is encrypted by adding a product value modulo first element of the subset and l bits plaintext. The product value is product of 2l and sum of every element of the subset. The compressed encryption and decryption apparatus encrypts the plaintext according to the following Equation 4.









C
=

M
+


2
i






i

S





x
i



mod


(

x
0

)










Equation





4







Here, when the extended public key further includes xi*=2lxi mod(x0), the compressed encryption and decryption apparatus may encrypt the plaintext according to the following Equation 5.









C
=

M
+




i

S





x
i




mod


(

x
0

)









Equation





5








FIG. 4 is a flowchart illustrating a process for decryption of a compressed ciphertext by a compressed encryption and decryption apparatus according to an embodiment of the present invention.


Referring to FIG. 4, in Step 410, the compressed encryption and decryption apparatus receives a compressed ciphertext through the interface 110. It may be assumed that the compressed ciphertext is a compressed ciphertext encrypted through an extended public key generated by the compressed encryption and decryption apparatus.


In Step 420, the compressed encryption and decryption apparatus calculates an integer value by stripping the decimal part from the multiplied value of the compressed ciphertext C and a secret key.


In Step 430, the compressed encryption and decryption apparatus adds the integer value and the compressed ciphertext. The processes from Step 320 to Step 330 may be represented by the following Equation 6.






C+└C·(p/p)┘  Equation 6


In Step 440, the compressed encryption and decryption apparatus extracts a lower ξ bits(an ξ number of least significant bits) of the added value of the integer value and the compressed ciphertext, and calculates the extracted lower ξ bits into a plaintext. That is, the compressed encryption and decryption apparatus may decrypt the compressed ciphertext by employing the following Equation 7 wherein M is a plaintext of ξ bits.






M=C+└C·(p/p)┘ mod(2l)  Equation 7


Accordingly, since the compressed encryption and decryption apparatus according to an embodiment of the present invention uses general encryption algorithms which perform encryption by a single bit, it can lower the required volume of storage space without deteriorating stability of chipertexts and efficiencies associated with differences in parameters. In addition, the compressed encryption and decryption apparatus according to an embodiment of the present invention allows encryption multiple bit information to a single ciphertext without changing basic configuration (parameters and algorithms) of integer-based homomorphic encryption and also decryption back.


The spirit of the present invention has been described by way of example hereinabove, and the present invention may be variously modified, altered, and substituted by those skilled in the art to which the present invention pertains without departing from essential features of the present invention. Accordingly, the exemplary embodiments disclosed in the present invention and the accompanying drawings do not limit but describe the spirit of the present invention, and the scope of the present invention is not limited by the exemplary embodiments and accompanying drawings. The scope of the present invention should be interpreted by the following claims and it should be interpreted that all spirits equivalent to the following claims fall within the scope of the present invention.

Claims
  • 1. A compressed encryption and decryption apparatus comprising: an interface receiving a public key, a secret key and a compression ratio;a memory storing instructions for encryption and decryption of plaintexts; anda processor encrypting and decrypting plaintexts according to the instruction,wherein the instruction comprises instructions performing;generating an extended public key and an extended secret key by revising the public key and the secret key according to the compression ratio;outputting the extended public key;receiving compressed ciphertext; anddecrypting the compressed ciphertext using modulo operation for multiplication of the extended secret key and the compressed ciphertext.
  • 2. The compressed encryption and decryption apparatus of claim 1, wherein the step of decrypting the compressed ciphertext using modulo operation for multiplication of the extended secret key and the compressed ciphertext comprises: calculating an integer value by stripping the decimal part from the multiplied value of the extended secret key and the compressed ciphertext;adding the integer value and the compressed ciphertext; andobtaining plaintext from least significant bits of the added value of the integer value and the compressed ciphertext,wherein the number of least significant bits is according to the compression ratio.
  • 3. The compressed encryption and decryption apparatus of claim 1, wherein the instruction further comprises instructions performing: receiving an external extended public key; andcompressing and encrypting the plaintext by performing modulo operation to the external extended public key,wherein the external extended public key is a key which is revised from a public key according to the compression ratio.
  • 4. The compressed encryption and decryption apparatus of claim 3, wherein the step of compressing and encrypting the plaintext by performing modulo operation to the external extended public key comprises generating a compressed ciphertext by adding a value resulted from modulo operation according to any one from the external extended public key for the sum of at least one of the external extended public key, and number of bits according to the compression ratio from the plaintext.
  • 5. A compressed encryption and decryption method in an encryption method of plaintext by an encryption and decryption apparatus, the method comprising: receiving a public key, a secret key and a compression ratio;generating an extended public key and an extended secret key by revising the public key and the secret key according to the compression ratio;outputting the extended public key;receiving compressed ciphertext; anddecrypting the compressed ciphertext using modulo operation for multiplication of the extended secret key and the compressed ciphertext.
  • 6. The compressed encryption and decryption method of claim 5, wherein the step of decrypting the compressed ciphertext using modulo operation for multiplication of the extended secret key and the compressed ciphertext comprises: calculating an integer value by stripping the decimal part from the multiplied value of the extended secret key and the compressed ciphertext;adding the integer value and the compressed ciphertext; andobtaining plaintext from least significant bits of the added value of the integer value and the compressed ciphertext,wherein the number of least significant bits is according to the compression ratio.
  • 7. The compressed encryption and decryption method of claim 5, further comprising: receiving an external extended public key; andcompressing and encrypting the plaintext by performing modulo operation to the external extended public key,wherein the external extended public key is a key which is revised from a public key according to the compression ratio.
  • 8. The compressed encryption and decryption method of claim 7, wherein the step of compressing and encrypting the plaintext by performing modulo operation to the external extended public key comprises generating a compressed ciphertext by adding a value resulted from modulo operation according to any one from the external extended public key for the sum of at least one of the external extended public key, and number of bits according to the compression ratio from the plaintext.
Priority Claims (1)
Number Date Country Kind
10-2013-0161797 Dec 2013 KR national