Practical cloud storage method and system supporting dynamic operation and multi-user storage proof
The DPOR-MU solution solves the problems of data deduplication, dynamics and multi-user integrity verification in cloud storage systems through Merkel tree technology based on bilinear mapping and rank, and achieves efficient data deduplication and dynamic storage. , reducing computing and storage overhead, and enhancing system flexibility and security.
Patent Information
- Application Number
- CN202111505808.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-12-10
AI Technical Summary
It is difficult to efficiently integrate the characteristics of data deduplication, data dynamics and multi-user data integrity verification in cloud storage systems with existing technology, resulting in excessive computing, communication and storage overhead, and unsynchronized file identification updates, affecting cross-user data Duplicate deletion and file management.
Adopts the DPOR-MU scheme, utilizing key homomorphism based on bilinear mapping and rank-based Merkle tree to support cross-user data deduplication and multi-user data dynamic storage, implemented through Setup, Upload, Update and POR protocols File-level and block-level data deduplication allows different users to share metadata and update files independently, reducing computing, storage and bandwidth overhead for cloud storage providers and users.
It realizes the aggregation of multi-user data tags through the combination of file-level and block-level data deduplication, saving storage space, reducing storage overhead, and enhancing the flexibility and flexibility of the cloud storage system without affecting the confidentiality and integrity of the data. Security against attacks by malicious users and cloud service providers.
Smart Images

