Big data dynamic updating method based on nested multi-branch path tree

By nesting a multi-branch path tree structure, the inefficiency problem of traditional Merkle hash trees in multi-file management is solved, efficient storage and dynamic updating of multiple files are achieved, and it is suitable for data management of cloud storage servers.

CN118535532AActive Publication Date: 2024-08-23TIANJIN UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410606663.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-23
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

The traditional Merkle hash tree is inefficient when processing multiple files and can only store one file, making it difficult to meet the dynamic update needs of users to manage multiple files.

Method used

Adopting a nested multi-branch path tree structure, the root hash values ​​of multiple files are stored through the external multi-branch path tree, and the internal multi-branch path tree is used to store file-divided data blocks to achieve dynamic update operations, support multi-file storage and improve Dynamic update efficiency.

Benefits of technology

It achieves efficient storage and dynamic update of multiple files, reduces the depth of the tree, and improves the efficiency of dynamic update. It is suitable for users to manage a large number of data files in cloud storage servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535532A
    Figure CN118535532A
Patent Text Reader

Abstract

The invention discloses a big data dynamic updating method based on a nested multi-branch path tree. The method is used for solving the problem that a user manages a large number of data files in a cloud storage server and dynamically updates the large number of data files. The nested multi-branch path tree is divided into an external multi-branch path tree and an internal multi-branch path tree; a nested multi-branch path tree is used as a storage structure, a user stores root hash values of a plurality of managed files on leaf nodes of an external multi-branch path tree and finds out corresponding files through the root hash values, and an internal multi-branch path tree stores data blocks segmented by the files. The dynamic updating operation on the data block and the dynamic updating operation on the file are realized; compared with the prior art, a plurality of files can be stored to realize big data storage, and the dynamic updating efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of information security, and in particular is a big data dynamic update method based on a nested multi-branch path tree. Background Art

[0002] With the advent of the big data era, data has exploded, and users are storing more and more data in cloud storage servers. As the amount of data increases, the operation of dynamically updating data will also become slow. For the traditional data dynamic update method, the linked list was initially used to dynamically update data. However, the search efficiency of the linked list is relatively low. For files stored on cloud servers, the search operation is much greater than the addition and deletion. Therefore, the method of using Merkle hash tree to store files has gradually emerged. Up to now, the mainstream data structure for dynamic update is still to use Merkle hash tree. However, although Merkle hash tree can effectively perform dynamic update, because its number of branches is fixed at 2, when the amount of data increases, the height of Merkle hash tree will become higher, resulting in reduced efficiency of dynamic update, and it only supports the storage of one file; later, based on the Merkle hash tree, multi-branch path tree was introduced for storage. It has the characteristics of multiple branches and reduces the height of the tree, but it can only store one file, which is not suitable for one user to manage multiple files. Summary of the invention

[0003] Aiming at the problem that users manage a large number of data files in a cloud storage server and dynamically update a large number of data files, the present invention proposes a big data dynamic update method based on a nested multi-branch path tree; the nested multi-branch path tree is divided into an external multi-branch path tree and an internal multi-branch path tree; using the nested multi-branch path tree as a storage structure, the user stores the root hash values ​​of multiple files managed on the leaf nodes of the external multi-branch path tree, and finds the corresponding files through the root hash values, and the internal multi-branch path tree stores the data blocks divided by the files, thereby realizing the dynamic update operation of the data blocks and the dynamic update operation of the files; compared with the merkle hash tree that can only store one file, this method can store multiple files to realize big data storage and improve the dynamic update efficiency.

[0004] In order to solve the above technical problems, the present invention proposes a big data dynamic update method based on a nested multi-branch path tree, which uses a nested multi-branch path tree as a storage structure to store multiple files to realize big data storage and improve the dynamic update efficiency. The method includes the following steps:

[0005] Step 1, establishing a system model: the system model includes a user, a cloud storage server, a third-party auditing agency and a private key generator; the user stores multiple files in the cloud storage server;

[0006] Step 2: Initialize system parameters: The user uses the private key generator to set the system parameters, thereby generating system parameters and the user's public and private key pair (pk, sk); the system parameters are: Let G, G T are two multiplicative cyclic groups with the same prime order p, and g is a generator of G; let e: G×G→G T is a bilinear map; H: {0, 1} * →G is a secure hash function;

[0007] Step 3, calculate data block labels and file labels: the user has n files {F1, F2, ..., F i}(1≤i≤n), first, each file F i Divide into m data blocks B, that is, {F i}={B i1 , B i2 , ..., B ij}(1≤i≤n, 1≤j≤m); then use the private key to encrypt all data blocks {B ij}, generate encrypted data block Finally, the data block label set {σ ij} and the file label set {σ i}, where for file F i The data block label of the next j-th data block is:

[0008]

[0009] In formula (1), H(B ij ) represents file F i The unique identifier of the next j-th data block, randomly select j auxiliary variables u j ∈G(1≤j≤m);

[0010] Calculate file label: File F i The file tags are:

[0011]

[0012] In formula (2), H(F i ) represents the unique identifier of the file, and randomly selects j auxiliary variables u j ∈G(1≤j≤m);

