A verifiable encrypted image retrieval method supporting dynamic update
By constructing an encrypted index tree and a chameleon hash authentication tree in a cloud computing environment, dynamic updating of image sets and verification of retrieval results are achieved, solving the problems of low security and insufficient flexibility in the existing technology, and improving retrieval efficiency. and security.
Patent Information
- Application Number
- CN202110820009.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-20
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-07-20
AI Technical Summary
In the existing technology, image retrieval solutions have problems of low security and insufficient flexibility in cloud computing environments. They cannot achieve dynamic updates of image sets, and users cannot verify the correctness of retrieval results.
A verifiable encrypted image retrieval method that supports dynamic updates is adopted. The image owner generates a key and constructs an encrypted index tree and a chameleon hash authentication tree. The query user retrieves the encrypted index tree on the cloud server to obtain the ciphertext retrieval results, and passes The Chameleon Hash Authentication Tree generates evidence for result verification, and finally decrypts the plaintext image.
It achieves the correctness of retrieval and verification in dynamic image sets, supports dynamic updates of image sets, improves retrieval efficiency and security, and reduces computational complexity.
Smart Images

Figure CN113569280B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a verifiable encrypted image retrieval method supporting dynamic updating. Background Art
[0002] The existing content-based and efficient privacy-preserving image retrieval scheme in cloud computing environment. First, the image features f are extracted based on the local descriptor. i And calculate f i The corresponding bucket value is constructed to include the pre-filtering index table and the linear index table, and the safe k-nearest neighbor algorithm is used to filter f i Encrypt to get f i ′ and further encrypt the bucket values in the pre-filtered index table, the image owner uploads the encrypted image set and the encrypted index table to the cloud server; the query user also extracts the query image feature f based on the local descriptor q And calculate f q The corresponding query bucket value, and use the secure k-nearest neighbor algorithm to find f q Encrypt to get f q ′, generate a q ′ and the query trapdoor of the query bucket value are uploaded to the cloud server; the cloud server first traverses the pre-filter table according to the query bucket value, thereby filtering out most of the dissimilar image results, improving the retrieval efficiency, and then traverses the linear index table corresponding to the query bucket value to calculate f q ′ and f i ′’s inner product, selects the top k items with larger inner product values, and feeds the top-k ciphertext images as retrieval results to the query user. However, when calculating the most similar top-k images, the cloud server may maliciously tamper with the retrieval results for its own benefit, and the user cannot verify the correctness of the retrieval results, resulting in low security. In addition, the image data set of this scheme is fixed, and the image owner cannot add, delete, replace, or other update operations on the image set stored in the cloud server, so this scheme is not flexible.
[0003] In addition, based on the scale-invariant feature-based encrypted image security retrieval scheme, the image retrieval server determines the identifier of the image to be matched that is similar to the query image based on the encrypted SIFT feature vectors of each image to be matched sent by the image owner in advance, and sends it to the image owner, so that the image owner can feedback the image retrieval result to the query user based on the image identifier. However, this scheme still has shortcomings. When the image owner extracts SIFT features from the image, the traditional SIFT feature extraction algorithm is used, so that one image corresponds to multiple feature vectors, which increases the retrieval overhead, increases the computational complexity of the retrieval process, and reduces the image retrieval efficiency.
[0004] Secondly, in the above two image retrieval schemes, the cloud server maliciously tampers with the retrieval results for its own interests, and the querying user cannot verify whether the retrieval results are correct, so the security is low. Summary of the invention
[0005] Aiming at the problem that the existing privacy-preserving image retrieval methods cannot dynamically update the image set and cannot verify the correctness of the retrieval results, a verifiable encrypted image retrieval method that supports dynamic update is proposed. This method is used to query the user to retrieve the top k image data results with the largest correlation value with the query image in the dynamic image set and verify their correctness.
[0006] The present invention is achieved through the following technical solutions:
[0007] A verifiable encrypted image retrieval method supporting dynamic update includes the following steps:
[0008] Step 1: The image owner generates a key and sends it to the querying user;
[0009] Step 2: Extract the feature vector of the plaintext image and construct an encrypted index tree based on the feature vector;
[0010] Step 3: The image owner constructs a chameleon hash authentication tree based on the encrypted image set;
[0011] Step 4: The cloud server retrieves the encrypted index tree according to the query trap of the query user to obtain the ciphertext retrieval results, and sorts them according to the similarity to obtain the top k ciphertext retrieval results;
[0012] Step 5: The cloud server generates corresponding evidence for each ciphertext search result based on the search results and combined with the Chameleon Hash Authentication Tree;
[0013] Step 6: The querying user verifies the corresponding search results based on the evidence;
[0014] Step 7: The query user uses the image encryption key as the decryption key to decrypt the verified retrieval results to obtain the plaintext image.
[0015] Preferably, the method for constructing the unencrypted index tree in step 2 is as follows:
[0016] S2.1, using convolutional neural network model to extract feature vectors of each image;
[0017] S2.2, recursively cluster all unencrypted feature vectors;
[0018] S2.3. According to the clustering results, each feature vector is associated with a leaf node, nodes belonging to the same class are associated with the same non-leaf node as their parent node, and a d-dimensional vector is assigned to each non-leaf node to form an unencrypted index tree.
[0019] Preferably, the plaintext image set is encrypted using a chaotic mapping algorithm to obtain the encrypted image set described in step 3.
[0020] Preferably, the method for constructing the chameleon hash authentication tree in step 3 is as follows:
[0021] S5.1. Obtain the hash value of each image;
[0022] S5.2. Initialize the leaf node c of the Chameleon hash authentication tree to 0;
[0023] S5.3. Calculate the hash value of the root node, insert hash values l1 and l2 into the two leaf nodes of the root node, calculate the random number of the root node based on the hash value of the root node, hash values l1 and l2, and increase the leaf node c by 2;
[0024] S5.4, check whether the leaf node c is a power of 2. If c is a power of 2, execute steps S5.5-S5.8; if the leaf node c is not a power of 2, execute steps S5.7-S5.8;
[0025] S5.5. Increase the depth d-1 of the current chameleon hash authentication tree by 1 to d.
[0026] S5.6. The root node at depth d-1 is used as the left child node of the root node at depth d, and two random numbers are selected and a virtual node is calculated as the right child node;
[0027] S5.7. Search for the bottom rightmost node v in the Chameleon Hash Tree that has no children i,j , with the node v i,j Create a subtree for the root node, first follow v i,j Move down until the height of the node is 1. When the non-leaf node is the right child node, use the chameleon hash ch() to create a virtual node. When the non-leaf node is the left child node, use the anti-collision hash H() to create a normal node, and add the corresponding virtual node to the state st. i Insert it into the subtree as a leaf node and calculate v i,j =v i-1,2·j ||v i-1,2·j+1 and r′ i,j =col(csk,x i,j ,r i,j ,v i,j ), the random number r of the virtual nodei,j Update to r′ i,j .
[0028] S5.8. Increase the next empty leaf node index c by 1;
[0029] S5.9. Repeat step S5.4 until the hash value of each ciphertext image is associated with a leaf node of the chameleon hash authentication tree, thereby completing the construction of the chameleon hash authentication tree.
[0030] Preferably, in step 4, the query user generates a query trapdoor according to the query image, and the query trapdoor is generated as follows:
[0031] The query user uses a convolutional neural network model to extract the feature vector of the query image, expands the feature vector, encrypts the expanded feature vector to generate a query trapdoor and sends it to the cloud server.
[0032] Preferably, the method for obtaining the top k ciphertext search results in step 4 is as follows:
[0033] The cloud server first calculates the inner product of the encrypted vector stored in the child node of the root node and the encrypted query vector, then compares the maximum inner product, and continues to calculate the inner product of the encrypted vector and the query vector stored in the child node of the child node with the maximum inner product, and iterates this process until the leaf node with the largest inner product is found;
[0034] S8.2. The cloud server returns to the sibling node or parent node of the leaf node found in the previous step to find the next nearest neighbor node, and repeats this step until the k most similar leaf nodes are found.
[0035] Preferably, the method for generating evidence in step 5 is as follows:
[0036] The cloud server will retrieve the result image c i The corresponding identifier i is converted into a d-bit binary number after minus 1, where d represents the current height of the Chameleon hash tree;
[0037] Traverse the Chameleon Hash Tree according to the principle of "left 0 right 1" until a leaf node is found;
[0038] Take the sibling nodes of each node on the path from the leaf node to the root node found, and the random numbers of all chameleon hash nodes on the path as evidence π i .
[0039] Preferably, the verification formula for the search result in step 6 is as follows:
[0040] v h,0 =H h (ρ)
[0041] When the verification formula is established, the verification is successful, otherwise, the verification fails.
[0042] Preferably, after step 7, the following steps are also included:
[0043] Update the Chameleon hash authentication tree based on added, deleted, or replaced images;
[0044] Update the verification tree according to the updated node information;
[0045] The images in the plaintext image set and the ciphertext image set are updated according to the images added, deleted and replaced as needed, and the updated ciphertext image set is re-uploaded to the cloud server.
[0046] Preferably, the encrypted index tree is updated according to the updated plaintext image set, and the updated encrypted index tree is re-uploaded to the cloud server.
[0047] Compared with the prior art, the present invention has the following beneficial technical effects:
[0048] The present invention embodies a verifiable encrypted image retrieval method supporting dynamic update. The image owner initializes the system to generate a key and distributes it to the query user; the data owner encrypts the image set, builds an encrypted index, generates a chameleon hash verification tree, and stores the encrypted image set, the encrypted index and the chameleon hash verification tree in a cloud server; the query user generates a query request and submits it to the cloud server; when the cloud server receives the query request, it finds the top k image data ciphertexts with the largest correlation value based on the encrypted index and the query request and generates corresponding evidence, and returns the ciphertext image retrieval result together with the corresponding evidence to the query user; the correctness of the retrieval result is verified in a dynamic environment based on the chameleon hash verification tree. If the verification is successful, the query user decrypts the plaintext image; the image owner sends the information that needs to be updated to the cloud server to realize the dynamic update of the image set.
[0049] Furthermore, a pre-trained convolutional neural network is used to extract image feature vectors to improve retrieval accuracy and efficiency. Then, an encrypted index structure based on the K-means clustering algorithm is used to improve retrieval efficiency while supporting dynamic updating of image sets. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A flowchart of a verifiable encrypted image retrieval method supporting dynamic update according to the present invention;
[0051] Figure 2 A model diagram of a verifiable encrypted image retrieval method supporting dynamic update according to the present invention. DETAILED DESCRIPTION
[0052] The present invention will be further described in detail below in conjunction with the accompanying drawings, which are intended to explain the present invention rather than to limit it.
[0053] See also Figure 1 and 2 , a verifiable encrypted image retrieval method supporting dynamic update, comprising the following steps:
[0054] Step 1: The image owner initializes the system, generates image encryption key, feature vector encryption key, verification key and private key, and sends a set subset of private key and feature vector encryption key to the query user, specifically including the following steps:
[0055] S1.1. Generate image encryption key k m .
[0056] S1.2. Given the security parameter λ, generate the feature vector encryption key k f =(γ,M,M -1 ), and k m ,γ,M are saved locally, and k m , γ and M -1 Sent to the inquiring user via a secure channel.
[0057] Among them, λ is a security parameter and γ represents a random number: represents the p1-order integer field, and M represents a 2d×2d-dimensional random reversible matrix: The elements of the 2d×2d random reversible matrix are all p2-order integer fields, p1 and p2 represent two prime numbers, M -1 Represents the inverse matrix of M.
[0058] S1.3. Generate verification key vk = (cpk, ρ) and private key sk = (csk, st);
[0059] Where cpk,csk are the keys used by the Chameleon hash function, and ρ is {0,1} λ A random value in , st is the state, which stores the next empty leaf node position c, a set of deleted leaf node positions, and a set of unused dummy nodes.
[0060] Step 2: extract the feature vector of each plaintext image and cluster it to obtain an unencrypted index tree, which specifically includes the following steps:
[0061] S2.1. Use the convolutional neural network model to extract the feature vector f of each image i , and use the principal component analysis method to reduce the dimension of the feature vector to form a d-dimensional feature vector f i =(f i1 ,f i2 ,...,fid ), and i = 1, 2, ..., n, where n represents the number of images.
[0062] You can also use SIFT, SURF and global features such as MPEG-7 to extract feature vectors.
[0063] S2.2. The image owner uses the K-means clustering algorithm to recursively cluster all unencrypted feature vectors to obtain K classes, and the number of feature vectors in each class does not exceed K.
[0064] S2.3. Based on the clustering results, the image owner associates each feature vector with a leaf node, associates nodes belonging to the same class with the same non-leaf node as their parent node, and assigns a d-dimensional vector to each non-leaf node according to the following formula to form an unencrypted index tree.
[0065]
[0066] Among them, h is the height, g is its index at the hth height, Children is its child node, and |Children| is the number of its child nodes. Non-leaf nodes belonging to the same class continue to merge upward to form a new parent node, whose value is set to the average of its child nodes, iterating in this way until the root node appears.
[0067] Step 3: The image owner performs dimension expansion on the vector associated with each node of the unencrypted index tree, and encrypts the expanded vector using the feature vector encryption key to obtain an encrypted index tree.
[0068] The image owner encrypts each vector in the unencrypted index; for example, for f i For example, the image owner will f i =(f i1 ,f i2 ,...,f id ) is expanded to where α is a random vector of dimension d-1: The image owner will f i Encrypted to f i =(γf i +ε i )·M, where ε i is a 2D vector of random integers: ε i The absolute value of the largest element in is much smaller than And different vectors use different ε i To encrypt, and finally form an encrypted index tree.
[0069] In another embodiment, a secure K-nearest neighbor algorithm is used to encrypt the index tree.
[0070] Step 4: The image owner encrypts the image to obtain an encrypted image set;
[0071] The encryption algorithm is a chaotic mapping algorithm, that is, first divide the image into blocks of 16 pixels, then define an 80-bit hexadecimal key and two chaotic logic mapping iteration formulas, and use the key to calculate the initial iteration value of the iteration formula, and then you can get the next iteration value. Different iteration values will perform different operations with the pixel values in the block, thereby updating the pixel values until all the pixels in the block are encrypted. Next, the key will be modified to repeat the above encryption operation to encrypt the next block until the entire image file is encrypted. The image owner uses this encryption algorithm and the image encryption key k m Encrypt the image to obtain an encrypted image set. For details of the image encryption algorithm, please refer to the literature "Image encryption using chaotic logistic map" (Image and Vision Computing 24 (2006) 926–934).
[0072] Step 5: The image owner constructs a chameleon hash authentication tree based on the encrypted image set, which specifically includes the following steps:
[0073] S5.1. The image owner calculates a hash value for each image Where h is the hash function, c i is the image ciphertext, is the image m i The identifier of , || is a cascade operation.
[0074] S5.2. Leaf node c is initialized to 0.
[0075] S5.3. Calculate the root node v based on the random value ρ 1,0 The hash value H(ρ) is inserted into the hash values l1 and l2, and the random number r of the root node is calculated based on the hash value H(ρ), the hash values l1 and l2 1,0 =scol(csk,l1||l2,H(ρ)), and the leaf node c increases by 2, where H() is the collision-resistant hash function and scol() is the inverse function of the chameleon hash function ch().
[0076] S5.4, check whether the leaf node c is a power of 2, that is, determine whether the current tree is a full binary tree. If c is a power of 2, execute steps S5.5-S5.8; if the leaf node c is not a power of 2, execute steps S5.7-S5.8.
[0077] S5.5. Increase the depth d-1 of the current chameleon hash authentication tree by 1 to d.
[0078] S5.6. The root node H at depth d-1 d-1 (ρ) is the root node H when the depth is d d (ρ)'s left child node, and selects two random numbers x d-1,1 and r d-1,1 Calculate a virtual node v d-1,1 As the right child node, calculate the random number r of the root node when the depth is d d,0 =scol(csk,H d-1 (ρ)||v d-1,1 ,H d (ρ)), and (x d-1,1 ,r d-1,1 ) is added to the private key st, where v d-1,1 =ch(x d-1,1 ,r d-1,1 ), ch() is the chameleon hash function.
[0079] S5.7. Search for the bottom rightmost node v in the Chameleon Hash Tree that has no children i,j , with v i,j Create a subtree for the root node, first follow v i,j Move down until the height of the node is 1. When the non-leaf node is the right child node, use the chameleon hash ch() to create a virtual node. When the non-leaf node is the left child node, use the anti-collision hash H() to create a normal node, and add the corresponding virtual node to st. i Insert it into the subtree as a leaf node and calculate v i,j =v i-1,2·j ||v i-1,2·j+1 and r′ i,j =col(csk,x i,j ,r i,j ,v i,j ) The random number r of the virtual node i,j Update to r′ i,j .
[0080] S5.8. Increase the next empty leaf node index c by 1;
[0081] S5.9. Repeat step S5.4 until the hash value of each ciphertext image is associated with a leaf node of the chameleon hash authentication tree, thereby completing the construction of the chameleon hash authentication tree.
[0082] Step 6: The image owner stores the unencrypted index tree locally and sends the encrypted index tree and chameleon hash tree to the cloud server.
[0083] Step 7: The query user generates a query trap based on the query image and sends it to the cloud server, which specifically includes the following steps:
[0084] S7.1. The query user uses a convolutional neural network model to extract the feature vector of the query image and uses principal component analysis to reduce the dimension to a d-dimensional feature vector f q =(f q,1 ,f q,2 ,…,f q,d ).
[0085] S7.2、Query the user to f q Expanded to f q =(λ q f q,1 ,λ q f q,2 ,...,λ q f q,d ,λ q ,β q ), where λ q is a random number, and β q is a randomly generated q quantity, and
[0086] S7.3, querying the user to encrypt the subset of the received feature vector key q Encrypted as in is a 2D vector of random integers, and are all column vectors.
[0087] S7.4、Query the user to f q Send to the cloud server.
[0088] Step 8: The cloud server retrieves the encrypted index tree according to the query trapdoor to obtain the ciphertext retrieval results, and sorts them according to the similarity to obtain the top k ciphertext retrieval results, which specifically includes the following steps:
[0089] S8.1. The cloud server first calculates the inner product of the encrypted vector stored in the child node of the root node and the encrypted query vector, then compares the maximum inner product, and continues to calculate the inner product of the encrypted vector and the query vector stored in the child node of the child node with the largest inner product. This process is iterated until a leaf node with the largest inner product is found. The feature vector stored in the leaf node is the feature vector of the image most similar to the query image.
[0090] The calculation method is:
[0091]
[0092] in p1 represents the nearest integer after modulo p1; if it is necessary to find the top-k (k>1) most similar images, continue to step S8.2.
[0093] S8.2, the cloud server returns to the sibling node or parent node of the leaf node found in the previous step to find the next nearest neighbor node. Repeat this process until the k most similar leaf nodes are found:
[0094] Step 9: The cloud server generates corresponding evidence for each search result based on the search results and the Chameleon hash authentication tree, which specifically includes the following steps:
[0095] S9.1. The cloud server retrieves the result image c i The corresponding identifier i is converted into a d-bit binary number after minus 1, where d represents the current height of the Chameleon hash tree.
[0096] S9.2. Traverse the Chameleon Hash Tree according to the principle of "left 0 right 1" until a leaf node is found.
[0097] S9.3. The cloud server uses the sibling nodes of each node on the path from the leaf node to the root node found, as well as the random numbers of all chameleon hash nodes on the path as evidence π i .
[0098] S9.4. The cloud server returns the top k search results and the corresponding evidence to the querying user.
[0099] Step 10: The querying user verifies the corresponding search result based on the evidence and the verification key;
[0100] Determine whether the following formula is true. If so, the verification is successful and step 11 is executed; otherwise, the verification fails.
[0101] v h,0 =H h (ρ)
[0102] Step 11: The query user uses the image encryption key as the decryption key to decrypt the verified retrieval results to obtain the plaintext image.
[0103] The query user uses the key sent by the image owner to decrypt the ciphertext image result returned by the cloud server to obtain the top-k similar plaintext images.
[0104] Step 12: Update the Chameleon hash authentication tree. The specific method is as follows:
[0105] S12.1. Updates include adding images, deleting images, and replacing images.
[0106] To add an image:
[0107] S12.1-1a, the image owner obtains the hash value of the added image l′=h(c′||id m′ ).
[0108] Among them, h is the hash function, c′ is the image ciphertext to be added, id m′ is the identifier of the image m′ to be added;
[0109] S12.1-2a. The image owner generates and verifies evidence of l1 according to steps 9 and 10 to determine whether the hash authentication tree has been maliciously tampered with. If the verification fails, the image is refused to be added; otherwise, it can be added.
[0110] S12.1-3a. The image owner finds the position i of the empty leaf node in the private key st and executes step 9 to obtain evidence π i And verify, and insert the hash value l′.
[0111] If there is no empty leaf node position in st, the image owner executes step S5.4 to create a node and insert the hash value l′.
[0112] S12.1-4a, when the hash value l′ is added to the chameleon hash tree, the image owner updates all nodes on the path from l′ to the root node until the chameleon hash node is encountered. In addition, the image owner selects a new ρ′∈{0,1} λ , and call the scol() function to update the nodes with index 0 in each layer.
[0113] S12.1-5a. The image owner sends all nodes to be updated to the server.
[0114] Image owner deletes image i The method is as follows:
[0115] S12.1-1b, the image owner searches and verifies l according to steps 9 and 10 respectively i And l1, determine whether the hash authentication tree has been maliciously tampered with. If the verification fails, the deletion is refused; otherwise, it can be deleted.
[0116] S12.1-2b, the image owner replaces l with NULL i and by using v i,j =v i-1,2·j ||v i-1,2·j+1 , recalculate all nodes on the path from the deleted node to the corresponding child node with index 0, and save the deleted position index i in st for later adding images.
[0117] S12.1-3b, the image owner chooses a new value ρ′∈{0,1} λ , and call the scol() function to update the nodes with index 0 in each layer.
[0118] S12.1-4b. The image owner sends all nodes to be updated to the server.
[0119] Here's how the image owner can replace the image:
[0120] S12.1-1c, the image owner replaces l with the new image l′ i .
[0121] S12.2. The cloud server updates the verification tree according to the received node information to be updated.
[0122] S12.3. The image owner updates the images in the plaintext image set and the ciphertext image set by adding, deleting, and replacing images as needed, and re-uploads the updated ciphertext image set to the cloud server.
[0123] Step 13: According to the updated plaintext image set, execute steps 2 and 3 to update the encrypted index tree, and re-upload the updated encrypted index tree to the cloud server.
[0124] The above contents are only for explaining the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.
Claims
1. A verifiable encrypted image retrieval method supporting dynamic update, characterized in that: The following steps are involved: Step 1: The image owner generates a key and sends it to the querying user; Step 2: Extract the feature vector of the plaintext image and construct an encrypted index tree based on the feature vector; Step 3: The image owner constructs a chameleon hash authentication tree based on the encrypted image set; The method for constructing the Chameleon Hash Authentication Tree is as follows: S5.
1. Obtain the hash value of each image; S5.
2. Initialize the leaf node c of the Chameleon hash authentication tree to 0; S5.
3. Calculate the hash value of the root node, insert hash values l1 and l2 into the two leaf nodes of the root node, calculate the random number of the root node based on the hash value of the root node, hash values l1 and l2, and increase the leaf node c by 2; S5.4, check whether the leaf node c is a power of 2. If c is a power of 2, execute steps S5.5-S5.8; if the leaf node c is not a power of 2, execute steps S5.7-S5.8; S5.
5. Increase the depth d-1 of the current Chameleon Hash Authentication Tree by 1 to d; S5.
6. The root node at depth d-1 is used as the left child node of the root node at depth d, and two random numbers are selected and a virtual node is calculated as the right child node; S5.
7. Search for the bottom rightmost node v in the Chameleon Hash Tree that has no children i,j , with the node v i,j Create a subtree for the root node, first follow v i,j Move down until the height of the node is 1. When the non-leaf node is the right child node, use the chameleon hash ch() to create a virtual node. When the non-leaf node is the left child node, use the anti-collision hash H() to create a normal node, and add the corresponding virtual node to the state st. i Insert it into the subtree as a leaf node and calculate v i,j =v i-1,2· j Pv i-1,2·j+1 and r i, ' j =col(csk,x i,j ,r i,j ,v i,j ), the random number r of the virtual node i,j Update to r i, ' j ; S5.
8. Increase the next empty leaf node index c by 1; S5.9, repeat step S5.4 until the hash value of each ciphertext image is associated with a leaf node of the chameleon hash authentication tree, and the construction of the chameleon hash authentication tree is completed; Step 4: The cloud server retrieves the encrypted index tree according to the query trap of the query user to obtain the ciphertext retrieval results, and sorts them according to the similarity to obtain the top k ciphertext retrieval results; Step 5: The cloud server generates corresponding evidence for each ciphertext search result based on the search results and combined with the Chameleon Hash Authentication Tree; The method for generating evidence is as follows: The cloud server will retrieve the result image c i The corresponding identifier i is converted into a d-bit binary number after minus 1, where d represents the current height of the Chameleon hash tree; Traverse the Chameleon Hash Tree according to the principle of "left 0 right 1" until a leaf node is found; Take the sibling nodes of each node on the path from the leaf node to the root node found, and the random numbers of all chameleon hash nodes on the path as evidence π i ; Step 6: The querying user verifies the corresponding search results based on the evidence; Step 7: The query user uses the image encryption key as the decryption key to decrypt the verified retrieval results to obtain the plaintext image.
2. A verifiable encrypted image retrieval method supporting dynamic update according to claim 1, characterized in that: The method for building the unencrypted index tree in step 2 is as follows: S2.1, using convolutional neural network model to extract feature vectors of each image; S2.2, recursively cluster all unencrypted feature vectors; S2.
3. According to the clustering results, each feature vector is associated with a leaf node, nodes belonging to the same class are associated with the same non-leaf node as their parent node, and a d-dimensional vector is assigned to each non-leaf node to form an unencrypted index tree.
3. A verifiable encrypted image retrieval method supporting dynamic update according to claim 1, characterized in that: The plaintext image set is encrypted using a chaotic mapping algorithm to obtain the encrypted image set described in step 3.
4. The method for verifiably encrypted image retrieval supporting dynamic update according to claim 1, characterized in that: In step 4, the query user generates a query trapdoor based on the query image. The query trapdoor generation method is as follows: The query user uses a convolutional neural network model to extract the feature vector of the query image, expands the feature vector, encrypts the expanded feature vector to generate a query trapdoor and sends it to the cloud server.
5. A verifiable encrypted image retrieval method supporting dynamic update according to claim 4, characterized in that: The method for obtaining the top k ciphertext retrieval results in step 4 is as follows: The cloud server first calculates the inner product of the encrypted vector stored in the child node of the root node and the encrypted query vector, then compares the maximum inner product, and continues to calculate the inner product of the encrypted vector and the query vector stored in the child node of the child node with the maximum inner product, and iterates this process until the leaf node with the largest inner product is found; S8.
2. The cloud server returns to the sibling node or parent node of the leaf node found in the previous step to find the next nearest neighbor node, and repeats this step until the k most similar leaf nodes are found.
6. A verifiable encrypted image retrieval method supporting dynamic update according to claim 1, characterized in that: The verification formula for the retrieval results in step 6 is as follows: v h,0 =H h (p) When the verification formula is established, the verification is successful, otherwise, the verification fails.
7. A verifiable encrypted image retrieval method supporting dynamic update according to claim 1, characterized in that: After step 7, the following steps are also included: Update the Chameleon hash authentication tree based on added, deleted, or replaced images; Update the verification tree according to the updated node information; The images in the plaintext image set and the ciphertext image set are updated according to the images added, deleted and replaced as needed, and the updated ciphertext image set is re-uploaded to the cloud server.
8. A verifiable encrypted image retrieval method supporting dynamic update according to claim 7, characterized in that: The encrypted index tree is updated according to the updated plaintext image set, and the updated encrypted index tree is re-uploaded to the cloud server.
Citation Information
Patent Citations
Method for multi-keyword fuzzy search of dynamic ciphertext in cloud environment
CN106815350A
An encrypted image retrieval method supporting multiple keys
CN109543061A
Verifiable multi-keyword ciphertext query method and system based on security index
CN112446041A
Privacy-protected encrypted image retrieval method and system
CN112528064A
Image search method, blockchain, cloud server and image search device
CN113094747A
