Data communication method based on casual transmission protocol
By using oblivious transmission protocols and watermark algorithms in the industrial Internet of Things, combined with identity encryption and digital signatures, the issues of privacy and accountability mechanisms in data sharing are solved, achieving efficient data transmission and security, and are suitable for industrial things. Networked environment.
Patent Information
- Application Number
- CN202410922370.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-11
AI Technical Summary
In the Industrial Internet of Things, there is a security issue of data leakage when data is shared. It is difficult for existing technologies to effectively protect data privacy and ensure that data owners are not framed. In particular, managing certificates on resource-constrained smart devices is complex and inefficient.
A data communication method based on the oblivious transmission protocol is adopted, combined with identity encryption and watermarking algorithms, to achieve two-way privacy between users and servers. The watermarking algorithm ensures independent verification of data users and prevents false accusations by data owners when data is leaked.
It realizes identity authentication and data privacy transmission between users and servers, ensures data security and accountability mechanisms, improves the efficiency of data sharing, and is suitable for use in industrial IoT environments.
Smart Images

Figure CN118764183A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and in particular to a data communication method based on an oblivious transfer protocol. Background Art
[0002] The Industrial Internet of Things (IIoT) has great potential in promoting the development of many industrial systems such as energy, manufacturing, logistics, and transportation, and has attracted widespread attention in recent years. By leveraging highly connected smart IIoT devices to sense, monitor, collect, exchange, and analyze data generated in industrial processes, IIoT can help build comprehensive smart solutions in industrial systems. However, there are still inevitable security issues in the IIoT that hinder the open sharing of data, that is, the data owner (sender) cannot control the access to the shared data after sharing it with multiple data receivers. In most data sharing cases, the sender only allows the receiver to use the shared data, and does not allow the receiver to disclose the shared data to others or the public without permission for profit or other self-interested purposes. If a data leakage incident occurs (such as the sender is aware of the data leakage and obtains the leaked data from the Internet), whether intentional or unintentional, the corresponding receiver of the leaked data should be tracked and held accountable for the incident.
[0003] With the integration and development of information technology and advanced manufacturing, the new industrial revolution represented by the Industrial Internet of Things has received unprecedented attention. The secure transmission of industrial data and data sharing are the top priorities of the Industrial Internet of Things. In 2021, Chen et al. designed a data sharing scheme based on proxy re-encryption technology. However, the re-encryption algorithm in this scheme is run by the data owner, which requires the data owner to know the information of the data user, which is not conducive to protecting the privacy of smart devices in cross-domain IIoT. In 2023, Cui et al. proposed a batch authentication scheme based on pseudonymous certificates to meet the security and efficiency requirements of the Industrial Internet of Things system. However, this scheme requires IIoT devices to pre-store a large number of pseudonymous certificates and regularly request new certificates from the key distribution center. For resource-constrained smart devices, managing certificates is very complicated and requires a lot of additional storage resources. Summary of the invention
[0004] Purpose of the invention: In view of the problems existing in the prior art, the present invention discloses a data communication method based on the oblivious transfer protocol, which realizes the legal registration of system users through an identity-based encryption method, uses the oblivious transfer protocol for data interaction to ensure two-way privacy between users and servers, and uses a watermark algorithm to ensure that data users can verify themselves when the shared data of the Internet of Things is leaked and prevent the data owner from making false accusations.
[0005] Technical solution: The present invention discloses a data communication method based on an oblivious transfer protocol, comprising the following steps:
[0006] S1: System initialization phase: The trusted third party discloses system parameters {G,G T ,e,g,h,g1,H1,H2,spk,rpk}, and save the master key MSK, where G and G T are two multiplicative cyclic groups, and the bilinear map e:G×G→G T , g, h are the generators of group G, g1=g x , a trusted third party selects a random number And x is used as the system's master key MSK=x, H1, H2 are two secure cryptographic hash functions, spk=h ssk The public key for the data owner to share data. The data owner selects a random number As the private key for sharing data; rpk = h rsk The public key for data users to share data, and the data user selects a random number as the private key for sharing data
[0007] S2: User U i When joining the system, the trusted third party TA first checks whether the user is valid. If so, TA uses the user's ID to perform the registration operation. Sensor S i It also registers with a trusted third party TA to become a legitimate device;
[0008] S3:S i The IoT data is encrypted using an identity-based encryption strategy to generate IoT data ciphertext, and the corresponding keyword tags are generated for the encrypted ciphertext data. After identity authentication, the gateway aggregates the ciphertext and keyword tags and uploads them to the server CS.
[0009] S4: User U i Interact with the server CS through the oblivious transfer protocol to obtain the ciphertext and decrypt it;
[0010] S5: When data is shared between users, the data owner DS splits the data, adds watermarks, encrypts and sends it to the sharing provider; the data user DR obtains the ciphertext stored on the sharing provider through the distributed oblivious transfer protocol, aggregates the ciphertext and decrypts it.
[0011] Furthermore, in S2, the specific process of the registration phase is as follows:
[0012] S2.1: Given the identity ID, TA calculates the user's public key PK ID =H1(ID), and calculate the user's private key SK ID =H1(ID)MSK , through a secure channel, SK ID Send to user ID;
[0013] S2.2: TA selects a random number As S i The private key SK s =(x s,1 ,x s,2 ), and calculate the corresponding public key SK s Send to S i .
[0014] Furthermore, in S3, the specific operations of the data encryption stage are as follows:
[0015] S3.1:S i First, pick a random number Calculate C1 = g r , r=H1(t,D), finally, generate the ciphertext CT=(C1,C2,C3), where is the XOR operator symbol, D is S i The plaintext original data;
[0016] S3.2:S i Generate a label ω for each ciphertext CT to reduce the time complexity and communication overhead in the oblivious transfer stage;
[0017] S3.3:S i Sign the ciphertext CT: Select a random number Calculate separately The random number selected by TA, signature σ(CT) = (a, α, β), finally, the ciphertext and tag (CT, ω) and signature σ(CT) are sent to the gateway;
[0018] S3.4: Gateway to S i Perform identity authentication; after the gateway receives the ciphertext CT and signature σ(CT), it checks the formula and Is it true? If the formula is not true, the error symbol ⊥ is output. If the formula is true, it means S i Through the gateway verification, where For S i The public key of ; finally, the ciphertext CT and label ω are aggregated and uploaded to CS.
[0019] Furthermore, user U i When interacting with the server CS through the oblivious transfer protocol, you need to pass the CS identity authentication. The specific verification process is as follows:
[0020] S4.1: U i When you want to obtain data, you need to send a data request Req to CS, as well as a signature σ(Req) for the data request, U i Pick a random number Calculate χ = g k , Signature σ(Req) = (χ, δ). Finally, the request Req and signature σ(Req) are sent to CS.
[0021] S4.2: CS vs. U i Authentication is performed and U i After receiving the request Req and the signature σ(Req), calculate T'=χ·g1 through χ and g1, and check the formula Is it true? If the formula is not true, the error symbol ⊥ is output. If the formula is true, it means U i Passed the verification of CS.
[0022] Furthermore, user U i Interact with the server CS through the oblivious transfer protocol. CS and U i Execute the oblivious transfer protocol, assuming that there are n ciphertexts CT in CS y , 1≤y≤n, ciphertext CT y The corresponding label is ω y , data can be transmitted in the channel after encryption, including the following steps:
[0023] S5.1: CS selects random number Calculate Y y =(ω y h) μ , 1≤y≤n, CS will P y Send to U i ;
[0024] S5.2: U i By tag ω j Select k data, 1≤j≤k, and then select a random value And calculate K j =ω j ·g ν , and finally k parameters K j Send to CS;
[0025] S5.3: CS calculates and sends k parameters Give U i ;
[0026] S5.4: U i Calculate k parameters
[0027] Furthermore, user U i After obtaining the ciphertext CT = (C1, C2, C3), decryption is performed, including the following steps:
[0028] S6.1: U i First calculate ζ=H1(t,D),SK ID For the user's private key, check the formula Is it true? If the formula is not true, an error symbol ⊥ is output; if the formula is true, it means that the ciphertext CT format is correct, and continue to step S6.2;
[0029] S6.2: U i calculate
[0030] Furthermore, when users share data, i The data owner DS and the data user DR are divided into data owners DS and data users DR. If the data user DR wants to obtain the data of the data owner DS, it must first send a data request and pass the identity authentication; specifically:
[0031] S7.1: DR sends a data request Req and a signature σ(Req) to DS. DR selects a random number Calculate ε = g ρ , φ=ε rsk·Req , signature σ(Req)=(ε,φ), finally DR sends the request Req and signature σ(Req) to DS;
[0032] S7.2: After receiving Req and signature σ(Req), DS calculates T'=e(ε,rpk Req ), and check the formula Is it true? If the formula is not true, the error symbol ⊥ is output. If the formula is true, it means that DR has passed the verification of DS.
[0033] Furthermore, when sharing data, the data owner DS divides the data, adds a watermark, encrypts and sends it to the sharing provider; before sharing, the DS data needs to be divided into n data blocks, and a unique watermark is added to each data block, and the data is encrypted by a symmetric encryption / decryption algorithm and sent to n sharing providers SP; the following steps are included:
[0034] S8.1: DR generates watermark signature This includes the DS identifier C S , DR identifier C Rand timestamp τ, DR sends the watermark signature to DS;
[0035] S8.2: DS creates two watermark keys using the Cox watermark algorithm Where κ represents the security parameter of the watermark algorithm, and a watermark is added to the data. in It is the original data shared by DS;
[0036] S8.3: DS sends watermark data Divide into n parts And create two different versions of each data block by adding an additional watermark j∈{0,1}
[0037] S8.4: DS for different versions of each part D i,j , i∈{1,...,n}, j∈{0,1} creates the corresponding signature message σ i,j =[τ,i,j] ssk , which contains the timestamp τ, the index of the component i and the second watermark content j of the version;
[0038] S8.5: DS selects 2n random numbers And for each version of the watermark data block D i,j and the signed message σ i,j Encrypt and calculate C i,0 =Enc(<D i,0 ,σ i,0 >,z i,0 ), C i,1 =Enc(<D i,1 ,σ i,1 >,z i,1 ), i∈{i,...,n}, where the symmetric key used for encryption is z i,0 and z i,1 ; Then, DS selects n random numbers calculate and Finally, DS will (C i,0 ,ct i,0 ) and (C i,1 ,ct i,1 ) is sent to the i-th shared provider SP, and notifies DR that it can download (C i,0 ,C i,1 ).
[0039] Furthermore, the data user DR obtains the ciphertext stored on the shared provider through the distributed oblivious transfer protocol, aggregates the ciphertext and decrypts it; the specific process is as follows:
[0040] S9.1: DR uses the bit string {b1,b2,...,b n} represents its own private key rsk, select n random numbers And calculate the commitment value Auxiliary value Will prove Send to n SPs;
[0041] S9.2: DR selects a large prime number C and a random number calculate Finally, PK i,0 and the large prime number C are sent to the i-th SP;
[0042] S9.3: SP selects receipt proof Π proof Then calculate η = rpk·K and check the formula Is it true? If the formula is not true, an error symbol ⊥ is output. If the formula is true, it means that DR has passed the verification of SP and continues to step S9.4;
[0043] S9.4: After identity authentication, the i-th SP calculates PK i,1 =C / PK i,0 , and select a random number Then, by calculating To encrypt ct i,0 ,calculate To encrypt ct i,1 ,in is the XOR operator, ct i,0 and ct i,1 is the DS pair symmetric key (z i,0 ,z i,1 ) encryption; finally, the n pairs of ciphertext E i,0 and E i,1 Send to DR;
[0044] S9.5: DR receives n pairs of ciphertext E i,0 and E i,1 After that, calculate And use it to decrypt the ciphertext to get the ciphertext of n symmetric keys
[0045] S9.6: DR obtains the ciphertext of n symmetric keys Then, use your own private key to calculate You can get n symmetric keys
[0046] S9.7: DR calculation The symmetric key used for decryption is
[0047] S9.8: DR by connecting data blocks To restructure shared data The signed message This is evidence of DR selection.
[0048] Beneficial effects:
[0049] The present invention constructs a data communication method based on the oblivious transfer protocol. Combining the advantages of identity-based encryption and cryptographic systems and digital signatures, identity authentication and data privacy transmission between users and servers are realized. Due to the lack of appropriate supervision and accountability mechanisms in most data sharing schemes, it is impossible to hold the leaker accountable in a timely manner when data leaks occur. The present invention uses a watermark algorithm to make up for such security defects. The reason why the watermark algorithm can make up for the defects is that it can add detectable watermarks without affecting the data content, so that the data owner can be held accountable without changing the data content, thereby ensuring the security of user data. At the same time, the watermark algorithm also ensures that data users can independently verify and prevent data owners from falsely accusing when shared data leaks. In addition, we use an oblivious transfer protocol between users and servers to interact with data, so that the server cannot determine the data obtained by the user, and the user cannot know other data in the server, but the confidentiality and integrity of the data can still be guaranteed. Compared with the solutions in recent years, our solution has higher efficiency. Therefore, our solution is suitable for application in industrial Internet of Things environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a system model diagram of the present invention;
[0051] Figure 2 The acquisition data model diagram of the present invention;
[0052] Figure 3 This is a diagram of the shared data model of the present invention. DETAILED DESCRIPTION
[0053] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0054] The present invention discloses a data communication method based on an oblivious transfer protocol, which is applicable to industrial Internet of Things. Figures 1 to 3 , specifically including the following process:
[0055] S1: System initialization phase: Given a security parameter λ, set two multiplication cycle groups G and G T , p is the group G and G TThe order of p is a prime number, and the bilinear map e:G×G→G T , g is a generator of group G and randomly selects another generator h∈G. A trusted third party selects a random number Calculate g1 = g x , and use x as the system's master key MSK = x. Define two secure cryptographic hash functions H1: {0,1} n →G, which maps a bit string of length n to the multiplicative cyclic group G. Mapped from a finite field to a multiplication cycle group G. The trusted third party selects a symmetric encryption / decryption algorithm represented by ENC() / DEC() and selects a random number for the data owner. As the private key when sharing data, calculate the public key spk = h ssk At the same time, a random number is selected for the data user as the private key when sharing data Calculate the public key rpk = h rsk The trusted third party discloses system parameters {G,G T ,e,g,h,g1,H1,H2,spk,rpk} and save the master key MSK.
[0056] S2: Registration phase: User U i When joining the system, the trusted third party TA first checks whether the user is valid. If so, TA uses the user's ID (e.g., phone number, email address, IP address, etc.) to perform the registration operation. i It is also necessary to register with a trusted third party TA to become a legitimate device. The following steps are included:
[0057] S2.1: Given the identity ID, TA calculates the user's public key PK ID =H1(ID), and calculate the user's private key SK ID =H1(ID) MSK , through a secure channel, SK ID Sent to user ID.
[0058] S2.2: TA selects a random number As S i The private key SK s =(x s,1 ,x s,2 ), and calculate the corresponding public key SK s Send to S i .
[0059] S3: Data encryption stage: S iThe IoT data is encrypted using an identity-based encryption strategy to generate IoT data ciphertext, and the corresponding keyword tags are generated for the encrypted ciphertext data. After identity authentication, the gateway aggregates the ciphertext and tags and uploads them to the server CS. The following steps are included:
[0060] S3.1:S i First, pick a random number Calculate C1 = g r , r = H1(t,D), where is the XOR operator symbol, D is S i Finally, the ciphertext CT = (C1, C2, C3) is generated.
[0061] S3.2:S i A label ω is generated for each ciphertext CT to reduce the time complexity and communication overhead in the oblivious transfer phase.
[0062] S3.3:S i Sign the ciphertext CT: Select a random number Calculate separately Signature σ(CT) = (a, α, β). Finally, the ciphertext, label (CT, ω) and signature σ(CT) are sent to the gateway.
[0063] S3.4: Gateway to S i After receiving the ciphertext CT and signature σ(CT), the gateway checks the formula and Is it true? If the formula is not true, the error symbol ⊥ is output. If the formula is true, it means S i Pass the gateway verification. Finally, the ciphertext CT and label ω are aggregated and uploaded to CS.
[0064] S4: Data access phase: U i When obtaining data, you need to pass the CS identity verification. It includes the following steps:
[0065] S4.1: U i When you want to obtain data, you need to send a data request Req to CS, as well as a signature σ(Req) for the data request. i Pick a random number Calculate χ = g k , Signature σ(Req) = (χ, δ). Finally, the request Req and signature σ(Req) are sent to CS.
[0066] S4.2: CS vs. U iAuthentication is performed. i After receiving the request Req and the signature σ(Req), calculate T'=χ·g1 through χ and g1, and check the formula Is it true? If the formula is not true, the error symbol ⊥ is output. If the formula is true, it means U i Passed the verification of CS.
[0067] S5: Oblivious transmission stage, CS and U i Execute the oblivious transfer protocol, assuming that there are n ciphertexts CT in CS y , 1≤y≤n, ciphertext CT y The corresponding label is ω y , data can be transmitted in the channel after being encrypted. It includes the following steps:
[0068] S5.1: CS selects random number Calculate Y y =(ω y h) μ , 1≤y≤n. Finally, CS will P y Send to U i .
[0069] S5.2: U i By tag ω j Select k data, 1≤j≤k, and then select a random value And calculate K j =ω j ·g ν Finally, k parameters K j Send to CS.
[0070] S5.3: CS calculates and sends k parameters Give U i .
[0071] S5.4: U i Calculate k parameters
[0072] S6: Decryption phase, U i After obtaining the ciphertext CT = (C1, C2, C3), decryption is performed. The following steps are included:
[0073] S6.1: U i First calculate ζ=H1(t,D), check the formula Is it true? If the formula is not true, the error symbol ⊥ is output. If the formula is true, it means that the ciphertext CT format is correct, and continue with step S6.2.
[0074] S6.2: U i calculate
[0075] S7: Sharing authorization stage: if the data user DR wants to obtain the data of the data owner DS, it must first send a data request and pass the identity authentication. It includes the following steps:
[0076] S7.1: DS authenticates DR. When DR wants to obtain data, it needs to send a data request Req to DS, as well as a signature σ(Req) for the data request. DR selects a random number Calculate ε = g ρ , φ=ε rsk·Req , signature σ(Req)=(ε,φ). Finally, DR sends the request Req and signature σ(Req) to DS.
[0077] S7.2: After receiving Req and signature σ(Req), DS calculates T'=e(ε,rpk Req ), and check the formula Is it true? If the formula is not true, the error symbol ⊥ is output. If the formula is true, it means that DR has passed the verification of DS.
[0078] S8: Sharing data preparation stage: Before sharing, the DS data needs to be divided into n data blocks, and a unique watermark is added to each data block. The data is encrypted by a symmetric encryption / decryption algorithm and sent to n sharing providers SP. The following steps are included:
[0079] S8.1: DR generates watermark signature It contains the DS identifier C S , DR identifier C R and timestamp τ. Finally, DR sends the watermark signature to DS.
[0080] S8.2: DS creates two watermark keys using the Cox watermark algorithm Where κ represents the security parameter of the watermark algorithm, and a watermark is added to the data. in It is the original data shared by DS.
[0081] S8.3: DS sends watermark data Divide into n parts And create two different versions of each data block by adding an additional watermark j∈{0,1}
[0082] S8.4: DS for different versions of each part D i,j , i∈{1,...,n}, j∈{0,1} creates the corresponding signature message σi,j =[τ,i,j] ssk , which contains the timestamp τ, the index of the component i and the second watermark content j of the version.
[0083] S8.5: DS selects 2n random numbers And for each version of the watermark data block D i,j and the signed message σ i,j Encrypt and calculate C i,0 =Enc(<D i,0 ,σ i,0 >,z i,0 ), C i,1 =Enc(<D i,1 ,σ i,1 >,z i,1 ), i∈{i,...,n}, where the symmetric key used for encryption is z i,0 and z i,1 Then, DS selects n random numbers calculate and Finally, DS will (C i,0 ,ct i,0 ) and (C i,1 ,ct i,1 ) is sent to the i-th shared provider SP, and notifies DR that it can download (C i,0 ,C i,1 ).
[0084] S9: During the shared data transmission phase, after the DR passes the authentication, it executes the distributed oblivious transfer protocol with the SP to obtain the symmetric key. This includes the following steps:
[0085] S9.1: DR uses the bit string {b1,b2,...,b n} represents its own private key rsk, select n random numbers And calculate the commitment value Auxiliary value Will prove Sent to n SPs.
[0086] S9.2: DR selects a large prime number C and a random number calculate Finally, PK i,0 and the large prime number C are sent to the i-th SP.
[0087] S9.3: SP selects receipt proof Π proof Then calculate η = rpk·K and check the formula Is it true? If the formula is not true, an error symbol ⊥ is output. If the formula is true, it means that DR has passed the verification of SP, and continue to step S9.4.
[0088] S9.4: After identity authentication, the i-th SP calculates PK i,1 =C / PK i,0 , and select a random number Then, by calculating To encrypt ct i,0 ,calculate To encrypt ct i,1 ,in is the XOR operator, ct i,0 and ct i,1 is the DS pair symmetric key (z i,0 ,z i,1 ). Finally, the n pairs of ciphertext E i,0 and E i,1 Sent to DR.
[0089] S9.5: DR receives n pairs of ciphertext E i,0 and E i,1 After that, calculate And use it to decrypt the ciphertext to get the ciphertext of n symmetric keys
[0090] S9.6: DR obtains the ciphertext of n symmetric keys Then, use your own private key to calculate You can get n symmetric keys
[0091] S10: Shared data decryption phase, DR obtains n symmetric keys Then decrypt. It includes the following steps:
[0092] S10.1: DR calculation The symmetric key used for decryption is
[0093] S10.2: DR by connecting data blocks To restructure shared data The signed message This is evidence of DR selection.
[0094] The main symbols used in the implementation of this scheme are summarized in Table 1:
[0095] Table 1 Symbols
[0096]
[0097] The present invention combines the advantages of identity-based encryption and cryptographic systems and digital signatures to achieve identity authentication and data privacy transmission between users and servers. Due to the lack of appropriate supervision and accountability mechanisms in most data sharing schemes, it is impossible to hold the leaker accountable in a timely manner when data leaks occur. We use watermark algorithms to make up for such security defects. The reason why the watermark algorithm can make up for the defects is that it can add detectable watermarks without affecting the data content, so that the data owner can effectively hold the leaker accountable. In addition, our solution also has the following points. 1) Each participant must register in the system to ensure the legitimacy of the data source. 2) In order to improve sharing efficiency, sensor data is collected and pre-processed on the basis of IoT data sharing. 3) The user and the server use the oblivious transfer protocol to interact with data to ensure the confidentiality and integrity of shared messages. 4) Compared with the solutions in recent years, our solution has higher efficiency. Therefore, our solution is suitable for application in industrial IoT environments.
[0098] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent transformation or modification made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A data communication method based on an oblivious transfer protocol, characterized in that: The following steps are involved: S1: System initialization phase: The trusted third party discloses system parameters {G,G T ,e,g,h,g1,H1,H2,spk,rpk}, and save the master key MSK, where G and G T are two multiplicative cyclic groups, and the bilinear map e:G×G→G T , g, h are the generators of group G, g1=g x , a trusted third party selects a random number is an integer group without 0, and x is used as the system's master key MSK=x, H1, H2 are two secure cryptographic hash functions, spk=h ssk The public key for the data owner to share data. The data owner selects a random number As the private key for sharing data; rpk = h rsk The public key for data users to share data, and the random number selected by the data user as the private key for sharing data S2: User U i When joining the system, the trusted third party TA first checks whether the user is valid. If so, TA uses the user's ID to perform the registration operation. Sensor S i It also registers with a trusted third party TA to become a legitimate device; S3:S i The IoT data is encrypted using an identity-based encryption strategy to generate IoT data ciphertext, and the corresponding keyword tags are generated for the encrypted ciphertext data. After identity authentication, the gateway aggregates the ciphertext and keyword tags and uploads them to the server CS. S4: User U i Interact with the server CS through the oblivious transfer protocol to obtain the ciphertext and decrypt it; S5: When data is shared between users, the data owner DS splits the data, adds watermarks, encrypts and sends it to the sharing provider; the data user DR obtains the ciphertext stored on the sharing provider through the distributed oblivious transfer protocol, aggregates the ciphertext and decrypts it.
2. The data communication method based on the oblivious transfer protocol according to claim 1, characterized in that: In S2, the specific process of the registration phase is as follows: S2.1: Given the identity ID, TA calculates the user's public key PK ID =H1(ID), and calculate the user's private key SK ID =H1(ID) MSK , through a secure channel, SK ID Send to user ID; S2.2: TA selects a random number As S i The private key SK s =(x s,1 ,x s,2 ), and calculate the corresponding public key SK s Send to S i .
3. The data communication method based on the oblivious transfer protocol according to claim 1, characterized in that: In S3, the specific operations of the data encryption stage are as follows: S3.1:S i First, pick a random number Calculate C1 = g r , r=H1(t,D), finally, generate the ciphertext CT=(C1,C2,C3), where is the XOR operator symbol, D is S i The plaintext original data; S3.2:S i Generate a label ω for each ciphertext CT to reduce the time complexity and communication overhead in the oblivious transfer stage; S3.3:S i Sign the ciphertext CT: Select a random number Calculate separately The random number selected by TA, signature σ(CT) = (a, α, β), finally, the ciphertext and label (CT, ω) and signature σ(CT) are sent to the gateway; S3.4: Gateway to S i Perform identity authentication; after the gateway receives the ciphertext CT and signature σ(CT), it checks the formula and Is it true? If the formula is not true, the error symbol ⊥ is output. If the formula is true, it means S i Through the gateway verification, where For S i The public key of ; finally, the ciphertext CT and label ω are aggregated and uploaded to CS.
4. The data communication method based on the oblivious transfer protocol according to claim 1, characterized in that: UserU i When interacting with the server CS through the oblivious transfer protocol, you need to pass the CS identity authentication. The specific verification process is as follows: S4.1: U i When you want to obtain data, you need to send a data request Req to CS, as well as a signature σ(Req) for the data request, U i Pick a random number Calculate χ = g k , Signature σ(Req) = (χ, δ). Finally, the request Req and signature σ(Req) are sent to CS. S4.2: CS vs. U i Authentication is performed and U i After receiving the request Req and the signature σ(Req), calculate T'=χ·g1 through χ and g1, and check the formula Is it true? If the formula is not true, the error symbol ⊥ is output. If the formula is true, it means U i Passed the verification of CS.
5. The data communication method based on the oblivious transfer protocol according to claim 1, characterized in that: UserU i Interact with the server CS through the oblivious transfer protocol. CS and U i Execute the oblivious transfer protocol, assuming that there are n ciphertexts CT in CS y , 1≤y≤n, ciphertext CT y The corresponding label is ω y , data can be transmitted in the channel after encryption, including the following steps: S5.1: CS selects random number Calculate Y y =(ω y h) μ , 1≤y≤n, CS will P y Send to U i ; S5.2: U i By tag ω j Select k data, 1≤j≤k, and then select a random value And calculate K j =ω j ·g ν , and finally k parameters K j Send to CS; S5.3: CS calculates and sends k parameters Give U i ; S5.4: U i Calculate k parameters 6. The data communication method based on the oblivious transfer protocol according to claim 3, characterized in that: UserU i After obtaining the ciphertext CT = (C1, C2, C3), decryption is performed, including the following steps: S6.1: U i First calculate ζ=H1(t,D),SK ID For the user's private key, check the formula Is it true? If the formula is not true, an error symbol ⊥ is output; if the formula is true, it means that the ciphertext CT format is correct, and continue to step S6.2; S6.2: U i calculate 7. The data communication method based on the oblivious transfer protocol according to claim 1, characterized in that: When users share data, i The data owner DS and the data user DR are divided into data owners DS and data users DR. If the data user DR wants to obtain the data of the data owner DS, it must first send a data request and pass the identity authentication; specifically: S7.1: DR sends a data request Req and a signature σ(Req) to DS. DR selects a random number Calculate ε = g ρ , φ=ε rsk·Req , signature σ(Req)=(ε,φ), finally DR sends the request Req and signature σ(Req) to DS; S7.2: After receiving Req and signature σ(Req), DS calculates T'=e(ε,rpk Req ), and check the formula Is it true? If the formula is not true, the error symbol ⊥ is output. If the formula is true, it means that DR has passed the verification of DS.
8. The data communication method based on the oblivious transfer protocol according to claim 1, characterized in that: When sharing data, the data owner DS will split the data, add a watermark, encrypt and send it to the sharing provider; before sharing, the DS data needs to be divided into n data blocks, and a unique watermark is added to each data block. The data is encrypted using a symmetric encryption / decryption algorithm and sent to n sharing providers SP. The following steps are included: S8.1: DR generates watermark signature This includes the DS identifier C S , DR identifier C R and timestamp τ, DR sends the watermark signature to DS; S8.2: DS creates two watermark keys using the Cox watermark algorithm Where κ represents the security parameter of the watermark algorithm. A watermark is added to the data. in It is the original data shared by DS; S8.3: DS adds watermarked data Divide into n parts And create two different versions of each data block by adding an additional watermark j∈{0,1} S8.4: DS has different versions for each part Create the corresponding signed message σ i,j =[τ,i,j] ssk , which contains the timestamp τ, the index of the component i and the second watermark content j of the version; S8.5: DS selects 2n random numbers And for each version of the watermark data block and the signed message σ i,j Encryption, calculation After that, DS selects n random numbers calculate and Finally, DS will (C i,0 ,ct i,0 ) and (C i,1 ,ct i,1 ) is sent to the i-th shared provider SP, and notifies DR that it can download (C i,0 ,C i,1 ).
9. The data communication method based on the oblivious transfer protocol according to claim 1, characterized in that: The data user DR obtains the ciphertext stored on the shared provider through the distributed oblivious transfer protocol, aggregates the ciphertext and decrypts it; the specific process is as follows: S9.1: DR uses the bit string {b1,b2,...,b n } represents its own private key rsk, select n random numbers And calculate the commitment value Auxiliary value Will prove Send to n SPs; S9.2: DR selects a large prime number C and a random number calculate Finally, PK i,0 and the large prime number C are sent to the i-th SP; S9.3: SP selects receipt proof Π proof Then calculate η=rpk·K and check the formula Is it true? If the formula is not true, an error symbol ⊥ is output. If the formula is true, it means that DR has passed the verification of SP and continues to step S9.4; S9.4: After identity authentication, the i-th SP calculates PK i,1 =C / PK i,0 , and select a random number Then, by calculating To encrypt ct i,0 ,calculate To encrypt ct i,1 ,in is the XOR operator, ct i,0 and ct i,1 is the DS pair symmetric key (z i,0 ,z i,1 ) encryption; finally, the n pairs of ciphertext E i,0 and E i,1 Send to DR; S9.5: DR receives n pairs of ciphertext E i,0 and E i,1 After that, calculate And use it to decrypt the ciphertext to get the ciphertext of n symmetric keys S9.6: DR obtains the ciphertext of n symmetric keys Then, use your own private key to calculate You can get n symmetric keys S9.7: DR calculation The symmetric key used for decryption is S9.8: DR by connecting data blocks To restructure shared data The signed message This is evidence of DR selection.
Citation Information
Cited By
Power system-oriented data sharing method and device, storage medium and equipment
CN120091026A
Data Sharing Method, Device, Storage Medium and Equipment for Power System
CN120091026B