[0013] Step 4, construct a nested multi-branch path tree and upload files: the nested multi-branch path tree consists of an external multi-branch path tree and multiple internal multi-branch path trees. A leaf node of the internal multi-branch path tree stores the hash value of a data block. Each internal multi-branch path tree represents a file. The hash value of the root node of each internal multi-branch path tree is used as the leaf node of the external multi-branch path tree, thereby constructing a nested multi-branch path tree. After the user stores multiple files into a data structure of a nested multi-branch path tree, the user will use a private key to sign the external multi-branch path tree and the internal multi-branch path tree root hash value, and finally send it together with the entire tree structure to the cloud storage server, and then delete the locally stored files.

[0014] Step 5, integrity verification: before dynamic update, the user needs to verify the integrity of the data in the cloud storage server. The user sends an integrity verification request to the third-party auditing agency. After receiving the integrity verification request from the user, the third-party auditing agency sends a challenge message to the cloud storage server. After receiving the challenge message from the third-party auditing agency, the cloud storage server generates integrity evidence. The third-party auditing agency verifies the integrity evidence. If the verification is successful, it proves that the data stored on the cloud storage server is complete and returns TRUE. Otherwise, it proves that the data stored on the cloud storage server is incomplete and returns FALSE.

[0015] Step 6, dynamic update: When the user modifies, inserts, or deletes data stored on the cloud server, dynamic operations are performed; since the data structure used is a nested multi-branch path tree structure, the dynamic update scheme is also divided into two types: dynamic update operations on data blocks on the internal multi-branch path tree and dynamic update operations on files on the external multi-branch path tree.

[0016] Furthermore, the big data dynamic update method of the present invention includes:

[0017] The specific contents of step 4 include:

[0018] 4-1) Calculate the root hash value and signature of the internal multi-branch path tree: Use the hash value of the data block to construct the internal multi-branch path tree, and calculate the root hash value H (interMBT i ) and generates the corresponding signature sig(H(interMBT i ))=H(interMBT i ) sk , used to check whether the internal multi-branch path tree is complete;

[0019] 4-2) Calculate the root hash value and signature of the external multi-branch path tree: Use the hash value of the internal multi-branch path tree to construct the external multi-branch path tree, calculate the root hash value H(R) of the external multi-branch path tree, and generate the corresponding signature sig(H(R))=H(R) sk , is also used to check whether the entire nested multi-branch path tree is complete;

[0020] 4-3) Upload the file; the user uploads the encrypted data block obtained in step 3 Data block label set {σ ij}, file tag set {σ i} and the root hash value H(interMBT i ) and the corresponding signature sig(H(interMBT i )) and the root hash value H(R) of the external multi-branch path tree and the corresponding signature sig(H(R)) are uploaded to the cloud storage server. After the cloud storage server returns the storage response, the user deletes the local storage data.

[0021] The specific contents of step 5 include:

[0022] 5-1) TPA issues a challenge message: The user sends an integrity verification request to TPA, and TPA randomly selects a set L = {s1, s2...s c}; TPA randomly selects c auxiliary variables v l ∈G, 1≤l≤c;

[0023] Finally, TPA sends a challenge message Q = {L, v l}(1≤l≤c);

[0024] 5-2) CSP generates integrity evidence: After receiving the challenge information Q from TPA, CSP first finds the node corresponding to the challenged file, and represents the auxiliary information on the authentication path from the node to the root node as {∩ l}(1≤l≤c);

[0025] CSP calculates σ, μ for the received data, namely:

[0026]

[0027]

[0028] Afterwards, CSP will prove that P = {σ, μ{H(F l ), ∩ l}, sig(H(R))} are all returned to TPA, and TPA processes the response data;

[0029] 5-3) TPA verifies the integrity proof: After TPA receives the proof P sent by CSP, {H(F l ), ∩ l}, generate a new root node value R' and then verify whether the equation holds:

[0030] e(sig(H(R)),g)=e((H(R')),g sk )

[0031] If the equation does not hold, return FALSE, otherwise verify the integrity of the requested data block based on the challenge information Q and proof P; determine whether the equation holds:

[0032]

[0033] If the equation is true, it means that the data is intact and not damaged, and returns TRUE; otherwise, the data is damaged and returns FALSE.

[0034] Step 6 includes:

[0035] 6-1) Data block modification operation: The user wants to modify the θth data block in the αth internal multi-branch path tree to The user generates a new label for the new data block, namely:

[0036]

[0037] The user updates the information in step 4-3) and changes σ α,θ′ Add data block tag set {σ ij}, and recalculate the encrypted data block File tag set {σ i}, the root hash value H(interMBT i ) and the corresponding signature sig(H(interMBT i )), the root hash value H(R) of the external multi-branch path tree and the corresponding signature sig(H(R)) are uploaded to the cloud storage server for update operation;

[0038] 6-2) Data block insertion operation: Assume that the user intends to insert a new data block before the θ+1th data block in the αth internal multi-branch path tree. The user generates a new label for the data block to be inserted, namely:

[0039]

[0040] The user updates the information in step 4-3) and sets the data block label set {σ ij}α,θ Replace with σ α,β , and recalculate the encrypted data block File tag set {σ i}, the root hash value H(interMBT i ) and the corresponding signature sig(H(interMBT i )), the root hash value H(R) of the external multi-branch path tree and the corresponding signature sig(H(R)) are uploaded to the cloud storage server for update operation;

