Zacytuj

Introduction

Cryptology is defined as the science of making communication incomprehensible to third parties who have no right to read and understand the data or messages. Cryptology is divided into cryptography, which is the science of securing data, and cryptanalysis, which is the science of analyzing and breaking secure communication. The main terms in cryptology are given in Table 1.

Main terms in cryptology

KeywordsExplanation
PlaintextData that are wanted to be protected. Let us call it P
CiphertextEncrypted message
EncryptionMethod of hiding message. If E refers to encryption function Ek (P) = C
DecryptionRecovering encrypted message. If D refers to decryption function Dk (C) = P
KeyA numeric value to cipher data to protect it
Cryptography

Cryptography is the practice and study of hiding information. A cryptographic algorithm works in combination with a key—a word, number, or phrase—to encrypt the plaintext. The security of encrypted data is entirely dependent on two things: the strength of the cryptographic algorithm and the secrecy of the key. There are two types of cryptography: symmetric and asymmetric. If the same key is used for encryption and decryption, then the mechanism is called symmetric key cryptography or classical cryptography. This also implies to share a different key with everyone that is wanted to communicate with. Nevertheless, symmetric schemes present the advantage of being fast and should be used as often as possible.

However, if two different keys are used for encryption and decryption, then the mechanism is called asymmetric key cryptography or modern cryptography. The encryption key is public, as the decryption key remains private in this type. Asymmetric schemes are more functional than symmetric ones since there is no need for the sender and the receiver to agree on anything before the transaction. Asymmetric schemes, however, have a big drawback. They are often based on nontrivial mathematical computations and much slower than the symmetric ones. The two most prominent examples are RSA and ElGamal.

The right scheme is the one that fits your constraints in the best way. By constraints, we may understand constraints in terms of time, memory, security, and so forth.

Cryptanalysis

It is the reverse process of cryptography. The objective of cryptanalyst is to decrypt the ciphertext.

Homomorphic Encryption

The goal of encryption is to ensure confidentiality of data in communication and storage processes. Homomorphic encryption is a form of encryption that allows specific types of computations like addition or multiplication to be carried out on ciphertext. The encrypted result will be the same when decryption is done. Widespread use of cloud computing raises the question of whether it is possible to delegate the processing of data without giving access to it. Encrypting one’s data with a conventional encryption scheme to protect one’s privacy seems to undermine the benefits of cloud computing since it is impossible to process the data without the decryption key [1]. However, in homomorphic encryption; only the encrypted version of the data is given to the untrusted computer to process. The computer will perform the computation on this encrypted data, without knowing anything on its real value. Finally, it will send back the result, and whoever has the proper deciphering key can decrypt the cryptogram correctly. For coherence, the decrypted result will be equal to the intended computed value.

Homomorphic encryption schemes are methods that allow the transformation of ciphertexts C(M) of message M, to ciphertexts C(f(M)) of a computation/function of message M, without disclosing the message. Generally, an encryption scheme contains a three-step algorithm. They are

Key Generation—creates two keys, i.e. the secret key sk and the public key pk.

Encryption—encrypts the plaintext m with the public key pk to yield ciphertext c.

Decryption—decrypts the ciphertext c with the secret key sk to retrieve the plaintext m [2].

Homomorphic encryption schemes can be classified into three main categories namely: partially homomorphic encryption (PHE), somewhat homomorphic encryption (SWHE), and fully homomorphic encryption (FHE) [6].

PHE Scheme

The most popular PHE methods available are the RSA, ElGamal, and Paillier methods.

RSA method: RSA was the first homomorphic encryption scheme developed by Ronald Rivest, Leonard Adleman, and Michael Dertouzos in 1978. It is a public-key crypto technique and is multiplicative homomorphic.

Paillier method: This is additive homomorphic and is developed by Pascal Paillier in 1999 [2].

SWHE Scheme

The most popular SWHE method is Boneh-Goh-Nissim (BGN) method. This method allows any number of additions but only one multiplication to be performed on data.

FHE Scheme

The most popular FHE schemes are algebra homomorphic encryption scheme based on updated ElGamal proposed by Chen Liang and Gao Changmin in 2008 and enhanced homomorphic encryption scheme (EHES) proposed by Gorti VNKV and Subba Rao in 2013. In 2009, Gentry proposed the first not yet broken FHE scheme [3]. FHE refers to cryptosystems that can process both additions and multiplications in the encrypted domain. Any polynomial function over encrypted data can be computed.

