A secure cloud data deduplication method and system based on trusted hardware
By using trusted hardware for data encryption and label generation in the cloud storage platform, combined with blind signature and ORAM technology, the security and integrity problems of the data deduplication scheme in the existing technology in an untrusted environment are solved, and high efficiency is achieved. and secure data deduplication process.
Patent Information
- Application Number
- CN202110473917.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-04-29
AI Technical Summary
Existing data deduplication solutions lack security in untrusted environments, cannot effectively protect data integrity and privacy, and are at risk of malicious attacks, leading to user information leakage and data damage.
Adopt a secure cloud data deduplication method based on trusted hardware to ensure the security of communication between users and the cloud storage platform through data encryption, label generation and blind signature technology, and use trusted hardware areas for remote authentication and key generation to achieve Symmetric encryption and block-level deduplication, combined with ORAM and limited field technology for tag comparison, ensure the safe transmission and storage of data.
It ensures the security and integrity of data in the cloud storage platform, prevents malicious attacks and data leaks, improves deduplication efficiency and security, avoids offline dictionary attacks, and ensures the privacy and ownership of user files.
Smart Images

Figure CN113918528B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data deduplication, and in particular relates to a secure cloud data deduplication method and system based on trusted hardware. Background Art
[0002] There is a lot of redundant data in the massive data, and these duplicate data waste the storage space in the cloud server. In order to relieve storage pressure and reduce network communication overhead, data deduplication technology is applied to cloud storage systems. This technology only retains one backup of the same file in the cloud storage, which greatly saves storage costs.
[0003] Defects and shortcomings of the existing technology:
[0004] 1. Data deduplication solutions often require frequent communication between the client and the server. Most existing solutions lack consideration for data security in untrusted environments. User information may be stolen by adversaries during the deduplication process, and the original data and privacy information may be leaked.
[0005] 2. Existing solutions often lack the guarantee of data integrity. Malicious users may upload data that is inconsistent with the label, and semi-trusted cloud storage platforms may damage outsourced data due to external and internal attacks, so the integrity of the data may be destroyed;
[0006] 3. How to ensure the security of communication between users and servers and prevent malicious attacks during the communication process is a difficult problem in the deduplication solution. Summary of the invention
[0007] The purpose of the present invention is to provide a secure cloud data deduplication method and system based on trusted hardware to solve the above problems.
[0008] To achieve the above object, the present invention adopts the following technical solutions:
[0009] A secure cloud data deduplication method based on trusted hardware includes the following steps:
[0010] First, the original file is encrypted and a label is generated, and then the encrypted file and the corresponding label are sent to the cloud storage platform. After the cloud storage platform detects the duplication of the label, it stores the encrypted file without the same copy and grants the permission to the file.
[0011] Furthermore, the trusted hardware area equipped by the cloud storage platform is a completely trusted server, and each set up trusted hardware contains a unique sealing key s k; The user first generates a hash of the original data, and after successful remote authentication with the trusted hardware, the hash is sent to the trusted hardware, and then the enclave uses the sealing key s k The file hash is blindly signed, and the user unblinds it after receiving it, and uses the resulting secure signature as the encryption key; the same file hash obtains the same signature in the same trusted hardware, and the same file will generate the same encryption key. Symmetric encryption is used to encrypt file data to ensure the feasibility of data deduplication.
[0012] Furthermore, the file segmentation and aggregation step is performed in the Client. First, the file length is compared with the size relationship of α in the public parameter. If it is less than α, there is no need to perform the file segmentation and aggregation process, and the hash h of the entire file is directly generated. Otherwise, segmentation and aggregation are performed to calculate Indicates the number of block sets, Round up, determine the number of blocks in the block set based on m in Pub, and generate block set B i , and calculate the hash h i .
[0013] The key generation step is completed by the Client and CEnclave together. First, the two perform remote authentication. If the authentication fails, an error message is returned. If successful, the process continues. The Client determines whether the file is divided into blocks according to the previous step, and sends the file hash or block set hash to CEnclave. CEnclave uses the sealing key s_k in the trusted area to perform blind signatures. After receiving the blind signature, the Client unblinds it and calculates the file encryption key and block set encryption key respectively using the following formulas.
[0014] k=h′·r -1 (mod N)
[0015] The data encryption step is completed by the Client, using symmetric encryption to encrypt files or block sets respectively, and using the corresponding encryption key generated in the previous stage to complete the encryption process, as described in the following formula; after the data encryption is completed, the ciphertext is temporarily stored in the Client;
[0016] C=Enc(k F ,F).
[0017] Furthermore, label generation is divided into two parts: file label generation and block set label generation; a file name is generated for the file in a finite field, and the corresponding block set index value is generated using the index, the value is mapped to the finite field, and the corresponding verification value is calculated, and the verification value can be used for the subsequent label consistency detection process.
[0018] Furthermore, it is divided into three steps: file tag generation, block set tag generation, and tag set generation; all three steps are executed in the Client;
[0019] In the file tag generation step, first set a file name name in the finite domain. F , then generate the file tag T F =H(F); block label generation step, use the corresponding file name name F , the random seed x and block set index i selected above, generate the verification value β i =f(name F , x, i), and β i Mapping onto the generators of the multiplicative group: Then, a second verification value Δ is generated based on the previous verification value and the block set data. i As the formula Finally, the label set generation process is performed to generate the label set T as shown in the formula The tag set T generated later will be sent by the Client to the CEnclave.
[0020] Furthermore, duplicate detection is divided into two parts: file label comparison and block set label comparison. If there are duplicate file labels, the process ends and no storage process is required. If there are no duplicate file labels, the block label comparison continues. After the comparison is completed, a string is generated, which records whether there are identical copies of all block sets. Ciphertext data is uploaded based on this string to complete the data deduplication process. The ORAM reading method is used in the file label comparison process. When searching for block set labels, explicit reading is performed directly to achieve a balance between deduplication efficiency and time overhead.
[0021] Furthermore, in the duplicate detection step, CEnclave receives the tag set T and first compares the file tags using the ORAM reading method. If the same file copy exists, there is no need to perform the subsequent upload and storage process, and the process ends directly and proof of ownership is performed; if the same file tag does not exist, the block set tags are compared. If at least one block set tag is equal, a string s is created: s = s1s2…s d , when there is a block set label T in the cloud storage s =T i Time, time i =1, otherwise s i = 0; if no block set label is equal, let s = null; thus the string s records the repeated information of the block label;
[0022] In the step of generating data to be uploaded, the ciphertext C′ of the data to be uploaded is generated according to the string s. If s is not null, the corresponding block set is filled in according to the information recorded in the string s to generate C′=C1′C2′…C d ′; if s is null, it means that there is no repeated block set, and the ciphertext C′=C1,C2…C d , fill in all block set ciphertexts; then the Client transmits the ciphertext to be uploaded to the cloud storage platform.
[0023] Further, a secure cloud data deduplication system based on trusted hardware includes a data encryption module for encrypting data of an original file;
[0024] The label generation module is used to generate labels for the original files;
[0025] The deduplication module is used to send the encrypted files and corresponding tags to the cloud storage platform. After the cloud storage platform detects the duplication of the tags, it stores the encrypted files without identical copies and grants the permissions to the file.
[0026] Compared with the prior art, the present invention has the following technical effects:
[0027] The present invention configures a secure trusted hardware area TH in the cloud storage platform. All algorithms and operations related to user file privacy will be implemented in the trusted hardware, and the code running in it is called CEnclave. Before the user communicates with the cloud storage platform, he must perform remote authentication with TH to ensure the secure transmission of data. After TH receives the data transmitted by the user, it will perform ORAM implicit reading with the cloud storage server CSS to achieve a secure deduplication process.
[0028] In this solution, different granularity deduplication modes are implemented for files of different sizes. If the amount of file data uploaded by the user is not large, or the user data has a high degree of privacy and is unwilling to perform cross-user file block deduplication, there is no need to process these files in blocks, and the label of the entire file is directly generated and duplicate detection is performed; if the user's file data volume is large and there is no special privacy requirement, a block-level deduplication solution is implemented for it, and duplicate detection is performed using block labels as the deduplication granularity. After file segmentation, the user's files are first subjected to file-level duplicate detection, and then block-level duplicate detection is performed, so as to achieve the best deduplication efficiency.
[0029] In this scheme, the convergent key of the file is signed by TH, which uses the sealed key to blindly sign the key. After receiving the signature, the client deblinds it and obtains a unique and private key. Since users with the same file will definitely generate the same key, our scheme generates an encryption key that supports deduplication while avoiding offline dictionary attacks.
[0030] This solution implements fine-grained block-level deduplication. Although it increases the complexity of the algorithm and the execution time, it improves the efficiency of cross-user deduplication. In order to achieve a balance between deduplication efficiency and running time, this solution adopts a design that divides the file into blocks and then aggregates them into block sets. The size of the file block and the number of data blocks in the block set are determined by system parameters. This setting makes the system highly flexible. In actual applications, different system parameter settings can be made according to different situations to achieve different final effects.
[0031] This solution takes security protection into consideration for the tag search process, and implements two different solutions for file-level and block-level tag search. The security zone within TH is an absolutely trusted area, so the user's tags can be exposed in the trusted area of TH while CSS needs to be hidden. For the file-level deduplication process, the data tags are transmitted from the client to TH through a secure channel, and CEnclave reads the file tag list stored in CSS through ORAM's hidden reading method, which is then used for tag comparison; for block tags that do not have duplicate file tags, there are no identical file tags and all file blocks of the file in the cloud storage at this time, and CSS and malicious third parties cannot guess the original file's tag and plaintext. If the ORAM reading method is used when the number of blocks is large, the efficiency will decrease. Therefore, this solution adopts an explicit reading method for duplicate block tag detection to achieve a balance between security and efficiency;
[0032] In the ownership proof phase, if there is an identical file tag, ownership proof is required. The server issues a challenge to the client. The client generates the file's signature private key and signature public key, and finally aggregates them into a file signature and sends them to the server. The server finds the signature corresponding to the file tag and aggregates them. Finally, it compares it with the received signature. If they are consistent, it proves that the user owns the file. In order to prevent data forgery attacks, this scheme designs a label consistency detection process before storing data to prove that the ciphertext of the block set is generated from the corresponding ciphertext. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 System model of secure cloud data deduplication solution based on trusted hardware;
[0034] Figure 2 The interaction process between trusted hardware and cloud storage server;
[0035] Figure 3 File segmentation and aggregation process;
[0036] Figure 4 This is a schematic diagram of the data initialization phase and the data deduplication phase;
[0037] Figure 5 Schematic diagram of the proof of ownership phase;
[0038] Figure 6 Schematic diagram of data storage stage;
[0039] Figure 7 Schematic diagram of the file download phase. DETAILED DESCRIPTION
[0040] The present invention is further described below in conjunction with the accompanying drawings:
[0041] A new data encryption algorithm, label generation algorithm and duplicate detection algorithm are proposed. The process of data deduplication is to first encrypt the original file and generate a label, then send the ciphertext and the corresponding label to the cloud storage platform. After the cloud storage platform detects the duplicate labels, it stores the ciphertext without the same copy and grants the corresponding user the permission to the file. This article will explain the above three algorithms in detail. In order to simplify the description, the symbols and meanings used in this chapter are first defined in Table 1:
[0042] Table 1 Symbols and meanings
[0043]
[0044] In the secure deduplication solution based on trusted hardware proposed in this paper, since the data encryption algorithm and label generation algorithm need to use several cryptographic algorithms, a series of public parameters need to be generated during system initialization to be provided to users, trusted hardware, and cloud storage servers. The system setup function SysSetup describes the public parameter generation process of this solution in the system setup phase. This phase needs to be performed and published by the cloud storage platform, and the generated public parameters need to have a security parameter as input.
[0045] SysSetup(λ)→(Pub): This function is publicly executed in the system and inputs the security parameter λ. First, a prime number q is randomly generated such that The DLP complexity of is at least λ bits; choose a secure hash function H(·): A multiplicative group of order q g and g1 are Generator of ; a pseudo-random function f(·): (k< λ); select a length α to distinguish whether a file is divided into blocks; select a fixed block length l; select the number of blocks m contained in a block set. Generate the public parameter Pub as shown in formula (1-1).
[0046]
[0047] Secondly, the user's public key and private key are needed for calculation in the tag generation algorithm and subsequent verification process. Therefore, the key generation function KeyGen describes the user key generation process in this solution. This process is completed by the Client to generate a key pair for this user (sk c ,pk c ).
[0048] KeyGen(p)→(sk c ,pk c ): This algorithm is executed in the Client and the public parameter p is input. When the file length is greater than length, the Client randomly selects a Calculate Randomly select n random numbers Select the results obtained from the above calculations, and we get the private key of the Client as shown in formula (1-2), and the public key as shown in formula (1-3).
[0049]
[0050]
[0051] (1) Data encryption algorithm
[0052] Data encryption is an important algorithm for deduplication schemes. In order to ensure the privacy of user data, it is necessary to ensure that the same plaintext can be encrypted to generate the same ciphertext. Traditional message-locked encryption algorithms use deterministic symmetric encryption and use file hashes as encryption keys. Therefore, the same plaintext will always generate the same plaintext, but it is extremely vulnerable to brute force offline dictionary attacks. Therefore, this scheme proposes a new data encryption algorithm that introduces a blind signature algorithm to ensure the security and uniqueness of the encryption key, while ensuring that the same file can generate the same ciphertext.
[0053] In this scheme, the trusted hardware area equipped by the cloud storage platform can be regarded as a completely trusted server, and each set up trusted hardware contains a unique sealing key s that cannot be stolen by the adversary. k The user first generates a hash of the original data, and after successful remote authentication with the trusted hardware, the hash is sent to the trusted hardware, and then the enclave uses the sealing key s kThe file hash is blindly signed, and the user unblinds it after receiving it, and uses the obtained security signature as the encryption key. The same file hash can always get the same signature in the same trusted hardware, so the same file will always generate the same encryption key, and symmetric encryption is used to encrypt file data to ensure the feasibility of data deduplication.
[0054] The file block aggregation step is performed in the Client. First, the file length is compared with the size relationship of α in the public parameter. If it is less than α, there is no need to perform the file block aggregation process, and the hash h of the entire file is directly generated; otherwise, block aggregation is performed and the hash h of the entire file is calculated. Indicates the number of block sets, Round up, determine the number of blocks in the block set based on m in Pub, and generate block set B i , and calculate the hash h i .
[0055] The key generation step is completed by the Client and CEnclave. First, the two perform remote authentication. If the authentication fails, an error message is returned. If successful, the process continues. The Client determines whether the file is divided into blocks based on the previous step, and sends the file hash or block set hash to CEnclave. CEnclave uses the sealed key s in the trusted area. k Blind signatures are performed separately, and after receiving the blind signature, the client unblinds it and calculates the file encryption key and block set encryption key respectively as shown in formula (1-4).
[0056] k=h′·r -1 (mod N) (1-4)
[0057] The data encryption step is completed by the Client, using symmetric encryption to encrypt files or block sets respectively, and using the corresponding encryption key generated in the previous stage to complete the encryption process, as shown in formula (1-5). After the data encryption is completed, the ciphertext is temporarily stored in the Client.
[0058] C=Enc(k F ,F) (1-5)
[0059] (2) Label generation algorithm
[0060] Label generation is an important algorithm in the deduplication scheme. In order to ensure the integrity of user data, it is necessary to ensure that the corresponding label is generated from the data, and the integrity of the data can be verified from the label. Since this scheme implements file-level + block-level data deduplication, label generation is divided into two parts: file label generation and block set label generation. In this algorithm, a file name is generated for the file in a finite field, and the corresponding block set index value is generated using the index. The value is mapped to the finite field, and the corresponding verification value is calculated. The verification value can be used for the subsequent label consistency detection process.
[0061] In the file tag generation step, first set a file name name in the finite domain. F , then generate the file tag T F =H(F). Block label generation step, using the corresponding file name name F , the random seed x selected above and the block set index i, generate a verification value β i =f(name F , x, i), and β i Mapping onto the generators of the multiplicative group: Then, a second verification value Δ is generated based on the previous verification value and the block set data. i As shown in formula (1-6), the label set generation process is finally performed to generate the label set T as shown in formula (1-7).
[0062]
[0063]
[0064] The tag set T generated later will be sent by the Client to the CEnclave.
[0065] (3) Duplicate Detection Algorithm
[0066] Duplicate detection is a core algorithm of the deduplication scheme. In order to ensure the data deduplication process, label comparison is required. Since this scheme implements file-level + block-level data deduplication, duplicate detection is divided into two parts: file label comparison and block set label comparison. If there are duplicate file labels, this process ends and no storage process is required. If there are no duplicate file labels, the block label comparison continues. After the comparison is completed, a string is generated. The string records whether there are identical copies of all block sets. The user uploads the ciphertext data according to this string to complete the data deduplication process, and saves data transmission and corresponding storage space and computing time for data with copies. In this algorithm, in order to protect the user's ownership information from being stolen, the ORAM reading method is used in the file label comparison process to hide the read and write operation process. When searching for block set labels, since there is no corresponding file in the cloud storage at this time, explicit reading can be performed directly to achieve a balance between deduplication efficiency and time overhead.
[0067] In the repeated detection step, CEnclave receives the tag set T and first compares the file tags using the ORAM reading method to ensure that the user's ownership information is not leaked. If there are identical file copies, there is no need to perform subsequent upload and storage processes, and the process ends directly and proof of ownership is performed. If there are no identical file tags, the block set tags are compared. If at least one block set tag is equal, a string s is created: s = s1s2…s d , when there is a block set label T in the cloud storage s =T i Time, time i =1, otherwise s i = 0. If no block set label is equal, let s = null. Thus, string s records the repeated information of block labels.
[0068] In the step of generating data to be uploaded, the user generates the ciphertext C' of the data to be uploaded based on the string s. If s is not null, the corresponding block set is filled in according to the information recorded in the string s to generate C'=C1'C2'...C d ′. If s is null, it means that no block set is repeated, and the ciphertext C′=C1,C2…C d , fill in all block set ciphertexts.
[0069] The Client then transmits the ciphertext to be uploaded to the cloud storage platform.
[0070] Example:
[0071] This solution only describes the data deduplication process at the file level + block level.
[0072] 1) System initialization phase
[0073] According to the SysSetup function proposed in Part 3, the cloud storage platform generates the public parameter Pub based on the input security parameter λ and runs this function:
[0074] 2) Data initialization phase
[0075] The client runs the KeyGen function proposed in Section 3 to generate the key pair (sk c ,pk c ). The client then runs the data encryption algorithm proposed in Part 3. If the file does not need to be divided into blocks according to the system parameters, the file ciphertext C is obtained. If it needs to be divided into blocks, the ciphertext C={C1,C2…C d ,i∈[0,d]}. The Client then runs the label generation algorithm proposed in Section 3 to obtain the label set
[0076] 3) Data deduplication stage
[0077] CEnclave and Client run the duplicate detection algorithm proposed in Section 3. If the same file tag exists, this phase ends and the ownership proof phase begins. If the same file tag does not exist, the Client generates the ciphertext C′ to be uploaded, and then sends C′ to the CSS.
[0078] The above data initialization phase and data deduplication phase are as follows Figure 4 .
[0079] 4) Ownership Proof Phase
[0080] This process is completed by three sub-functions: ChallGen, ResGen, and ChallAuth. Figure 5 The cloud storage has the same file tag as the user before the ownership proof process is performed. CEnclave runs the function ChallGen to generate a challenge challenge, and then sends the challenge to the Client. The Client runs the function ResGen to generate a file signature τ, and then sends the file signature τ to CEnclave for verification. After receiving the response from the Client, CEnclave runs the function ChallAuth. If res = True, it proves that the user owns the file; otherwise, the process terminates.
[0081] (1)ChallGen(d,Pub)→(challenge): This function is executed in CEnclave, and takes as input the number of block sets d and the public parameter Pub. If there are files with the same label T s =T F , then CEnclave needs to perform the ownership proof steps with the Client, which are divided into the following two steps: (1) According to the number of file blocks d, generate a random number l so that it falls within the interval [1, d], and calculate z = {z1, z2…z l}. (2) For Choose any one Form a challenge challenge = {i, u i}.
[0082] (2) ResGen (challenge, B i ,C i ,Pub)→(τ): This function is executed in the Client, and inputs the challenge challenge and the block set plaintext B i , block set ciphertext C i , public parameter p. After receiving the challenge from CEnclave, the client parses it and aggregates it to generate ownership evidence. The client uses the block set B i Generate signature private key sk i =H(B i ), thereby deriving the signature public key Then the signature of the block set is constructed as in (2-1).
[0083]
[0084] Finally, as in (1-7), the signature τ of each block set is i Aggregated into the signature τ of the file, the Client sends τ to CEnclave for verification.
[0085]
[0086] ChallAuth(challenge,τ,τ i )→(res): This function is executed in CEnclave, and inputs the obtained file signature τ and the found file tag T F The corresponding file signature τ i , the challenge challenge is issued. After receiving the response from the Client, CEnclave needs to verify whether the received signature is consistent, so as to determine whether the user has the same file F as the cloud storage. CEnclave uses the block set of the response found to sign τi Constructing an aggregate signature Then verify whether τ = τ′ holds. If so, the ownership proof is completed and res = True; otherwise, res = False, and the user cannot obtain the ownership of this file. Finally, the parameter res is returned.
[0087] 5) Data storage stage
[0088] This stage is completed by the BlockCheck function. The client sends the ciphertext C′ and the tag set T to the CEnclave on the server. The CEnclave executes the function BlockCheck. If res=True, the CEnclave stores the file ciphertext C′ and the corresponding file information to the CSS: file name name F ,Label Public key pk c . And update the corresponding file and block label list, where the file label list is organized in the form of ORAM. If res = False, it means that this user is a malicious user and the process is terminated. The process description is as follows Figure 6 .
[0089] BlockCheck(C′,T,s,Pub)→(res,A F ): This algorithm is executed in CEnclave, and inputs the received ciphertext C′, the tag set T, the string s, and the public parameter Pub. For each i∈[i, d], if s i = 0, then CEnclave needs to perform ciphertext C′ and T i Perform the corresponding verification operation to ensure that the label is generated with the corresponding ciphertext and obtain the label T i The corresponding C i .
[0090] H(C i ′)=H(C i ) (2-3)
[0091]
[0092] If there is no i (i∈[i, d]) that makes the above two equations true, then it is proved that the label and the ciphertext do not match, so the error message res=False is returned and the process is terminated; otherwise, res=True is set and the process continues, and the corresponding file permission A is returned. F .
[0093] 6) File download stage
[0094] This process is mainly implemented by the DataDec function. The flowchart of this process is as follows: Figure 7 The client executes the DataDec function. If the returned res=True, this stage is successfully completed; otherwise, the file data is damaged.
[0095] DataDec(C′,A F , k F , k i , T F )→(res): This function is executed in the Client, inputs the downloaded file ciphertext C′, user authority A F , file encryption key k F , block encryption key ki. First, the Client sets the corresponding file permission A F Send to CEnclave, and download the corresponding ciphertext C' after receiving the response. If it is stored in the form of a file, it is decrypted into the file plaintext F = Dec(C', k F ); if it is stored in the form of file blocks, it is decrypted into file ciphertext F = Dec(B1, k1)||Dec(B2, k2)||…||Dec(B i , k i ). In addition, the Client checks the correctness of the file and determines whether T F =H(F) is true, if so, the verification is passed, that is, it is consistent with the original plaintext, let res=True, otherwise let res=False.
Claims
1. A secure cloud data deduplication method based on trusted hardware, characterized in that: The following steps are involved: First, the original file is encrypted and a label is generated. Then the encrypted file and the corresponding label are sent to the cloud storage platform. After the cloud storage platform divides the file into blocks, it checks the labels for duplication, stores the encrypted file without duplicates, and grants permissions to the file. The trusted hardware area equipped by the cloud storage platform is a completely trusted server. Each set up trusted hardware contains a unique sealing key. k ; First, generate a hash of the original data, and after successful remote authentication with the trusted hardware, send the hash to the trusted hardware, and then the enclave uses the sealing key s k Blind signature is performed on the file hash. After receiving the blind signature, the user will unblind it and use the obtained security signature as the encryption key. The same file hash will obtain the same signature in the same trusted hardware, and the same file will generate the same encryption key, and symmetric encryption will be used to encrypt the file data. The file block aggregation step is performed in the Client. First, the file length is compared with the size relationship of α in the public parameter Pub. If it is less than α, there is no need to perform the file block aggregation process, and the hash h of the entire file is directly generated; otherwise, block aggregation is performed and the hash h of the entire file is calculated. Indicates the number of block sets, Round up, determine the number of blocks in the block set according to the public parameter m in Pub, and generate block set B i , and calculate the hash h i ; length α, fixed block length l; number of blocks m; The key generation step is completed by the Client and CEnclave together. First, the two perform remote authentication. If the authentication fails, an error message is returned. If successful, the process continues. The Client determines whether the file is divided into blocks according to the previous step, and sends the file hash or block set hash to CEnclave. CEnclave uses the sealing key s_k in the trusted area to perform blind signatures. After receiving the blind signature, the Client unblinds it and calculates the file encryption key and block set encryption key respectively using the following formulas. k=h′·r -1 (mod N) The data encryption step is completed by the Client, using symmetric encryption to encrypt files or block sets respectively, and using the corresponding encryption key generated in the previous stage to complete the encryption process, as described in the following formula; after the data encryption is completed, the ciphertext is temporarily stored in the Client; C=Enc(k F ,F); Label generation is divided into two parts: file label generation and block set label generation. A file name is generated for the file in a finite field, and the corresponding block set index value is generated using the index. The value is mapped to the finite field, and the corresponding verification value is calculated. The verification value can be used for subsequent label consistency detection. It is divided into three steps: file tag generation, block set tag generation, and tag set generation. All three steps are executed in the Client. In the file tag generation step, first set a file name name in the finite domain. F , then generate the file tag T F =H(F); block label generation step, use the corresponding file name name F , the random seed x and block set index i selected above, generate the verification value β i =f(name F , x, i), and β i Mapping onto the generators of the multiplicative group: Then, a second verification value Δ is generated based on the previous verification value and the block set data. i As the formula Finally, the label set generation process is performed to generate the label set T as shown in the formula T F ,name F , pk c }; The tag set T generated later will be sent by the Client to the CEnclave.
2. A secure cloud data deduplication method based on trusted hardware according to claim 1, characterized in that: Duplicate detection is divided into two parts: file label comparison and block set label comparison. If there are duplicate file labels, the process ends and no storage process is required. If there are no duplicate file labels, the block label comparison continues. After the comparison is completed, a string is generated. The string records whether there are identical copies of all block sets. Ciphertext data is uploaded based on this string to complete the data deduplication process. The ORAM reading method is used in the file label comparison process, and explicit reading is performed directly when searching for block set labels.
3. A secure cloud data deduplication method based on trusted hardware according to claim 2, characterized in that: In the duplicate detection step, CEnclave receives the tag set T and first compares the file tags using the ORAM reading method. If the same file copy exists, there is no need to perform the subsequent upload and storage process, and the process ends directly and proof of ownership is performed; if there is no identical file tag, the block set tags are compared. If at least one block set tag is equal, a string s is created: s = s1s2…s d , when there is a block set label T in the cloud storage s =T i Time, time i =1, otherwise s i = 0; if no block set label is equal, let s = null; thus the string s records the repeated information of the block label; In the step of generating data to be uploaded, the ciphertext C′ of the data to be uploaded is generated according to the string s; if s is not null, the corresponding block set is filled in according to the information recorded in the string s to generate C′=C1′C2′…C d ′; if s is null, it means that there is no repeated block set, and the ciphertext C′=C1,C2…C d , fill in all block set ciphertexts; then the Client transmits the ciphertext to be uploaded to the cloud storage platform.
4. A trusted hardware-based secure cloud data deduplication system running the trusted hardware-based secure cloud data deduplication method according to claim 1, characterized in that: include: The data encryption module is used to encrypt the original file; The label generation module is used to generate labels for the original files; The deduplication module is used to send the encrypted files and corresponding tags to the cloud storage platform. After the cloud storage platform detects the duplication of the tags, it stores the encrypted files without identical copies and grants the permissions to the file.
Citation Information
Patent Citations
Efficient and safe data deduplication method and efficient and safe data deduplication system based on user perception
CN104917609A
Security data deduplication and encryption method adopting similarity perception
CN107659401A