[0041] 6-3) Data block deletion operation: Assume that the user wants to delete the data block at θ in the αth internal multi-branch path tree; the user first sets the label σ of the data block to be deleted. α,θ Delete it; then, set the hash value corresponding to the tag to null;

[0042] The user updates the information in step 4-3) and sets the data block label set {σ ij} α,θ Replace with null and recalculate the encrypted data block File tag set {σ i}, the root hash value H(interMBT i ) and the corresponding signature sig(H(interMBT i )), the root hash value H(R) of the external multi-branch path tree and the corresponding signature sig(H(R)) are uploaded to the cloud storage server for update operation;

[0043] 6-4) File modification operation: Assume that the αth internal multi-branch path tree interMBT α Modified to interMBT' α ;

[0044] 6-5) File insertion operation: insert another external multi-branch path tree before an external multi-branch path tree. Assume that the user is in the αth interMBT α Insert new interMBT before β ;

[0045] 6-6) File deletion operation: The deletion of the external multi-branch path tree is similar to the insertion operation, which refers to deleting the external multi-branch path tree at a specific location; after receiving the update request message, the cloud storage server performs the deletion operation; first delete the interMBT α And H(interMBT α ) is set to null, and then a new root node R′ is generated; other than that, the specific process of deletion is similar to the modification and insertion operations.

[0046] Further, the step 6-4) includes:

[0047] (1) File segmentation: The user first divides the interMBT α Divide into m blocks, and re-encrypt the divided message to obtain Regenerate interMBT' α New tags:

[0048]

[0049] (2) User sends update request: The user sends an update request to the third-party auditing agency, and the third-party auditing agency sends an update request to the cloud storage server; Update request: Where M represents the modification operation, and α represents the modification of the αth internal multi-branch path tree;

[0050] (3) The cloud storage server generates an update certificate. After receiving the update request, the cloud storage server replaces the data of the original αth file. Replace with The label σ of the file α Replace with σ α‘ , recalculate the hash value of the αth file, H(interMBT α ) is replaced by H(interMBT' α ), and regenerates a new root R'; the cloud storage server returns an update certificate V update =(sig(H(R)),R′,H(interMBT α )) and sent to a third-party auditing agency;

[0051] (4) A third-party auditing agency conducts update verification; the third-party auditing agency uses H(interMBT α ) and ∩ α Generate the root node R' of the original nested multi-branch path tree to verify the integrity of the cloud storage server before the data update. If the verification fails, output FALSE. Otherwise, the third-party audit agency continues to verify. The third-party audit agency uses H(interMBT' α ) and ∩ α Generate the root node R'' of the updated nested multi-branch path tree, and compare it with R' to verify whether the cloud storage server correctly performs the update operation. If they are consistent, output TRUE, otherwise output FALSE; if the final result is TRUE, the user signs the recalculated root node of the nested multi-branch path tree sig(H(R')) and sends it to the cloud storage server for update. After executing the update operation, delete the user's local data.

[0052] The step 6-5) comprises:

[0053] (1) File segmentation: The user first divides the interMBT β Divide into m blocks, and re-encrypt the divided message to obtain Regenerate new file tags:

[0054]

[0055] (2) User sends update request: The user sends an update request to the third-party auditing agency, and the third-party auditing agency sends an update request to the cloud storage server; Update request:

[0056]

[0057] Where I represents the insertion operation, and α represents the insertion after the αth internal multi-branch path tree;

[0058] (3) The cloud storage server generates an update certificate; storage Add a new tag set to the file β , recalculate the hash value H(interMBT β ), and regenerate a new root R'; record the auxiliary path from the new file to the root node ∩ β ; The cloud storage server returns an update certificate V update =(sig(H(R)), R′, ∩ β )) and sent to a third-party auditing agency;