Simulation of a Homomorphic System

In homomorphic encryption, the encryption of the product of two numbers is equal to the product of the encryptions of the numbers: E(a.b)=E(a).E(b)E(a.b) = E\left( {a).E(b} \right)E is an encryption algorithm or it is also known as a scheme. Schemes can be thought as Somewhat Homomorphic and Fully Homomorphic. Fully Homomorphic: Any kind of operations on ciphertexts can be done. This idea came from Rivest in 1978 but Craig Gentry was the first one whose scheme works on arbitrary functions. Somewhat Homomorphic: In this type, two ciphertexts can be added or a ciphertext and a plaintext can be multiplied [6] .

In this paper, SWHE is examined. The length of the plaintext and encryption time comparison has been made. To do that, Gentry’s encryption scheme is used [7] . The parameters will be ρ=λ,ρ=2λ,η=O˜(λ2),λ=O˜(λ5)\rho = \lambda ,{\text{ }}\rho ' = 2\lambda ,{\text{ }}\eta = {\text{\tilde O}}({\lambda ^2}),{\text{ }}\lambda = {\text{\tilde O}}({\lambda ^5})λ is a safety parameter. Security parameters associated with the security of the scheme, usually take dozens to hundreds of bits.

Key generation: We choose η bit odd prime numbers p and θ bits odd prime numbers q randomly and order N=pq. Then choose two random integers l ∈ [0,2γ/p] h∈ [−2p, 2p], and calculate x=pl+2h.

Set public key pk=(N,x)=, private key sk=p.

Encryption (pk,m): Given a plaintext m∈ {0,1}*; we choose two random integers r1∈ (−2p,2p) and r2∈ (−2p,2p). According to the public key pk=(N,x), we can calculate c=m+2r1+r2xmodN(cistheresultofciphertext.)c = m + 2{r_1} + {r_2}x\,\,\,\,\,\bmod \,\,\,\,N\,\,\,\left( {c\,\,\,{\text{is}}\,\,\,{\text{the}}\,\,\,{\text{result}}\,\,\,{\text{of}}\,\,\,{\text{ciphertext}}.} \right)\Decryption (sk,c): According to the given ciphertext, make use of private key sk to calculate: m=(cmodp)mod2m' = (c{\text{ mod }}p){\text{mod}}2Evaluate (pk, C, c1,c2,ct): Given a Boolean circuit C with t inputs and t ciphertexts ci. Let us put T ciphertext into extended circuits to perform all its operations, then verify the result of the circuit’s output in (1) to see if it conform (2) [7]. c*=evaluate(pk,C,c)c* = {\text{evaluate}}(pk,C,c)Dec(sk,c*)=C(m1,m2,,mt)Dec(sk,c*) = C({m_1},{m_2}, \ldots ,{m_t})

In the experimental environment, safe parameter λ is set to the length of the 10 bits and the order of magnitude as 105. So the order of magnitude for p = λ as 105. p′ = as 105, the order of magnitude for η = O(λ2) as 1010, the order of magnitude for θ = O(λ4) as 1020, and the order of magnitude for γ=~ O (λ5) as 1025. Algorithm keygen of the data is determined by the above parameters. The relationship between the plaintext and ciphertext size is shown in Figure 1. The simulation time is calculated in seconds. It is observed that when plaintext size is increased, the ciphertext size is also increased. But the growthe rate is not high. Still, it is gradually increased.

Fig. 1

Relationship between the plaintext and ciphertext size.

Conclusion

Cryptography is a powerful tool to protect information. In recent years, cryptography and cryptanalysis had been improved. Widespread use of cloud computing raises the question of whether it is possible to delegate the processing of data without giving access to it. Homomorphic encryption is a new way to protect private data. Because it allows making computation without decrypting data. It is a new field and research is going on.

eISSN:
2444-8656
Język:
Angielski
Częstotliwość wydawania:
Volume Open
Dziedziny czasopisma:
Life Sciences, other, Mathematics, Applied Mathematics, General Mathematics, Physics