NTRU-based searchable encryption method for resisting quantum attack
Through the anti-quantum attack method based on NTRU and the Gaussian sampling algorithm on the lattice, keyword index and expansion technology are generated, which solves the problem of difficulty in resisting quantum attacks and keyword guessing attacks in the existing technology, and achieves efficient key distribution and Protection of user search privacy.
Patent Information
- Application Number
- CN202410735919.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-24
AI Technical Summary
Existing searchable encryption technology is difficult to resist quantum attacks and keyword guessing attacks, and also suffers from key escrow issues and low communication efficiency.
It adopts an anti-quantum attack method based on NTRU, uses Gaussian sampling algorithm on the lattice to generate keyword index and expansion technology, and collaboratively generates public and private keys through the user and private key generation center, eliminating the process of the certificate authority, and through expansion The subsequent keyword space is only known by the sender and receiver, preventing keyword guessing attacks.
It achieves resistance to quantum attacks and keyword guessing attacks, improves key distribution efficiency and communication efficiency, ensures the security of user search privacy, and reduces the probability of decryption errors.
Smart Images

Figure CN118694572A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of searchable encryption technology, and in particular to a searchable encryption method based on NTRU to resist quantum attacks. Background Art
[0002] With the advent of the fourth industrial revolution, information technology has closely linked the real world and the digital world together, and Industry 4.0 was born. At the same time, a new concept has emerged - the physical information system, which digitizes and intelligentizes the supply, manufacturing, and sales information in production, and ultimately achieves the goal of intelligent production. These data often contain users' private information. Once stolen by malicious users, it will cause very serious security accidents and even threaten personal safety. Therefore, safely storing user data and effectively using them has become a major challenge for researchers.
[0003] Since Dan Boneh proposed the first public key searchable encryption scheme, PEKS has gradually developed for nearly two decades and has become an important tool for searching for required content on ciphertext. As the first PEKS scheme, it has many defects in efficiency and security. Later in 2006, Byun et al. proposed a crucial attack in public key searchable encryption, the keyword guessing attack (KGA) at SDM'06. All users, including the server itself, can generate ciphertext related to a specific keyword sent to a certain user. Therefore, when the server receives a trapdoor, it can generate a large number of keyword ciphertexts and run the Test algorithm with the trapdoor until the algorithm output matches successfully. When the plaintext space where the keyword is located is very small, the server can quickly guess the keyword information searched by the receiver, thereby leaking the receiver's search information. This completes the keyword guessing attack. Keyword guessing attacks are divided into internal keyword guessing attacks and external keyword guessing attacks. Here, internal generally refers to the server, and external refers to roles outside the server. In order to resist external keyword guessing attacks, many PEKS schemes with secure channels have emerged one after another, but the introduction of secure channels seriously reduces the communication efficiency of the scheme and increases the search delay. Therefore, Baek et al. proposed the first SCF-PEKS scheme that does not require a secure channel and can resist external keyword guessing attacks. In 2010, Rhee et al. proposed the first searchable encryption scheme for designated testers, dPEKS. This scheme integrates the public key and private key of the server, making it impossible for external attackers to distinguish between ciphertext and random numbers, thereby achieving the purpose of resisting external keyword guessing attacks. In addition, they also proposed the concept of using the indistinguishability of trapdoors as a way to ensure the security of KGA. However, this scheme is vulnerable to attacks by malicious users. To avoid this problem, Huang, Li et al. proposed a publicly verifiable public key searchable encryption scheme PAEKS, which can guarantee the correctness of users to prevent public key substitution attacks. Many subsequent studies have also enhanced the security of PAEKS to address its weaknesses.
[0004] In order to build the above solutions, managing certificates is an essential link. These solutions all require the maintenance of a public key infrastructure (PKI), which can be said to be a very expensive cost. Identity-based keyword searchable encryption IBEKS technology is a solution that can avoid this problem. Based on the user's identity, the private key generator (PKG) can quickly generate the user's public key and private key, thereby avoiding the cost of maintaining certificates. However, IBEKS cannot resist external keyword guessing attacks. Although subsequent researchers proposed an IBEKS solution for designated testers, namely dIBEKS, which solved the above external keyword guessing attack problem, since IBEKS can access the private keys of all users, it causes a key escrow problem. This is equivalent to the user's private key not being owned by the user alone, which always makes the user have some privacy concerns. Therefore, certificateless encryption was born, which is very suitable for this scenario. In the certificateless construction, the key and public key are jointly generated by the user and the server, so the server does not know the complete key, thus solving the key escrow problem.
[0005] In 2014, Peng et al. proposed the first certificateless searchable encryption scheme CLEKS, which is vulnerable to external keyword guessing attacks. Later, Ma et al. proposed a CLEKS scheme with designated testers, dCLEKS, to solve this problem. However, this scheme still cannot protect the privacy of keywords. Later in 2021, Senouci et al. proposed a CLEKS scheme that can resist internal keyword guessing attacks, but this scheme cannot resist public key substitution attacks, which means that the user's public key is not verifiable.
[0006] The above schemes are basically based on pairing Paring, which means that their computational efficiency and communication efficiency will not be very good. In 2020, Lu et al. proposed the first unpaired, multi-receiver scheme that can resist keyword guessing attacks. However, this scheme has serious security vulnerabilities. In order to solve this security vulnerability, Shiraly et al. proposed a CLAEKS scheme in 2022 to fix the security vulnerability, but the trapdoor of this scheme is deterministic, which can easily leak the user's search pattern.
[0007] As topics related to quantum computing intensify, quantum security has gradually attracted widespread attention from researchers. All of the above schemes are not resistant to quantum attacks. To solve this problem, Behnia et al. proposed a PEKS scheme based on the NTRU and LWE assumptions respectively, but the scheme did not consider the keyword guessing attack problem. In order to solve the keyword guessing attack problem, Liu et al. proposed a searchable encryption scheme based on NTRU in 2021. Although this scheme can prevent keyword guessing attacks, it introduces the problem of key leakage. In 2019, Zhang et al. proposed a PO-IBEKS scheme based on proxy technology. Although this scheme can resist keyword guessing attacks, its security assumptions are too strong and difficult to implement in reality.
[0008] Most of the encryption methods in the prior art are based on the traditional discrete logarithm assumption, and some schemes are designed using bilinear pairing, which is relatively inefficient. Summary of the invention
[0009] The purpose of the present invention is to propose a searchable encryption method based on NTRU to resist quantum attacks in view of the deficiencies of the prior art. The Gaussian sampling algorithm on the lattice is used to generate the index of keywords and the keyword expansion technology. The generated keywords are used to match the encrypted ciphertext. The keyword space after expansion can only be known by the sender and the receiver, so that other roles (such as servers) cannot launch keyword guessing attacks. The generated lattice basis has no large orthogonal defects, which greatly improves the accuracy of decryption and can ensure resistance to quantum attacks. The method uses KGC and users to collaboratively generate the public key and private key of the user, eliminating the process of the certificate authority issuing certificates to the user, improving the efficiency of key distribution, the method is simple, the calculation efficiency is high, the security is good, so that the semi-honest server cannot know the user's search information, not only protects the user's search privacy, but also can resist the threat of keyword guessing attacks. From the perspective of correctness analysis, the probability of decryption errors is low to negligible, and can be well applied to searchable encryption scenarios, with good application prospects and commercial development value.
[0010] The specific technical solution to achieve the purpose of the present invention is: a searchable encryption method based on NTRU to resist quantum attacks, the method specifically comprising the following steps:
[0011] Step a: Initialization phase
[0012] Given a security parameter λ and an integer N that is a power of 2, generate a large prime number q. Generate a private key B and a public key h for the NTRU system based on N and q. Then select a pseudo-random generator F and two hash functions H1 and H2 to finally generate system-level public parameters and a master private key. The public parameters are sent to the user for encrypted indexing and generating search tokens.
[0013] Step b: User key generation phase
[0014] Given the public parameters and the master private key, the private key generation center KGC and the user work together to generate the user's public key and private key. First, the user generates his own partial private key and partial public key, and then submits another part of the public key of his choice to the private key generation center KGC, and KGC generates the private key of this part of the public key. During the whole process, only the user himself gets the complete private key, which can prevent forgery and tampering.
[0015] Step c: Index encryption upload stage
[0016] Given the sender's public key and private key, the system's public parameters, the receiver's public key, and the keyword index of the uploaded file, this stage will output a searchable ciphertext related to the keyword, which can only be retrieved by the specified receiver. Through the sender's public key and private key and the receiver's public key, an extended string shrkey can be generated. This string is used to extend the length of the keyword index and is combined into a keyword for encryption. RLWE technology is used to encrypt the keyword index, and the encrypted ciphertext and the randomly selected verification string are generated through a hash function. The ciphertext is used to detect whether the match is successful.
[0017] Step d: Searchable token generation phase
[0018] Given the system public parameters, the sender's public key, the receiver's public key and private key, and the keywords for the target file, this stage will generate a token related to the keyword, which can be matched with the ciphertext in stage C to achieve the purpose of the search. This stage also needs to generate the keyword's extended string shrkey, and then call the Derivation algorithm to generate the extended keyword-related token and send it to the server.
[0019] Step e: Ciphertext search phase
[0020] Given the public parameters of the system, the searchable ciphertext and the searchable token, this stage will output a Boolean value res to indicate whether the search is successful. The token is used to decrypt the random encrypted characters selected by the searchable ciphertext, and then the random string is hashed with the first two ciphertext strings, and the hash value is compared with the third component of the ciphertext. If they are the same, it means that the ciphertext and the token represent the same keyword, that is, the match is successful, otherwise the match fails.
[0021] Compared with the prior art, the present invention has the following beneficial technical effects and significant technical progress:
[0022] 1) The scheme is designed based on the NTRU anti-quantum problem assumption, making it more secure than traditional encryption schemes and able to ensure security even against adversaries with quantum capabilities.
[0023] 2) The encryption method based on ring polynomials has higher computational efficiency and stronger information expression capability (relative to LWE). The computational efficiency and information carrying capacity are greatly improved compared with the existing technology, and it can be easily deployed in a cloud-based environment.
[0024] 3) It can resist the intrusion of keyword guessing attacks. According to the public key and private key of the sender and receiver, an information string known only to them is generated to expand the plaintext space of keywords, which increases the cost of guessing keywords by the server, thereby achieving the purpose of resisting keyword guessing attacks.
[0025] 4) It can protect the user's private key and prevent the user information from being tampered with. It also saves the process of issuing certificates and improves the communication efficiency in the key distribution process. The user's private key is generated by the cooperation between the user and the private key generation center. After the user obtains the private key, it can easily know whether the private key has been tampered with. It also saves the process of issuing certificates by the certificate authority, which greatly improves the communication efficiency.
[0026] 5) Unique expansion string generation strategy, which has extremely high computational efficiency and relatively high computational complexity, and does not take up too many computing resources. At the same time, the same strategy will only be generated when the sender and the receiver match, which makes it difficult for a third party (such as a server) to guess the form of the strategy, thereby better ensuring the security of the ciphertext. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A diagram of a system model constructed for the present invention;
[0028] Figure 2 It is the polynomial transformation diagram of the present invention. DETAILED DESCRIPTION
[0029] The present invention adopts the NTRU encryption system, which has much faster computing efficiency in key generation, encryption and decryption than traditional RSA, DH and other algorithms. Therefore, NTRU is also an important hot spot in the current public key encryption research field. Because its calculation on the polynomial ring has higher efficiency, it is used as the basis for our design of a searchable encryption scheme, which has anti-quantum function. At the same time, a random generator and hash function are also used, which makes the encryption and token generation process more randomized, and the confidentiality of keywords is further improved.
[0030] See also Figure 1 The searchable encryption scheme of the present invention mainly involves the following three roles: users (including senders and receivers. There is no difference between these two roles in form, but they are used to distinguish their behaviors in the scheme. A user can be a sender or a receiver), cloud service providers, and private key generation centers. The following will provide some detailed descriptions of their roles and potential security challenges.
[0031] The users include senders and receivers. The sender extracts the keywords of the file and encrypts the keywords and files and uploads them to the cloud server for the searcher to use. The receiver encrypts the keyword token to be searched and uploads it to the cloud service provider for the matching operation. Users of the system are allowed to collude, but users cannot collude with the server. Collusion between users cannot break the security of keywords.
[0032] The cloud service provider (cloud server) is responsible for storing the index and encrypted files uploaded by the user. When receiving the token query initiated by the recipient, the cloud service provider will run the Test algorithm to determine whether the ciphertext matches the token. When the ciphertext matches the token, the cloud service provider will return the searched file to the recipient. We require the cloud service provider to correctly execute the protocol we require, so it is semi-honest.
[0033] The private key generation center mainly cooperates with users to complete the generation of public-private key pairs. During this process, although it does not know the user's complete private key, it is also the owner of a partial key of the user. Moreover, the private key generation center can go offline after the user's public-private key pair is generated, so it is required to be honest.
[0034] The above is a brief overview of the system model of the present invention. Next, we will give an overview of the threat model of the present invention. The main targets here are keyword guessing attacks, keyword selection attacks, and the unforgeability of tokens. The specific descriptions are as follows:
[0035] Keyword guessing attack: This attack is generally divided into internal keyword guessing attack and external keyword guessing attack. Here we generally consider the stronger attack - internal keyword guessing attack. Assuming that the cloud service provider is honest and curious, although it will honestly execute the protocol we stipulate, it will still be curious about the user's search keywords. If it is a search scenario with a relatively small keyword space, the server will easily guess the keywords searched by the user, thus breaking the security. Therefore, we choose to expand the plaintext space, which requires the server to consume more computing power to guess keywords. When the expanded plaintext space is large enough, it can effectively prevent keyword guessing attacks.
[0036] Selected keyword attack: generally referred to as CKA security, it mainly describes the indistinguishability of two keyword ciphertexts. Since distinguishability can also be used as an effective attack method, the selected keyword attack is considered to be a security that must be considered. The security of the selected keyword attack is reduced to RLWE security. The ciphertext form of the present invention is the same as the RLWE sampling in the general sense, so the ciphertext has security under the selected keyword attack.
[0037] Unforgeability of tokens: The token generation of the present invention is obtained by sampling based on our search keyword mapping points. Assuming that the sampling point is leaked, the token of the present invention is still unforgeable, so the token is unforgeable and secure. The security is reduced to a variant of the classic difficult SVP problem on the lattice - gapSVP (or λ-SVP). This shows that even if the sampling point is leaked, the shorter token sampled is still unbreakable by an adversary with quantum capabilities, thus illustrating the unforgeability of the present invention.
[0038] The present invention adopts the NTRU encryption system, which has much faster computing efficiency in key generation, encryption and decryption than traditional RSA, DH and other algorithms. Therefore, NTRU is also an important hot spot in the current public key encryption research field. Because its calculation on the polynomial ring has a higher efficiency, it is used as the basis of the searchable encryption method designed by the present invention, which has anti-quantum function. At the same time, a random generator and a hash function are also used, which makes the encryption and token generation process more randomized, and the confidentiality of the keywords is further improved.
[0039] In order to understand the technical means, innovative features, objectives and effects achieved by the present invention, the present invention will be further described below in conjunction with specific implementation methods.
[0040] Example 1
[0041] (I) Basic primitives used in the present invention
[0042] 1) Polynomial Ring
[0043] See also Figure 2 , let N be a large integer that is a power of 2, then the polynomial ring used by the NTRU lattice is defined in where Φ(x) = x N +1. This means that the defined polynomial ring is defined on the prime field q, and the order of the polynomial will not exceed N. This is why NTRU is an N-order truncated polynomial. In addition, the multiplication of polynomials on the ring satisfies the traditional convolution operation. Of course, even the convolution operation needs to be constrained to x. N +1, a brief example can be used as follows (a):
[0044] f*g=(fg)mod(x N +1) (a).
[0045] 2) NTRU
[0046] The general definition of the NTRU lattice is: for a large prime number q and two polynomials f,g∈R over a ring q , so that Then the NTRU lattice is defined by the following formula (b):
[0047] Λ h,q ={(u,v)∈R 2 |u+v*h=0mod q} (b).
[0048] Here h,q It is a sample from The full rank lattice, where I N is the N-order identity matrix, O N is an N-order 0 matrix. However, this sampling has an orthogonal defect, that is, the sampled tokens have a large probability of failure, so Hoffstein proposed another optimized sampling method. Its sampling matrix is Among them, g, f, G, F satisfy f*Gg*F=q. The token sampled by using this matrix has a smaller orthogonal defect, which greatly improves the decryption probability.
[0049] 3) Pseudo-random generator
[0050] Let F represent a (0, 1) n →(0, 1) m A deterministic polynomial-time algorithm for , where m = poly(n) and m > n, is a pseudo-random generator under the following conditions:
[0051] Expansibility: For any n, m>n holds true;
[0052] Pseudo-randomness: For any polynomial-time distinguisher D, there is the following (c):
[0053] |Pr[D(r)=1]-Pr[D(F(s)=1)]| <negl(λ) (c)。
[0054] where r∈(0,1) m , s∈(0,1) n , λ is used as a security parameter.
[0055] (II) The specific implementation of the present invention is mainly divided into the following five algorithms: Setup, UserGen, PAEKS, Trapdoor and Test. The implementation process of each algorithm will be described in detail below:
[0056] The Setup algorithm inputs the security parameter λ and a large integer N that is a power of 2, and we will obtain the system's master private key msk and public parameter pp. First, obtain a large prime number q of the security parameter length, and use Hoffstein's lattice basis definition to generate the NTRU lattice public key h and master private key B we need. Then select a pseudo-random generator F and two hash functions H1 and H2, then our public parameter pp = {N, q, h, F, H1, H2}, master private key msk = B, and then make the public parameters public to everyone.
[0057] The UserGen algorithm is used to generate the public key and private key of the sender and receiver. They are completed by the private key generation center and the user. Input the master private key B and the public parameter pp, and the algorithm will output the user's public key and private key. First, from (-1, 0, 1) N Randomly select three random numbers x, y, t in the space and calculate Then we calculate U = x + y * h to get the user's partial public key U and private key x, y. Then use the master private key B to sample the target T to get the sampled values s1 and s2. Then create a grid space for encrypting a specific message, denoted as h u and B u , so we get the user's public key (U, T, h u ) and private key (s1, s2, B u ).
[0058] The PAEKS algorithm, under the premise of generating a public-private key pair, the sender can upload the index he wants to encrypt to the server. The algorithm inputs the sender's public key and private key, the receiver's public key, public parameters and keywords, outputs a searchable ciphertext related to the keyword, and generates an extended string shrkey represented by the following formula (d) based on the public-private key pair:
[0059]
[0060] Among them, s s,2 is the sender’s private key, U r is the recipient's public key.
[0061] Then, pseudo-randomize the extended keywords ts w =F(shrkey, w), and finally we can start to encrypt it using the following formulas (e) to (g):
[0062] u=r*h r +e1 (e);
[0063]
[0064] w=H2(u,v,η) (g).
[0065] Among them, r, e1, e2 ← {-1, 0, 1} N , η is an O\1 string of length N, h r is the recipient's public key.
[0066] Finally, the ciphertext CT = (u, v, w) is output. The Trapdoor algorithm inputs public parameters, the receiver's public key and private key, the sender's public key and keywords, and the algorithm outputs a token related to the keyword. Similarly, the extended string is first generated by the following (h):
[0067]
[0068] Among them, y r is the recipient’s private key, T s is the sender's public key.
[0069] Next, generate a pseudo-randomized t sw =F(shrkey,w), then for the target t sw Sampling to obtain searchable tokens s sw,2 , and finally output a searchable token and send it to the server.
[0070] The Test algorithm takes as input the public parameters, the searchable ciphertext and the token, and outputs their matching results. First, u and v are decrypted by the following formula (i) to obtain the value of η′:
[0071]
[0072] Then, determine whether H2(u, v, η′) == w. If so, the match is successful and added to the search list. Otherwise, the search fails.
[0073] (III) Proof of Correctness
[0074] The present invention introduces an extended string to resist keyword guessing attacks, so it is necessary to prove that the introduced keyword extended string is the same for both the sender and the receiver. The specific form is described as follows (j):
[0075]
[0076]
[0077] Among them, s s,2 ,y s is the sender’s private key, U s 、T s is the sender's public key, where s r,2 ,y r is the recipient’s private key, U r 、T r is the recipient's public key, shrkey s,r and shrkey r,s They represent the extended strings constructed by the sender and the receiver respectively. Therefore, it can be concluded that when the identities of the sender and the receiver match, the extended strings they generate are the same, so the search will be successful when the extended keywords encrypted by the searchable ciphertext match the extended keywords of the searchable token.
[0078] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention, and those skilled in the art should understand. Without departing from the purpose and scope of the present invention as defined in the appended claims, the present invention can be modified in various forms and details. The embodiments should be considered only as illustrative, not mandatory. Therefore, the detailed description of the present invention does not limit the scope of the present invention, the scope of the present invention should be defined by the appended claims, and all distinguishing technical features within the scope of the present invention should be understood to be included in the present invention.
Claims
1. A searchable encryption method based on NTRU to resist quantum attacks, characterized in that: A Gaussian sampling algorithm on a lattice is used to generate keyword indexes and keyword extensions, and the generated keywords are used to match the encrypted ciphertext. The expanded keyword space can only be known by the sender and the receiver, so that other roles cannot launch keyword guessing attacks. The method specifically includes the following steps: Step a: Initialization phase Given a security parameter λ and an integer N that is a power of 2, generate a large prime number q, generate a private key B and a public key h of the NTRU system based on N and q, then select a pseudo-random generator F and two hash functions H1 and H2, and finally generate system-level public parameters and a master private key. The public parameters are sent to the user for encrypting the index and generating a search token. Step b: User key generation phase Given the public parameters and the master private key, the private key generation center KGC and the user work together to generate the user's public key and private key. First, the user generates his own partial private key and partial public key, and then submits another part of the public key of his choice to the private key generation center KGC, and KGC generates the private key of this part of the public key. Step c: Index encryption upload stage Given the sender's public key and private key, the system's public parameters, the receiver's public key, and the keyword index of the uploaded file, this stage will output a searchable ciphertext related to the keyword, encrypt the keyword index using RLWE technology, and generate a ciphertext for verification through a hash function using the encrypted ciphertext and a randomly selected verification string. The ciphertext can only be retrieved by the designated receiver, and an extended string shrkey is generated through the sender's public key and private key and the receiver's public key; the string is used to extend the length of the keyword index and is combined into a keyword; Step d: Searchable token generation phase Given the system public parameters, the sender's public key, the receiver's public key and private key, and the keyword of the search target file, a token related to the keyword and the keyword's extended string shrkey are generated, and the Derivation algorithm is called to generate a token related to the extended keyword and send it to a server. The token is matched with the ciphertext of the C stage to achieve the purpose of the search; Step e: Ciphertext search phase Given the public parameters of the system, the search ciphertext and the token, this stage will output a Boolean value res to indicate whether the search is successful. The token is used to decrypt the random encrypted characters selected by the searchable ciphertext, and then the random string is hashed with the first two ciphertext strings. The hash value is compared with the third component of the ciphertext. If they are the same, it means that the ciphertext and the token represent the same keyword, that is, the match is successful, otherwise the match fails.
Citation Information
Patent Citations
RKR (Random Key Rotation) method used for NTRU to resist to side channel attack
CN106961331A
An NTRU type multi-key fully homomorphic encryption method with a fast homomorphic operation process
CN109936435A
Identity-based authentication key negotiation method based on lattice
CN114268439A
Encryption and decryption method based on Toom-Cook ring polynomial multiplication and ring polynomial multiplier
CN116561819A
Authentication method and system based on key derived function, client and server
CN116566705A