[0059] (4) A third-party auditing agency conducts update verification; the third-party auditing agency uses H(interMBT α ) and ∩ α Generate the root node R of the original nested multi-branch path tree, verify the integrity of the cloud storage server before the data update, if the verification fails, output FALSE, otherwise, the third-party audit agency continues to verify, the third-party audit agency uses H(interMBT β ' and ∩ β Generate the root node R'' of the updated nested multi-branch path tree and compare it with R' to verify whether the cloud storage server correctly performs the update operation. If they are consistent, output TRUE, otherwise output FALSE; if the final result is TRUE, the user signs the recalculated root node of the nested multi-branch path tree sig(H(R')) and sends it to the cloud storage server for update. After performing the insertion operation, delete the user's local data.

[0060] Compared with the prior art, the present invention has the following beneficial effects:

[0061] The present invention uses a nested multi-branch path tree storage structure, so that each leaf node of the external multi-branch path tree can store a file. Compared with the traditional Merkle hash tree and multi-branch path tree that can only store one file, this solution increases the number of stored files and realizes large data storage; in addition, compared with the traditional Merkle hash tree, when storing files of the same size, the depth of the tree will be reduced, thereby improving the efficiency of dynamic updates.

[0062] The present invention can realize dynamic update of files and dynamic update of data blocks. Compared with the original traditional Merkle hash tree and multi-branch path tree which can only dynamically update data blocks, the present invention not only supports dynamic update of data blocks, but also supports dynamic update of files. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 It is a nested multi-branch path tree structure diagram constructed in the method of the present invention;

[0064] Figure 2 is a system flow chart of the method of the present invention;

[0065] Figure 3 It is a schematic diagram of the modification operation of a data block in the dynamic update operation of the present invention;

[0066] Figure 4 It is a schematic diagram of the insertion operation of a data block in the dynamic update operation of the present invention;

[0067] Figure 5 It is a schematic diagram of a data block deletion operation in a dynamic update operation of the present invention;

[0068] Figure 6 It is a schematic diagram of the modification operation of a file in the dynamic update operation of the present invention;

[0069] Figure 7 It is a schematic diagram of the insertion operation of a file in the dynamic update operation of the present invention;

[0070] Figure 8 It is a schematic diagram of the deletion operation of files in the dynamic update operation of the present invention. DETAILED DESCRIPTION

[0071] The process of the big data dynamic update method based on the nested multi-branch path tree proposed by the present invention is as follows: Figure 2As shown, there are six steps: establishing a system model, initializing system parameters, calculating data block labels and file labels, building a nested multi-branch path tree and uploading files, integrity verification and dynamic update; in building a nested multi-branch path tree and uploading files, each internal multi-branch path tree is used to store a file, and the hash value of the entire internal multi-branch path tree is stored in the root node of the external multi-branch path tree. Using this internal and external nested mode, the storage of data files can be doubled to achieve large data storage. The dynamic update operation of data blocks and files is introduced in the dynamic update.

[0072] The following describes in detail the specific contents of each step:

[0073] Step 1: Build a system model

[0074] The system model of this solution is mainly composed of four entities: users, cloud storage servers (CSP), third-party audit agencies (TPA), and private key generators (PKG).

[0075] The cloud storage server (CSP) is the entity that provides cloud storage services; the third-party auditor (TPA): receives user requests, initiates data integrity verification challenges to the cloud storage server (CSP) on behalf of the user, and performs integrity verification after receiving the evidence sent by the cloud storage server. If the verification fails, the user will be notified immediately, and then a series of penalty operations will be performed; the private key generator (PKG) is an honest and trustworthy entity, responsible for generating public parameters, generating secure and trustworthy keys for users, and reducing related complex calculations for users.

[0076] Step 2: Initialize system parameters

[0077] The private key generator (PKG) sets system parameters and generates system parameters and the user's public and private key pairs.

[0078] 2-1) Generate system parameters: Let G, G T are two multiplicative cyclic groups with the same prime order p, and g is a generator of G; let e: G×G→G T is a bilinear map; H: {0, 1} * →G is a secure hash function, Z p Represents a set of integers.

[0079] 2-2) Generate the user's public-private key pair: PKG generates the corresponding public-private key pair (pk, sk) for the user based on the user's identity information, where pk = g sk , and transmitted to the user through a secure channel.

[0080] Step 3: Calculate data block labels and file labels

[0081] Assume that a user manages n files F in a project. Each file needs to be divided into m data blocks first, then the data blocks are encrypted, and finally the data block labels and file labels are calculated.

[0082] 3-1) Splitting big data files into data blocks: The user divides each big data file into m data blocks B. The final split file is represented as: {F i}={B i1 , B i2 , ..., B ij}(1≤i≤n, 1≤m).

[0083] 3-2) Encrypted data block: After executing the above file splitting operation, the user uses the private key to encrypt the data block, and the encrypted file generated is:

[0084] 3-3) Calculate the data block label: The j-th data block label under the i-th big data file is:

[0085]

[0086] Among them, H(B ij ) represents the unique identifier of the data block, and randomly selects j auxiliary variables u j ∈G.

[0087] 3-4) Calculate the file label: For the i-th file F stored in the internal multi-branch path tree i Calculate file tags:

[0088]

[0089] Among them, H(F i ) represents the unique identifier of the file, and randomly selects j auxiliary variables u j ∈G,1≤j≤m.

[0090] Step 4: Build a nested multi-branch path tree and upload files

[0091] The main idea of ​​building a nested multi-branch path tree is to store a data block in an internal multi-branch path tree leaf node, store a file in an internal multi-branch path tree, and finally use an external multi-branch path tree to store multiple files; the internal and external multi-branch path trees together constitute a nested multi-branch path tree; when the user stores his multiple files into a data structure of a nested multi-branch path tree, the user will use the private key to sign the hash value of the external multi-branch path tree root node and the internal multi-branch path tree root node, and finally send it together with the entire tree structure to the CSP, and then delete his own files stored locally.

[0092] Nested multi-branch path tree structure such as Figure 1 As shown, the user owns three files F1, F2, and F3, each of which consists of three data blocks B1, B2, and B3; all files owned by the user are stored in a nested multi-branch path tree, the one in the dashed box is the internal multi-branch path tree, and the rest are external multi-branch path trees; the hash value of file F1 is calculated: H(F1)=H(H(B1)+H(B2)+H(B3)), and so on, the hash value of file F2: H(F2)=H(H(B1)+H(B2)+H(B3)), the hash value of file F3: H(F3)=H(H(B1)+H(B2)+H(B3)); the root hash value: H(R)=H(H(F1)+H(F2)+H(F3)).

[0093] 4-1) Calculate the hash value and signature of the root node of the internal multi-branch path tree: The user obtains the corresponding parameters from the PKG private key generator, and calculates the hash value H (interMBT i ) and generates the corresponding signature sig(H(interMBT i )), used to check whether the internal multi-branch path tree is complete.