Figure CN114398648B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of storage security technology, and in particular relates to a practical cloud storage method and system supporting dynamic operation and multi-user storage certification. Background Art
[0002] At present, with the continuous innovation and breakthroughs in information technology, especially the emergence and development of the Internet of Things, artificial intelligence and cloud computing technologies, data is experiencing explosive growth. According to IDC estimates, by 2020, the amount of data per capita will reach 5,200GB. The emergence of cloud storage provides a solution to this problem, and cloud storage has become the development trend of information storage in the future. Since individuals and enterprises can store, access and seamlessly synchronize data from different devices, cloud storage services have become an indispensable part of daily life and have received widespread attention from academia and industry.
[0003] Since cloud service providers (CSPs) are independent management entities, data outsourcing actually means giving up the ultimate control of the user over the fate of their data. Therefore, availability and integrity become the most important challenges in cloud storage, but data may be corrupted due to hardware defects, software vulnerabilities and human misconduct. Recent incidents of large-scale data loss or severe outages at large cloud service providers have exacerbated these concerns. And in the general cloud storage model, semi-honest CSPs may decide to hide data errors or losses for the sake of profit. Recent studies have shown that deduplication of data across users can save more than 50% of storage costs in standard file systems and up to 90-95% of storage costs in backup applications. Therefore, data deduplication is a common technique used by CSPs to save storage and bandwidth, ideally resulting in customers gaining financial benefits from CSP discounts.
[0004] Currently, the commonly used existing technologies in the industry are as follows: [1], [2], [3], [4], [5] spend a lot of effort to effectively verify the integrity of outsourced data. In these solutions, the owner pre-processes the file before outsourcing, creates a verification tag using secret materials, and then the owner or verifier verifies the integrity of the file.
[0005] However, the above schemes are only applicable to static archival storage, i.e., files that are outsourced and never change. In fact, outsourced data will be frequently updated in real-world cloud storage, such as business transaction logs, editable documents, cloud databases, and hospital health records. Therefore, supporting data dynamics through the most common forms of data operations (such as block modification, insertion, and deletion) is also an important step towards practicality. Later, in order to solve this problem, dynamic versions of the prior PDP / POR schemes [6], [7], [8], [9],
[10] ,
[11] ,
[12] were proposed to support more general storage models. These schemes basically use skiplist or merkle hash tree to achieve data dynamics.
[0006] Inspired by the benefits of data deduplication, many researchers have explored various data deduplication mechanisms on cloud storage platforms
[13] ,
[14] ,
[15] . For security and privacy reasons, critical or sensitive data needs to be uploaded to remote servers in encrypted form. Convergent Encryption (CE)
[16] , Message-Locked Encryption (MLE)
[17] and their variants
[18] ,
[19] ,
[20] ,
[21] ,
[22] aim to support cross-user data deduplication in the encryption domain, ensuring that files can only be accessed by legitimate owners and resisting curious cloud providers.
[0007] [1].F.Armknecht, J.-M.Bohli, GOKarame, Z.Liu, and CAReuter, "Outsourced proofs of retrievability," ACM SIGSAC Conference on Computer and Communications Security, CCS'14, p.831–843, Association for Computing Machinery, 2014.
[0008] [2].KD Bowers, A.Juels, and A.Oprea, "Hail: A high-availability and integrity layer for cloud storage," 16th ACM Conference on Computer and Communications Security, CCS'09, p.187–198, Association Computing Machinery, 2009.
[0009] [3].A.Juels and B.S.Kaliski,“Pors:Proofs of retrievability for largefiles,”14th ACM Conference on Computer and Communications Security,CCS’07,p.584–597,Association for Computing Machinery,2007.
[0010] [4].H.Shacham and B.Waters,“Compact proofs of retrievability,”inAdvances in Cryptology–ASIACRYPT 2008(J.Pieprzyk,ed.),(Berlin,Heidelberg),pp.90–107,Springer Berlin Heidelberg,2008.
[0011] [5].G.Ateniese,R.Burns,R.Curtmola,J.Herring,L.Kissner,Z.Peterson,andD.Song,“Provable data possession at untrusted stores,”in Proceedings of the14th ACM Conference on Computer and Communications Security,CCS’07,(New York,NY,USA),p.598–609,Association for Computing Machinery,2007.
[0012] [6].Q.Wang,C.Wang,K.Ren,W.Lou,and J.Li,“Enabling public auditabilityand data dynamics for storage security in cloud computing,”IEEE Transactionson Parallel and Distributed Systems,vol.22,no.5,pp.847–859,2011.
[0013] [7].G.Ateniese,R.Di Pietro,L.V.Mancini,and G.Tsudik,“Scalable andefficient provable data possession,”in Proceedings of the 4th InternationalConference on Security and Privacy in Communication Netowrks,SecureComm’08,(New York,NY,USA),Association for Computing Machinery,2008.
[0014] [8].C.Erway,A. C.Papamanthou,and R.Tamassia,“Dynamic provabledata possession,”CCS’09,(New York,NY,USA),p.213–222,Association for ComputingMachinery,2009.
[0015] [9].E.Shi,E.Stefanov,and C.Papamanthou,“Practical dynamic proofs ofretrievability,”in 2013 ACM SIGSAC Conference on Computer and CommunicationsSecurity,CCS’13,Berlin,Germany,November 4-8,2013(A.Sadeghi,V.D.Gligor,andM.Yung,eds.),pp.325–336,ACM,2013.
[0016]
[10] .D.Cash,A. and D.Wichs,“Dynamic proofs of retrievabilityvia oblivious RAM,”in Advances in Cryptology–EUROCRYPT 2013,32nd AnnualInternational Conference on the Theory and Applications of CryptographicTechniques,Athens,Greece,May 26-30,2013.Proceedings(T.Johansson andP.Q.Nguyen,eds.),vol.7881 of Lecture Notes in Computer Science,pp.279–295,Springer,2013.
[0017]
[11] .M.Etemad and A. “Transparent,distributed,and replicateddynamic provable data possession,”in Applied Cryptography and NetworkSecurity(M.Jacobson,M.Locasto,P.Mohassel,and R.Safavi-Naini,eds.),(Berlin,Heidelberg),pp.1–18,Springer Berlin Heidelberg,2013.
[0018]
[12] .W.Guo,S.Qin,F.Gao,H.Zhang,W.Li,Z.Jin,and Q.Wen,“Comments on“provable multicopy dynamic data possession in cloud computing systems”,”IEEETransactions on Information Forensics and Security,vol.15,pp.2584–2586,2020.
[0019]
[13] .D.Bhagwat,K.Eshghi,D.D.E.Long,and M.Lillibridge,“Extremebinning:Scalable,parallel deduplication for chunk-based file backup,”in 2009IEEE International Symposium on Modeling,Analysis Simulation of Computer andTelecommunication Systems,pp.1–9,2009.
[0020]
[14] .K.Srinivasan,T.Bisson,G.R.Goodson,and K.Voruganti,“idedup:latency-aware,inline data deduplication for primary storage.,”in Fast,vol.12,pp.1–14,2012.
[0021]
[15] .W.Xia,H.Jiang,D.Feng,and Y.Hua,“Silo:A similarity-locality basednear-exact deduplication scheme with low ram overhead and high throughput.,”in USENIX annual technical conference,pp.26–30,2011.
[0022]
[16] .J.R.Douceur,A.Adya,W.J.Bolosky,P.Simon,and M.Theimer,“Reclaimingspace from duplicate files in a serverless distributed file system,”inProceedings 22nd International Conference on Distributed Computing Systems,pp.617–624,2002.
[0023]
[17] .M.Bellare,S.Keelveedhi,and T.Ristenpart,“Message-lockedencryption and secure deduplication,”in Advances in Cryptology–EURO-CRYPT2013(T.Johansson and P.Q.Nguyen,eds.),(Berlin,Heidelberg),pp.296–312,SpringerBerlin Heidelberg,2013.
[0024]
[18] .M.Abadi,D.Boneh,I.Mironov,A.Raghunathan,and G.Segev,“Message-locked encryption for lock-dependent messages,”in Advances in Cryptology–CRYPTO 2013(R.Canetti and J.A.Garay,eds.),(Berlin,Heidelberg),pp.374–391,Springer Berlin Heidelberg,2013.
[0025]
[19] .M.Bellare and S.Keelveedhi,“Interactive message-lockedencryption and secure deduplication,”in Public-Key Cryptography–PKC 2015(J.Katz,ed.),(Berlin,Heidelberg),pp.516–538,Springer Berlin Heidelberg,2015.
[0026]
[20] .S.Keelveedhi,M.Bellare,and T.Ristenpart,“Dupless:Server-aidedencryption for deduplicated storage,”in 22nd USENIX Security Symposium(USENIXSecurity 13),(Washington,D.C.),pp.179–194,USENIX Association,Aug.2013.
[0027]
[21] .J.Liu, N.Asokan, and B.Pinkas, "Secure deduplication of encrypteddata without additional independent servers," in Proceedings of the 22nd ACMSIGSAC Conference on Computer and Communications Security, CCS'15, (New York, NY, USA), p.874–885, Association for Computing Machinery, 2015.
[0028]
[22] . R.Di Pietro and A.Sorniotti, "Proof of ownership fordeduplication systems: A secure, scalable, and efficient solution," ComputerCommunications, vol.82, pp.71–82, 2016.
[0029] In summary, the problems existing in the prior art are:
[0030] (1) Since most existing technologies only focus on one or two technical issues, the cloud storage model they assume is not general enough and does not match the existing cloud storage system. In addition, the current solutions cannot efficiently integrate data deduplication, data dynamics, and multi-user data integrity verification features in the same system.
[0031] (2) In order to realize certain functions in the existing technology, cloud service providers will spend a lot of computing, communication and storage costs, which may even exceed the cost of storing files. This inefficiency makes current cloud storage providers unwilling to integrate these functions into their own systems.
[0032] (3) In existing technologies that support data dynamics, when data is modified, the file identifier is not updated synchronously, which is not conducive to cross-user data duplication and is also not practical.
[0033] Difficulty in solving the above technical problems:
[0034] (1) As the number of users sharing the same file increases, the metadata storage for each block is considerable. Although public verifiability (POR) allows anyone to challenge the cloud server without using a private key, in practice, different users often do not trust each other. If a malicious user shares his private key with the CSP, the security of other users will be invalidated.
[0035] (2) In the new cloud storage model, dynamic operations on data should also be separated, that is, although the files of different users are deduplicated, they can still update the files individually according to their own wishes.
[0036] The significance of solving the above technical problems: The present invention designs a DPOR-MU scheme to solve the above problems. The DPOR-MU scheme effectively supports cross-user data deduplication and flexible multi-user data dynamic storage. Allowing different users to share metadata of the same file even if they do not trust each other enhances the economic motivation of cloud storage providers to integrate storage proof functions in their products. Although the files of different users are deduplicated, they can still update the files individually according to their own wishes, which increases the flexibility of the cloud storage system and better meets the needs of users in the real world for encrypted cloud storage systems. From the perspective of cloud storage providers, the DPOR-MU scheme can perform file-level and block-level data deduplication for files uploaded by multiple users, while providing proof of storage services with lower resources. From the user's perspective, DPOR-MU allows users to publicly verify the availability / integrity of their files and update files independently. The DPOR-MU scheme is cleverly designed and can significantly reduce the computing, storage and bandwidth overhead of CSPs and cloud users. Moreover, the scheme can resist collusion attacks between malicious users and cloud service providers, as well as users and CSPs. Summary of the invention
[0037] In view of the problems existing in the prior art, the present invention provides a practical cloud storage method and system that supports dynamic operation and multi-user storage proof.
[0038] The present invention is implemented as follows: a practical cloud storage method supporting dynamic operation and multi-user storage proof, the practical cloud storage method supporting dynamic operation and multi-user storage proof comprising:
[0039] Initialize all participants according to the Setup protocol, including users, cloud service providers, and third-party verifiers;
[0040] The Upload protocol is triggered when the client wants to upload data;
[0041] The POR protocol is used by verifiers to assist cloud users in verifying the integrity of data and replicas in the cloud;
[0042] The Update protocol is used by cloud users to update files individually according to their own wishes in a system that implements data deduplication.
[0043] Furthermore, the Setup protocol is used to initialize all participants in the system, including a set of key generation algorithms; first, the system runs The algorithm generates the corresponding public parameters and shares them with all participants, where κ is the security parameter, is a Gap-Diffie-Hellman (GDH) group, p is a κ-bit prime, and g is a generator; then all legitimate users need to run Among them, pk P is the public key, sk P is a private key that accepts as input a public parameter and outputs a public / private key pair (pk P ,sk P ); P, S, and V generate key pairs for authentication and encrypted communication respectively, where P is the data owner, S is the remote cloud server, and V is the third-party auditor; ultimately, each party will keep its private key secret and transmit its public key to other parties in the system.
[0044] Furthermore, the Upload protocol is an interactive protocol running between P and S, as shown in the following formula:
[0045]
[0046] It is used to pre-process the files to be uploaded, complete cross-client data deduplication, and upload the files to S, P as an external package file F = {b1, ..., b m}, and its private key sk P As input, S takes P’s public key pk P ,database and F log files as input, where log F Record F's update and upload logs;
[0047] P hopes to upload F = {b1, ..., b m}To protect privacy, P runs Get the encryption key set and run the Encyypt algorithm Get the ciphertext, P runs Construct a rank-based Merkle hash tree RMHT and obtain an ID F and sig(γ), where ID F As the only handler of F, sig(γ) is the signature of the root γ; before uploading, P will check whether there is any other user with ID F and log F F is stored for source data deduplication; and the block identifier The set of is derived from the ciphertext used for server-side block-level data deduplication. To verify that the outsourced files in the storage server are intact and not damaged as specified in the contract, P executes The algorithm calculates the homomorphic integrity verification tag and uploads the corresponding file to S. After receiving the data, S aggregates the tags and sig(γ) from multiple untrusted users and logs F Update to log F′ ; Finally, S correctly maintains the ciphertext block and metadata; and P deletes the source file F, the corresponding tags, chunk identifiers and RMHT from its local storage.
[0048] Further, the rank-based Merkle tree is constructed in a bottom-up order and includes the rank of each node in the node, and includes algorithms: Location, Verification, Updates;
[0049] Location: Locate the leaf node on the tree based on the block index;
[0050] Verification: The server verifies the integrity of block i for the verifier through the tree;
[0051] Updates: Updates the tree to support clients to perform data operations such as data modification, data insertion, and data deletion.
[0052] Furthermore, the POR protocol allows the verifier V to check whether the file is still completely stored in S, as shown in the following formula:
[0053]
[0054] P outsources the integrity verification of F to V without his / her secret material. V randomly generates a challenge chal and sends it to S. S computes the proof prof according to the requirements of chal using the files and metadata stored in its database. v , and respond to V; on the verification side, V carefully checks prof v The correctness of the data is checked and res = {True, False} is output; if res = True, the data is complete; otherwise, the data is damaged or the calculation process is wrong; V promptly notifies the owner and assists in re-verification or negotiation of claims.
[0055] Furthermore, the Update protocol is an interactive protocol running between P and S, as shown in the following formula:
[0056]
[0057] Used to independently update P's files stored on the server. Common dynamic operations in cloud storage include modification, insertion, and deletion, which are represented by M, I, and D respectively. The flexible data deduplication mentioned involves two cases: (a) the updated file will also create a separate entry; (b) the update operation also triggers data deduplication. If it is determined that the updated file F' already exists, P directly subscribes to the file;
[0058] PThe ID of the file to be updated F , its private key sk P , operation type op, index i and new block b * As input; first, P obtains the key k * And calculate the ciphertext block c * , its identity id * and the marker σ * Then P sends an update request with data to S; S generates the ID of the new file through the Tree F′ , and determine the subsequent operations; S performs different operations for different situations and completes the update for P; S constructs the updated prof u The proof is returned to P; finally, P checks the proof and updates the new root γ′ of Tree′ and its signature sig′(γ′).
[0059] Another object of the present invention is to provide a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the practical cloud storage method that supports dynamic operation and multi-user storage proof.
[0060] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the practical cloud storage method that supports dynamic operation and multi-user storage proof.
[0061] Another object of the present invention is to provide an information data processing terminal, which is used to implement the practical cloud storage method that supports dynamic operations and multi-user storage proof.
[0062] Another object of the present invention is to provide a practical cloud storage system supporting dynamic operation and multi-user storage proof, which implements the practical cloud storage method supporting dynamic operation and multi-user storage proof. The practical cloud storage supporting dynamic operation and multi-user storage proof includes:
[0063] Clients, who use cloud storage services to store data, are used to segment file data, generate encryption keys, encrypt files, upload and download files, delete data, check whether the files stored in the cloud storage server are complete, and dynamically update data;
[0064] Cloud Service Provider (CSP), which is responsible for performing cross-user deduplication and storing files uploaded by clients, while ensuring the integrity and reliability of files, ensuring data availability for all data owners, and executing client deletion requests;
[0065] The third-party auditor TPA is used to trigger the POR protocol to periodically perform data integrity audits for the client.
[0066] Combining all the above technical solutions, the advantages and positive effects of the present invention are as follows: The present invention uses key homomorphism based on bilinear mapping and rank-based Merkle tree to propose a DPOR-MU scheme to effectively support cross-user data deduplication and flexible multi-user data dynamic storage. The DPOR-MU proposed in the present invention is the first solution that simultaneously supports data deduplication, public multi-user storage proof and multi-user data dynamics. Such a cloud storage model can better meet the use needs of individuals and organizations in the real world. DPOR-MU can save storage space in the server by combining file-level and block-level data deduplication and aggregating multi-user data tags without affecting data confidentiality and integrity. Cloud storage providers are more willing to integrate storage proof functions in their products. Compared with existing solutions, the present invention can reduce storage overhead from linear level to constant level (as shown in Table 1) without increasing computing and communication overhead. In addition, the present invention can resist collusion attacks between malicious users and cloud service providers, as well as users and CSPs. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 It is a flow chart of a practical cloud storage method supporting dynamic operation and multi-user storage proof provided by an embodiment of the present invention.
[0068] Figure 2 It is a schematic diagram of the structure of a practical cloud storage system supporting dynamic operation and multi-user storage certification provided by an embodiment of the present invention;
[0069] Figure 2 In: 1. Client (data owner); 2. CSP (cloud service provider); 3. TPA (third-party auditor).
[0070] Figure 3 It is a specific flow chart of modifying the i-th block of F in the Update protocol provided by an embodiment of the present invention.
[0071] Figure 4It is a specific flow chart of the Upload protocol provided by an embodiment of the present invention.
[0072] Figure 5 It is a specific flow chart of the POR protocol provided by an embodiment of the present invention.
[0073] Figure 6 It is a specific flow chart of the Update protocol provided by an embodiment of the present invention.
[0074] Figure 7 This is the preprocessing process of the file F before uploading the file F in the Upload protocol provided in the embodiment of the present invention. DETAILED DESCRIPTION
[0075] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0076] In view of the problems existing in the prior art, the present invention provides a practical cloud storage method and system that supports dynamic operation and multi-user storage proof. The present invention is described in detail below in conjunction with the accompanying drawings.
[0077] like Figure 1 As shown, the practical cloud storage method supporting dynamic operation and multi-user storage proof provided by the present invention includes the following steps:
[0078] S101: The system initializes all participants according to the Setup protocol, including users, cloud service providers, and third-party verifiers;
[0079] S102: When the client wants to upload data, the Upload protocol is triggered;
[0080] S103: The POR protocol is used by the verifier to assist the cloud user in verifying the integrity of the data and copies in the cloud;
[0081] S104: The Update protocol is used by cloud users to update files individually according to their own wishes in a system that implements data deduplication.
[0082] The practical cloud storage method supporting dynamic operation and multi-user storage proof provided by the present invention can also be implemented by ordinary technicians in the industry using other steps. Figure 1 The present invention provides only a specific embodiment.
[0083] like Figure 2 As shown, the practical cloud storage system supporting dynamic operation and multi-user storage proof provided by the present invention includes:
[0084] Client 1, who uses cloud storage service to store data, is used to segment file data, generate encryption keys, encrypt files, upload and download files, delete data, check whether the files stored in the cloud storage server are complete, and dynamically update data;
[0085] CSP (Cloud Service Provider) 2, which is used to perform cross-user deduplication, store files uploaded by clients, and ensure the integrity and reliability of files, ensure data availability for all data owners, and execute client deletion requests;
[0086] TPA (third party auditor) 3 is used to trigger the POR protocol to periodically perform data integrity audits for the client.
[0087] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0088] The practical cloud storage system supporting dynamic operation and multi-user storage certification of the present invention includes a group of clients 1, cloud storage servers 2 and third-party auditors 3. The work performed by each end in the system is as follows: Figure 2 As shown, client 1 (i.e., Users) stores files in CSP. Cloud storage server 2 (i.e., CSP) manages a large amount of storage resources, powerful computing power, and professional administrators, providing flexible and reliable data storage services for individuals or organizations. TPA (third-party auditor) 3 has professional capabilities and resources to replace data owners to perform data integrity audits regularly.
[0089] The core of the system includes Setup, Upload, Upload*, Update operations and POR protocol. Through the above operations and protocols, as well as the rank-based Merkle hash tree (RMHT) obtained by improving the traditional Merkle hash tree in the present invention, cross-user data deduplication, multi-user storage proof and flexible data dynamic storage can be completed, so that cloud providers can effectively prove the integrity of the data stored on them to customers. And it can resist curious or malicious system parties.
[0090] Among them, the rank-based Merkle hash tree (RMHT) obtained by improving the traditional Merkle hash tree in the present invention is an efficient data structure that supports data dynamics. Each node v of the RMHT stores two pointers, the left child and the right child, represented by lft(v) and rgt(v), respectively. Please note that a leaf node has no child nodes, so lft(v)=null, rgt(v)=null. In addition, in this construction, each node v of the RMHT stores the number of leaf nodes associated with v. The present invention calls this value the rank of v and represents it with r(v). In addition, the node v also stores a label l(v), which is calculated by applying an anti-collision hash function (i.e., l(v)=h(l(lft(v)), l(rgt(v)), r(v))). Although MHT is generally used to verify the value of a data block, in the proposed scheme, the present invention further uses MHT to verify the value and position of the data block. Assume that the file F and the RMHT of the file are now stored on a semi-honest server, and the order of the leaf nodes (i.e., from left to right) indicates the order of the file blocks. That is, the leftmost node of the RMHT is associated with the first block. The value of node A is l(A)=h(H(c1),1), where 1 is the rank of the leaf node. In the second level, the children of node E are node A and node B, and its label is l(E)=h(l(A), l(B),2), where 2 is the rank of node E. If the Merkle tree has only four leaves, then the rank of the RMHT root is 4. Note that the RMHT is built from the bottom up, so for a non-leaf node v, r(v)=r(lft(v))+r(rgt(v)). RMHT contains algorithms: Location, Verification, Updates.
[0091] Location: Both verifying integrity and updating the tree require locating the location of the leaf node on the tree based on the block's index. The server then first executes an algorithm to find the leaf node for later verification or update operations.
[0092] Verification: The verifier wishes to verify the integrity of block i, so it sends a verification request to the server, which executes the algorithm. It first determines which leaf in the RMHT the i-th block corresponds to. The server then constructs the set of peers of this leaf (i.e., the peers of the nodes on the path from the leaf to the RMHT root R), denoted as Ω i = {vx, ..., v k}, where k is the depth of the leaf (the root depth is zero). Finally, the server returns the MHT verification proof Π(i) = {H(c i ),Ω i} to the verifier. The verifier uses Π(i) to generate a root R′ and checks its correctness by comparing it with R.
[0093] Updates: In the solution of the present invention, possible data operations include data modification (i.e., modifying the i-th block), data insertion (i.e., inserting a new block after a given block i), and data deletion (i.e., deleting the i-th block). For data modification, the operation is relatively simple. Suppose the client wants to update the i-th block c i Modified to c′ i The server uses the positioning algorithm to locate the i-th leaf and places h(H(c i ), 1) is replaced by h(H(c′ i ), 1), and then regenerate a new root R′. Finally, the server generates a brother node set Ω i And prove it with prof u ={Π i , R′} to respond to the client for update, the client will verify the update and update the root R with R′.
[0094] Compared with data modification that does not change the logical structure of the customer data file, another general form of data operation, data insertion, refers to inserting a new block after some specified position in the data file F. Suppose the customer wants to insert a new block after the i-th block c i Then insert block c * In this scheme, for insertion, the present invention defines rules: 1) the original i-th leaf node is no longer a leaf node, but a parent node of the original i-th block and the inserted block; 2) the inserted block is a peer node of the original i-th block, and the inserted node must be the right child. Obviously, only a part of the nodes are affected by the insertion operation. The server will add a leaf h(H(c * ), 1) After the leaf h(H(c1), 1) in the RMHT, a new root R′ is regenerated according to the above rules. Finally, as with the above modification, the server generates a proof and proves it to the client, and the client uses R′ to update the root R.
[0095] Data deletion is the opposite of data insertion. For deletion, the present invention also defines rules: the deleted leaf node is deleted from the RMHT, and its parent node is replaced by its remaining peer node. At the same time, the remaining nodes are adjusted according to the deletion rule, where the label value of the node affected by the operation is changed. The details of the procedure are similar to those of data modification and insertion, so they are omitted here.
[0096] The relevant interactive protocols in the system are described as follows:
[0097] (1) Setup protocol: In DPOR-MU, a multi-signature scheme based on BLS signature is adopted. To this end, the system executes the Init algorithm to deploy a group with a prime order p of the generator g. And a computable efficient bilinear map After that, each client P participating in the scheme needs to prepare a pair of signing and verification keys. More precisely, P selects a random And by calling KeyGen P To calculate y←g x mod p. In this scheme, the present invention assumes that the communication between all participants in the system is authenticated and encrypted in advance. Therefore, P, S, and V generate their key pairs to authenticate and encrypt the communication respectively. Finally, each party keeps its private key in secret and transmits its public key to other parties in the system.
[0098] (2) Upload protocol: Whenever a client P wishes to upload a file F = {b1, ..., b m}, the Upload protocol will be triggered. First, P runs KeyGen Enc To obtain the encryption key set for each block More precisely, for each block, k i =H(b i )(1≤i≤m). Calculate the message-based key. Next, P executes the Encrypt algorithm to encrypt block b i (1≤i≤m) Generate ciphertext block where c i ←Enc(k i , b i ).
[0099] Then, P in the ciphertext A rank-based Merkle hash tree is constructed on the blocks of i (i=1,...,m) hash ordered set, i.e. l(v i )=h(c i , 1). Get the root γ of RMHT and assign the identity of F as the root of RMHT, i.e., ID F =γ. P sends ID to S F , then S checks for the ID F The corresponding file has been stored by other users. Now, according to the query results, there are two situations: (a) the file has not been stored before, (b) the file has been stored by another owner. In the latter case, the user will continue to perform the Upload * protocol.
[0100] The present invention proposes the concept of ancestor file, which represents the initial version of the file in S. Although the file has been updated, its ancestor (ID A ) does not change, so the ID of F A is ID FP signs the root under the private key. That is, sig(γ)←h1(γ) x . Similar to most schemes, each ciphertext block has a length of s sectors, where each sector is An element of ij where 1≤i≤m, 1≤j≤s. For 1≤j≤s, the group element is pseudo-randomly extracted from the replica, u j =h2(ID A , j). A third-party auditor V or a subsequent uploader of the file can use the public parameter ID A Generate {u j} j=1,...,s In addition, P calculates the block identifier for the block-level data in S in
[0101] Next, for the subsequent integrity verification of F, P executes the TagGen algorithm to obtain the verification tag set. Similar to the BLS scheme, for each block index i∈{1,...,m}, the verification tag σ i The calculation of is as follows:
[0102]
[0103] Then, the tag set Note that σ i This effectively represents the BLS signature under private key x of the following value:
[0104]
[0105] After TagGen, user P sends the cloud service provider S
[0106] After receiving this data, S first checks the validity of the uploaded tag. More specifically, the cloud service provider S samples each block index i as a random index And check that the following validations hold:
[0107]
[0108] where ω i is calculated by S based on public knowledge and ciphertext blocks. If the key and tag are correct, S will create a log file consisting of tuples to store F's verification key. Each tuple contains two sets, the former is the public key set, and the other is the index set, indicating that the verification key corresponding to the block in the latter is composed of the key in the former. Here, log F Use {({pk P}, {1, ..., m})} initialized.
[0109] After that, S returns P a file access link, which can be accessed through the file identifier and the log file log F Retrieve files. To ensure log F To verify the correctness of the key, P checks whether his / her public key is in the log F Finally, P can delete the source file F, its ciphertext blocks, and the corresponding tags from its local storage. However, P stores the ID of the file locally. F 、ID b , Log used to generate verification keys F , and for subsequent generation of values {u j} j=1,...,s The ID of the ancestor file A .
[0110] (3) Upload* protocol: Due to data deduplication on the source side, this protocol is not used to upload the file twice, but to update the verification tag and the root of the RMHT, which allows the new client P to obtain file guarantees.
[0111] First, S takes the ID of file F A Return to P. Similar to the Upload protocol, P generates an encryption key set And calculate the ciphertext set Block ID b , file verification mark and the signature tree root set sig(γ). Note that due to the sameness of the files, {u j} j=1,...,s Same as the previous owner. However, unlike the Upload protocol, P only Upload to S.
[0112] Upon receiving After that, S still checks the correctness of the newly uploaded tags. Of course, S can perform tag verification using the methods in the Upload protocol, but this may require S to recalculate or store the value ω i . Stored The verification tags of are correct because S has verified them before and S has no motivation to damage them. The fact shows that S can upload the tags T = {σ1, ..., σ m} and the labels already stored in S Cross validation is applied between . Assume in So the key set in To perform batch verification, S samples a portion of blocks (e.g., ξ blocks), considering the index of each block as i, where 1≤i≤ξ. S then selects a random index And check whether the following are equal:
[0113]
[0114] If they are not equal, the subscription is rejected. If they are equal, the tag is correct. The same method is used to verify the correctness of sig(γ). After successful verification, S needs to update log F , and sig′(γ) to ensure that POR is successful across multiple users. More precisely, for the tag S with σ i ·σ i ′ updates them. Similarly, S updates them by replacing the stored signature sig′(γ) with sig′(γ)·sig(γ) and by replacing pk P Append to each tuple To update the log F .
[0115] Finally, S sends the file access link and log to the user. F Similar to the Upload protocol, P checks whether his / her public key is in the log F , and deletes the source file, its ciphertext blocks, and the corresponding markers.
[0116] (4) POR Protocol: The purpose of the POR protocol is to allow a trusted verifier V (or owner) to check whether a file is still completely stored in S by querying the server S and verifying the response from S. First, to help the owner P prove the integrity of F, V needs to calculate a set of verification keys and RMHT's authentication key pk γ Although P or V stores log locally F , but new users can also deduplicate the same file. Therefore, V downloads the current And check if all Contains pk P If yes, then the verification key set is and in is log′ F The last one.
[0117] V then creates a random challenge chal = {l, k1, k2} and sends it to S, where l is the number of blocks to be challenged. k1 (PRPπ) and k2 (PRFψ) are new keys randomly selected in each challenge. Both V and S can use π keyed with k1 and ψ keyed with k2 to generate a set Q = {(i, v i )},in and
[0118] After receiving chal and generating set Q, S calculates:
[0119]
[0120] Where 1≤j≤s, and:
[0121]
[0122] in In addition, S also prepares the RMHT verification proof Π = {Π(i)|1≤i≤l} as described in Section IV-B. Finally, the proof prof v ={{μ θ,1 , ..., μ θ,s},σ,sig(γ),Π} are sent back to V.
[0123] On the validator side, V also obtains the set Q and uses ID A Generate u i First, V builds the RMHT using the knowledge of Π and generates the root γ′. Then, V authenticates it by checking the equality of the following equation:
[0124] e(sig(γ), g) = e(γ′, pk γ )
[0125] If authentication fails, V will reject by returning False, otherwise V will further verify the equality of:
[0126]
[0127] If they are equal, the output is True; otherwise, the output is False. If this validation fails, V determines that the file has been modified and takes action, such as notifying the user or downloading and rewriting the file.
[0128] (5) Update protocol: Common dynamic operations in cloud storage include modification, insertion, and deletion. Assume that F is shared by multiple users and P is valid. P intends to modify the i-th block, insert a new block after the i-th block, or delete the i-th block, while other users do not do so. Obviously, modification and insertion require the preparation of the corresponding data block b.* , but the deletion operation is not supported. For modification and insertion, P uses KeyGen Enc Generate key k * And get the ciphertext block c * ←Enc(k * , b * ). Then, P calculates the block identifier id according to the Upload protocol * and label σ * , from ID A Extract the value {u j} j=1,...,s . Update request update = {op, i, [c * , id * , σ * ]} is sent to S, where op can be M, I, or D. If op = D, the data in square brackets is not needed.
[0129] For example, P modifies the i-th block to b * Then update = {M, i, c * , id * , σ *} is sent to S. S is based on {c1, ..., c i-1 , c * , ..., c m Generate a new RMHT and obtain the modified ID F′ Then, S checks whether it has stored a F′ If the file F′ does not exist, S will create one with ID F′ The new file entry of the index, that is, F′={c1,...,c i-1 , c * , ..., c m In fact, F will not be modified, nor will the data blocks in it be copied, but these blocks are pointed to by pointers to ID F or ID F′ . S create log F′ and initialize it as in Assume that index i is in Then, S log F′ Append a tuple ({pk P}, {i}), and from Delete i from Then, S will be a tuple ({pk P}, i) append to log F′ .Right now Finally, S updates prof u ={Πi ,sig(γ),ID F′ , log F′} proof response P, where Π i , sig(γ) is located at ID F RMHT. P first uses Π i Generate the root γ of RMHT and generate in yes The second to last digit of . And by checking e(sig(γ), g) = e(γ, pk γ ) to verify the root. If true, P is verified by using {Ω i , H(c i )} Calculate the new root γ′ and compare it with ID F′ A comparison is performed to check whether the server has performed the modification as requested. P then signs the new root and sends it to S.
[0130] If the file F′ already exists, S uses the cross-validation method to verify the label σ * And register P with F′. S will mark σ i Replace with σ i ·σ * And by pk P Append to the last tuple To update the log F′ In addition, S uses the updated prof u ={Π i ,sig(γ),ID F′ , log F′}’s proof response P, P verifies the update and sends the signature sig(γ′) to S. Finally, S verifies the signature and replaces it with sig(γ′)·sig′(γ′).
[0131] The whole process of insertion and deletion is the same as the modification process. Note that the index of the file block changes during the insertion or deletion process, and S is managed separately using two sets of indexes.
[0132] The technical effects of the present invention are described in detail below in conjunction with simulations.
[0133] The present invention simulates and implements DPOR and evaluates its performance in detail. The present invention uses C / C++ language and OpenSSL and PBC cryptographic libraries to implement the prototype system of DPOR, and uses MySQL database as the backend data storage system to store metadata information related to each file. This experiment simulates the client, verifier and cloud server on three independent machines, all of which run on Ubuntu 16.04LTS systems with a CPU of 3.10GHz Intel Core i9-9900 and a memory of 16GB. The wired connection communication bandwidth between them is set to 100Mbps, and Socket is used for communication. This experiment also uses multiple computers as clients to upload, download, integrity audit, and update a large number of files on the same server host to evaluate the overall performance of the system, and simulates various malicious behaviors such as tampering, forgery, and destruction of servers and malicious users. Under normal circumstances, users can correctly restore and audit their files, and once the server makes any malicious behavior, the audit will fail. The experimental results show that the communication and computing overhead of the system is similar to the existing scheme, which is acceptable, and the storage overhead meets the requirements of Table 1, which is greatly improved compared with other schemes.
[0134] Table 1
[0135]
[0136] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.
[0137] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.
Claims
1. A practical cloud storage method that supports dynamic operations and multi-user storage proofs, It is characterized in that The practical cloud storage method supporting dynamic operation and multi-user storage proof includes: Initialize all participants according to the Setup protocol, including users, cloud service providers, and third-party verifiers; The Upload protocol is triggered when the client wants to upload data; The POR protocol is used by verifiers to assist cloud users in verifying the integrity of data and replicas in the cloud; The Update protocol is used by cloud users to update files individually according to their own wishes in the system that implements data deduplication; The Setup protocol is used to initialize all participants in the system, including a set of key generation algorithms; first, the system runs The algorithm generates the corresponding public parameters and shares them with all participants, where κ is the security parameter, is a Gap-Diffie-Hellman (GDH) group, p is a κ-bit prime, and g is a generator; then all legitimate users need to run Among them, pk P is the public key, sk P is a private key that accepts as input a public parameter and outputs a public / private key pair (pk P ,sk P ); P, S, and V generate key pairs for authentication and encrypted communication respectively, where P is the data owner, S is the remote cloud server, and V is the third-party auditor; eventually, each party will keep its private key secret and transmit its public key to other parties in the system; The Upload protocol is an interactive protocol running between P and S, as shown in the following formula: It is used to pre-process the files to be uploaded, complete cross-client data deduplication and upload the files to S, P outsourcing the files F = {b 1 , ..., b m }, and its private key sk P As input, S takes P’s public key pk P ,database and F log files as input, where log F Record F's update and upload logs; P hopes to upload F={b 1 , ..., b m }To protect privacy, P runs Get the encryption key set and run the Encrypt algorithm Get the ciphertext, P runs Construct a rank-based Merkle tree RMHT and obtain the ID F and sig(γ), where ID F As the only handler of F, sig(γ) is the signature of the root γ; before uploading, P will check whether there is any other user with ID F and log F F is stored for source data deduplication; and the block identifier The set of is derived from the ciphertext used for server-side block-level data deduplication. To verify that the outsourced files in the storage server are intact and not damaged as specified in the contract, P executes The algorithm calculates the homomorphic integrity verification tag and uploads the corresponding file to S. After receiving the data, S aggregates the tags and sig(γ) from multiple untrusted users and logs F Update to log F′ ; Finally, S correctly maintains the ciphertext block and metadata; and P deletes the source file F, the corresponding tags, chunk identifiers and RMHT from its local storage; The rank-based Merkle tree is constructed in a bottom-up order and contains the rank of each node in each node, and includes algorithms: Location, Verification, Updates; Location: Locate the leaf node on the tree based on the block index; Verification: The server verifies the integrity of block i for the verifier through the tree; Updates: Updates the tree to support clients to perform data operations such as data modification, data insertion, and data deletion; The POR protocol allows the verifier V to check whether the file is still completely stored in S, as shown in the following equation: P outsources the integrity verification of F to V without his / her secret material. V randomly generates a challenge chal and sends it to S. S computes the proof prof according to the requirements of chal using the files and metadata stored in its database. v , and respond to V; on the verification side, V carefully checks prof v The correctness of the result is checked and the output is res = True, False}; if res = True, the data is complete; otherwise, the data is corrupted or the calculation process is wrong; V notifies the user in time and assists in re-verification or negotiation of claims; The Update protocol is an interactive protocol running between P and S, as shown in the following formula: Used to independently update P's files stored on the server. Common dynamic operations in cloud storage include modification, insertion, and deletion, which are represented by M, I, and D respectively. The flexible data deduplication mentioned involves two cases: (a) the updated file will also create a separate entry; (b) the update operation also triggers data deduplication. If it is determined that the updated file F' already exists, P directly subscribes to the file; PThe ID of the file to be updated F , its private key sk P , operation type op, index i and new block b * As input; first, P obtains the key k * And calculate the ciphertext block c * , its identity id * and the marker σ * Then P sends an update request with data to S; S generates the ID of the new file through the Tree F′ , and determine the subsequent operations; S performs different operations for different situations and completes the update for P; S constructs the updated prof u The proof is returned to P; finally, P checks the proof and updates the new root γ′ of Tree′ and its signature sig′(γ′).
2. A computer device, It is characterized in that The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the practical cloud storage method supporting dynamic operation and multi-user storage proof as described in claim 1.
3. A computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to execute the steps of the practical cloud storage method supporting dynamic operation and multi-user storage proof as described in claim 1.
4. An information data processing terminal, It is characterized in that The information data processing terminal is used to implement the practical cloud storage method supporting dynamic operation and multi-user storage certification as described in claim 1.
5. A practical cloud storage system supporting dynamic operation and multi-user storage proof, which implements the practical cloud storage method supporting dynamic operation and multi-user storage proof as claimed in claim 1, It is characterized in that Implementing practical cloud storage that supports dynamic operations and multi-user storage proofs includes: Clients, who use cloud storage services to store data, are used to segment file data, generate encryption keys, encrypt files, upload and download files, delete data, check whether the files stored in the cloud storage server are complete, and dynamically update data; Cloud Service Provider (CSP), which is responsible for performing cross-user deduplication and storing files uploaded by clients, while ensuring the integrity and reliability of files, ensuring data availability for all data owners, and executing client deletion requests; The third-party auditor TPA is used to trigger the POR protocol to periodically perform data integrity audits for the client.