[0094] 4-2) Calculate the hash value and signature of the root node of the external multi-branch path tree: In view of the storage of a large amount of data, the root node of the external multi-branch path tree stores the hash values ​​of multiple internal multi-branch path trees. Calculate the hash value H(R)=H(outerMBT i ), and generates the corresponding signature sig(H(R))=sigH(outerMBT i ))=H(outerMBT i ) sk ,It is also used to check whether the entire nested multi-branch path tree is complete.

[0095] 4-3) The user thus obtains a collection of encrypted files and labels; including a collection of the entire encrypted data block file The label set of data blocks {σ ij}, the tag set of the file composed of data blocks {σ i}, internal multi-branch path tree signature sig(H(interMBT i )) and the outer multi-branch path tree signature sigH(outerMBT i )), the user uploads the encrypted file and tag set to the CSP, and then after the CSP returns a storage response, the user deletes the local storage data.

[0096] Step 5: Integrity Verification

[0097] When a user wants to verify the integrity of the data in the cloud storage server, the user sends an integrity verification request to TPA. After receiving the user's integrity verification request, TPA sends a challenge message Q to CSP. After receiving the challenge message Q sent by TPA, CSP generates an integrity proof P. TPA verifies the integrity proof P. If the verification passes, it proves that the data stored on the CSP is complete and returns TRUE. Otherwise, it proves that the data stored on the CSP is incomplete and returns FALSE.

[0098] 5-1) TPA issues a challenge message:

[0099] The user sends an integrity verification request to TPA, and TPA randomly selects a set L = {s1, s2...s c}; TPA randomly selects c auxiliary variables v l ∈G, 1≤l≤c.

[0100] Finally, TPA sends a challenge message Q = {L, vl} (1≤l≤c) to CSP.

[0101] 5-2) CSP generates integrity evidence:

[0102] After receiving the challenge information Q from TPA, CSP first finds the node corresponding to the challenged file and expresses the auxiliary information on the authentication path from the node to the root node as {∩ l}(1≤l≤c).

[0103] CSP calculates σ, μ for the received data, namely:

[0104]

[0105]

[0106] Afterwards, CSP will prove that P = {σ, μ, {H(F l ), ∩ l}, sig(H(R))} are all returned to TPA, and TPA processes the response data.

[0107] 5-3) TPA verifies the integrity proof: After TPA receives the proof P sent by CSP, {H(F l ), ∩ l}, generate a new root node value R′ and then verify whether the equation holds:

[0108] e(sig(H(R)),g)=e((H(R')),g sk )

[0109] If the equation does not hold, return FALSE, otherwise verify the integrity of the requested data block based on the challenge information Q and proof P; determine whether the equation holds:

[0110]

[0111] If the equation is true, it means that the data is intact and not damaged, and returns TRUE; otherwise, the data is damaged and returns FALSE.

[0112] Step 6: Dynamic update operation

[0113] When users modify, insert, or delete data stored on the cloud server, dynamic operations are performed. Since the data structure used is a nested multi-branch path tree structure, the dynamic update scheme is also divided into two types: dynamic update operations of data blocks on the internal multi-branch path tree and dynamic update operations of files on the external multi-branch path tree. The dynamic update operation types include: modify, insert, and delete, which are represented by M, I, and D respectively below. Each file in a large data file is composed of multiple data blocks. The update operations performed by users on data blocks will affect the operations of the entire file. Therefore, in the subsequent introduction, the dynamic update operations of data blocks will be introduced first, and then the dynamic update operations of files will be introduced.

[0114] 6-1) Data block modification operation: Data block modification operation refers to replacing a data block of an internal multi-branch path tree with a data block of another new internal multi-branch path tree; suppose the user wants to modify the θth data block in the αth internal multi-branch path tree to

[0115] First, the user generates a new data block and generates a new label, namely:

[0116]

[0117] The user updates the big data file corresponding to the data block and the label corresponding to the big data file. After the big data file and label are updated, the root hash value and corresponding signature of the internal multi-branch path tree and the external multi-branch path tree are recalculated. Finally, the user uploads the root hash value and signature to the CSP for update operation.

[0118] The nested multi-branch path tree after modifying the data block is as follows Figure 3 As shown, data block B1 of file F2 is modified.

[0119] 6-2) Data block insertion operation: Data block insertion means inserting a data block of another new internal multi-branch path tree before a data block of an internal multi-branch path tree; suppose the user intends to insert a new data block before the θ+1th data block in the αth internal multi-branch path tree

[0120] First, the user generates a new label for the data block to be inserted, namely:

[0121]

[0122] Then, the user updates the big data file corresponding to the data block and the label corresponding to the big data file. After the big data file and label are updated, the root hash value and corresponding signature of the internal multi-branch path tree and the external multi-branch path tree are recalculated.

[0123] Finally, the user uploads the root hash value and signature and submits it to the CSP for update operations.

[0124] The nested multi-branch path tree after inserting the data block is as follows Figure 4 As shown, data block B4 is inserted before data block B1 of file F2.

[0125] 6-3) Data block deletion operation: The deletion operation is simpler than the insertion and modification operations and does not require the recalculation of the data block label. It refers to deleting the specified data block in any αth internal multi-branch path tree; suppose the user wants to delete the data block at θ in the αth internal multi-branch path tree.

[0126] The user first labels the data block to be deleted σ α,θ Delete it; then, set the hash value corresponding to the tag to null; finally, update the file and file tag corresponding to the data block, and recalculate the root hash value and corresponding signature of the internal multi-branch path tree and the external multi-branch path tree, and then upload them to CSP for update.

[0127] The nested multi-branch path tree after deleting the data block is as follows Figure 5 As shown, data block B1 of file F2 is deleted.

[0128] 6-4) File modification operation: Assume that the αth internal multi-branch path tree interMBT α Modified to interMBT' α .

[0129] (1) File segmentation: The user first divides the interMBT α Divide into m blocks, and re-encrypt the divided message to obtain Regenerate interMBT' α New tags:

[0130]

[0131] (2) User sends update request: The user sends an update request to TPA, and TPA sends an update request to CSP; Update request: Where M represents the modification operation, and α represents the modification of the αth internal multi-branch path tree.

[0132] (3) CSP generates update proof: After receiving the update request, CSP replaces the data of the original αth file. Replace with The label σ of the file α Replace with σ α‘ , recalculate the hash value of the αth file, H(interMBT α ) is replaced by H(interMBT' α ), and regenerates a new root R'; CSP returns an update proof V update =(sig(H(R)),R′,H(interMBT α )), send to TPA.

[0133] (4) TPA performs update verification: TPA uses H(interMBT α ) and ∩ α Generate the root node R' of the original nested multi-branch path tree to verify the integrity of CSP before executing data update. If the verification fails, output FALSE, otherwise, TPA continues to verify. TPA uses H(interMBT' α ) and ∩ α Generate the root node R'' of the updated nested multi-branch path tree, and compare it with R' to verify whether CSP performs the update operation correctly. If they are consistent, output TRUE, otherwise output FALSE; if the final result is TRUE, the user signs the root node of the recalculated nested multi-branch path tree sig(H(R')) and sends it to the cloud storage server for update. After executing the update operation, delete the user's local data.

[0134] (5) Modify the nested multi-branch path tree of the file such as Figure 6 As shown, file F2 is modified.

[0135] 6-5) File insertion operation: insert another external multi-branch path tree before an external multi-branch path tree. Assume that the user is in the αth interMBT α Insert new interMBT before β .

[0136] (1) File segmentation: The user first divides the interMBT β Divide into m blocks, and re-encrypt the divided message to obtain Regenerate new file tags:

[0137]

[0138] (2) User sends update request: The user sends an update request to TPA, and TPA sends an update request to CSP; Update request:

[0139]

[0140] Where I represents the insertion operation, and α represents inserting after the αth internal multi-branch path tree.

[0141] (3) CSP generates update proof: storage Add a new tag set to the file β , recalculate the hash value H(interMBT β ), and regenerate a new root R'; record the auxiliary path from the new file to the root node ∩ β ; CSP returns an update proof V update =(sig(H(R)), R′, ∩ β )), send to TPA.

[0142] (4) TPA performs update verification: TPA uses H(interMBT α ) and ∩ α Generate the root node R" of the original nested multi-branch path tree to verify the integrity of CSP before executing data update. If the verification fails, output FALSE, otherwise, TPA continues to verify. TPA uses H(interMBT β ') and ∩ β Generate the root node R'' of the updated nested multi-branch path tree, and compare it with R' to verify whether CSP performs the update operation correctly. If they are consistent, output TRUE, otherwise output FALSE; if the final result is TRUE, the user signs the root node sig(H(R')) of the recalculated nested multi-branch path tree and sends it to the cloud storage server for update. After performing the insertion operation, delete the user's local data.

[0143] (5) Insert the nested multi-branch path tree of the file such as Figure 7 As shown, file F4 is inserted before file F3.

[0144] 6-6) File deletion operation: The deletion of the external multi-branch path tree is similar to the insertion operation, which means deleting the external multi-branch path tree at a specific location; after receiving the update request message, the CSP performs the deletion operation; first delete the interMBT α And H(interMBT α ) is set to null, and then a new root node R′ is generated; apart from this, the specific process of deletion is similar to the modification and insertion operations.

[0145] Delete the nested multi-branch path tree of the file such as Figure 8 As shown, file F2 has been deleted.

[0146] The present invention can be applied to users managing a large number of data files in a cloud storage server and performing dynamic update operations on a large number of data files.

[0147] Although the present invention has been described above in conjunction with the accompanying drawings, the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can make many improvements and changes without departing from the purpose of the present invention, which are all within the protection of the present invention.

Claims

1. A big data dynamic update method based on a nested multi-branch path tree, characterized in that: Using a nested multi-branch path tree as a storage structure to store multiple files to achieve large data storage and improve dynamic update efficiency, the method includes the following steps: Step 1: Build a system model The system model includes a user, a cloud storage server, a third-party auditing agency and a private key generator; the user stores multiple files in the cloud storage server; Step 2: Initialize system parameters The user uses the private key generator to set the system parameters, thereby generating the system parameters and the user's public and private key pair (pk, sk); The system parameters are: Let G,G T are two multiplicative cyclic groups with the same prime order p, and g is a generator of G; let e:G×G→G T is a bilinear map; H:{0,1} * →G is a secure hash function; Step 3: Calculate data block labels and file labels The user has n files {F1, F2, ..., F i }(1≤i≤n), first, each file F i Divide into m data blocks B, that is, {F i }={B i1 ,B i2 ,...,B ij }(1≤i≤n,1≤j≤m); then use the private key to encrypt all data blocks {B ij }, generate encrypted data block Finally, the data block label set {σ ij } and the file label set {σ i }, where for file F i The data block label of the next j-th data block is: In formula (1), H(B ij ) represents file F i The unique identifier of the next j-th data block, randomly select j auxiliary variables u j ∈G(1≤j≤m); Calculate file label: File F i The file tags are: In formula (2), H(F i ) represents the unique identifier of the file, and randomly selects j auxiliary variables u j ∈G(1≤j≤m); Step 4: Build a nested multi-branch path tree and upload the file The nested multi-branch path tree consists of an external multi-branch path tree and multiple internal multi-branch path trees. A leaf node of the internal multi-branch path tree stores the hash value of a data block. Each internal multi-branch path tree represents a file. The hash value of the root node of each internal multi-branch path tree is used as the leaf node of the external multi-branch path tree, thereby constructing a nested multi-branch path tree. After the user stores multiple files into a data structure of a nested multi-branch path tree, the user will use a private key to sign the external multi-branch path tree and the internal multi-branch path tree root hash value, and finally send it together with the entire tree structure to the cloud storage server, and then delete the locally stored files. Step 5: Integrity Verification Before dynamic updating, users need to verify the integrity of data in the cloud storage server. Users send integrity verification requests to third-party audit institutions. After receiving the integrity verification request from the user, the third-party audit institution sends a challenge message to the cloud storage server. After receiving the challenge message from the third-party audit institution, the cloud storage server generates integrity evidence. The third-party audit institution verifies the integrity evidence. If the verification is successful, it proves that the data stored on the cloud storage server is complete and returns TRUE. Otherwise, it proves that the data stored on the cloud storage server is incomplete and returns FALSE. Step 6, Dynamic Update When users modify, insert, or delete data stored on the cloud server, dynamic operations are performed; since the data structure used is a nested multi-branch path tree structure, the dynamic update scheme is also divided into two types: dynamic update operations on data blocks on the internal multi-branch path tree and dynamic update operations on files on the external multi-branch path tree.

2. The big data dynamic update method according to claim 1, characterized in that: The specific contents of step 4 include: 4-1) Calculate the root hash value and signature of the internal multi-branch path tree: Use the hash value of the data block to construct the internal multi-branch path tree, and calculate the root hash value H (interMBT i ) and generates the corresponding signature sig(H(interMBT i ))=H(interMBT i ) sk , used to check whether the internal multi-branch path tree is complete; 4-2) Calculate the root hash value and signature of the external multi-branch path tree: Use the hash value of the internal multi-branch path tree to construct the external multi-branch path tree, calculate the root hash value H(R) of the external multi-branch path tree, and generate the corresponding signature sig(H(R))=H(R) sk , is also used to check whether the entire nested multi-branch path tree is complete; 4-3) Upload the file; the user uploads the encrypted data block obtained in step 3 Data block label set {σ ij }, file tag set {σ i } and the root hash value H(interMBT i ) and the corresponding signature sig(H(interMBT i )) and the root hash value H(R) of the external multi-branch path tree and the corresponding signature sig(H(R)) are uploaded to the cloud storage server. After the cloud storage server returns the storage response, the user deletes the local storage data.

3. The big data dynamic update method according to claim 1, characterized in that: The specific contents of step 5 include: 5-1) TPA issues a challenge message: The user sends an integrity verification request to TPA, and TPA randomly selects a set L = {s1, s2...s c }; TPA randomly selects c auxiliary variables v l ∈G, 1≤l≤c; Finally, TPA sends a challenge message Q = {L,v l }(1≤l≤c); 5-2) CSP generates integrity evidence: After receiving the challenge information Q from TPA, CSP first finds the node corresponding to the challenged file, and represents the auxiliary information on the authentication path from the node to the root node as {∩ l }(1≤l≤c); CSP calculates σ,μ for the received data, namely: Afterwards, CSP will prove that P = {σ, μ, {H(F l ), ∩ l },sig(H(R))} are all returned to TPA, and TPA processes the response data; 5-3) TPA verifies the integrity proof: After TPA receives the proof P sent by CSP, {H(F l ),∩ l }, generate a new root node value R' and then verify whether the equation holds: e(sig(H(R)),g)=e((H(R')),g sk ) If the equation does not hold, return FALSE, otherwise verify the integrity of the requested data block based on the challenge information Q and proof P; determine whether the equation holds: If the equation is true, it means that the data is intact and not damaged, and returns TRUE; otherwise, the data is damaged and returns FALSE.

4. The big data dynamic update method according to claim 2, characterized in that: Step 6 includes: 6-1) Data block modification operation: The user wants to modify the θth data block in the αth internal multi-branch path tree to The user generates a new label for the new data block, namely: The user updates the information in step 4-3) and changes σ α,θ′ Add data block tag set {σ ij }, and recalculate the encrypted data block File tag set {σ i }, the root hash value H(interMBT i ) and the corresponding signature sig(H(interMBT i )), the root hash value H(R) of the external multi-branch path tree and the corresponding signature sig(H(R)) are uploaded to the cloud storage server for update operation; 6-2) Data block insertion operation: Assume that the user intends to insert a new data block before the θ+1th data block in the αth internal multi-branch path tree. The user generates a new label for the data block to be inserted, namely: The user updates the information in step 4-3) and sets the data block label set {σ ij } α,θ Replace with σ α,β , and recalculate the encrypted data block File tag set {σ i }, the root hash value H(interMBT i ) and the corresponding signature sig(H(interMBT i )), the root hash value H(R) of the external multi-branch path tree and the corresponding signature sig(H(R)) are uploaded to the cloud storage server for update operation; 6-3) Data block deletion operation: Assume that the user wants to delete the data block at θ in the αth internal multi-branch path tree; the user first sets the label σ of the data block to be deleted. α,θ Delete it; then, set the hash value corresponding to the tag to null; The user updates the information in step 4-3) and sets the data block label set {σ ij } α,θ Replace with null and recalculate the encrypted data block File tag set {σ i }, the root hash value H(interMBT i ) and the corresponding signature sig(H(interMBT i )), the root hash value H(R) of the external multi-branch path tree and the corresponding signature sig(H(R)) are uploaded to the cloud storage server for update operation; 6-4) File modification operation: Assume that the αth internal multi-branch path tree interMBT α Modified to interMBT' α ; 6-5) File insertion operation: insert another external multi-branch path tree before an external multi-branch path tree. Assume that the user is in the αth interMBT α Insert new interMBT before β ; 6-6) File deletion operation: The deletion of the external multi-branch path tree is similar to the insertion operation, which refers to deleting the external multi-branch path tree at a specific location; after receiving the update request message, the cloud storage server performs the deletion operation; first delete the interMBT α And H(interMBT α ) is set to null, and then a new root node R′ is generated; other than that, the specific process of deletion is similar to the modification and insertion operations.

5. The big data dynamic update method according to claim 4, characterized in that: Step 6-4) includes: (1) File segmentation: The user first divides the interMBT α Divide into m blocks, and re-encrypt the divided message to obtain Regenerate interMBT' α New tags: (2) User sends update request: The user sends an update request to the third-party auditing agency, and the third-party auditing agency sends an update request to the cloud storage server; Update request: Where M represents the modification operation, and α represents the modification of the αth internal multi-branch path tree; (3) The cloud storage server generates an update certificate. After receiving the update request, the cloud storage server replaces the data of the original αth file. Replace with The label σ of the file α Replace with σ α‘ , recalculate the hash value of the αth file, H(interMBT α ) is replaced by H(interMBT' α ), and regenerates a new root R'; the cloud storage server returns an update certificate V update =(sig(H(R)),R′,H(interMBT α )) and sent to a third-party auditing agency; (4) A third-party auditing agency conducts update verification; the third-party auditing agency uses H(interMBT α ) and ∩ α Generate the root node R' of the original nested multi-branch path tree to verify the integrity of the cloud storage server before the data update. If the verification fails, output FALSE. Otherwise, the third-party audit agency continues to verify. The third-party audit agency uses H(interMBT' α ) and ∩ α Generate the root node R'' of the updated nested multi-branch path tree and compare it with R' to verify whether the cloud storage server correctly performs the update operation. If they are consistent, output TRUE, otherwise output FALSE; if the final result is TRUE, the user signs the recalculated root node of the nested multi-branch path tree sig(H(R')) and sends it to the cloud storage server for update. After executing the update operation, delete the user's local data.

6. The big data dynamic update method according to claim 4, characterized in that: Step 6-5) includes: (1) File segmentation: The user first divides the interMBT β Divide into m blocks, and re-encrypt the divided message to obtain Regenerate new file tags: (2) User sends update request: The user sends an update request to the third-party auditing agency, and the third-party auditing agency sends an update request to the cloud storage server; Update request: Where I represents the insertion operation, and α represents the insertion after the αth internal multi-branch path tree; (3) The cloud storage server generates an update certificate; storage Add a new tag set to the file β , recalculate the hash value H(interMBT β ), and regenerate a new root R'; record the auxiliary path from the new file to the root node ∩ β ; The cloud storage server returns an update certificate V update =(sig(H(R)),R′,∩ β )) and sent to a third-party auditing agency; (4) A third-party auditing agency conducts update verification; the third-party auditing agency uses H(interMBT α ) and ∩ α Generate the root node R' of the original nested multi-branch path tree to verify the integrity of the cloud storage server before the data update. If the verification fails, output FALSE. Otherwise, the third-party audit agency continues to verify. The third-party audit agency uses H(interMBT' β ) and ∩ β Generate the root node R'' of the updated nested multi-branch path tree and compare it with R' to verify whether the cloud storage server correctly performs the update operation. If they are consistent, output TRUE, otherwise output FALSE; if the final result is TRUE, the user signs the recalculated root node of the nested multi-branch path tree sig(H(R')) and sends it to the cloud storage server for update. After performing the insertion operation, delete the user's local data.

Citation Information

Patent Citations

  • Dynamic updating method suitable for IDA data recovery on industrial cloud

    CN111966638A

  • Integrity dynamic auditing method based on improved multi-branch tree in cloud environment

    CN113094335A

  • Data dynamic updating method, device and equipment

    CN117851423A

  • Certificateless remote data integrity checking in cloud storage using lattices

    IN201841042685A