Data processing method and device, equipment and medium
By introducing computing network entrusted decryption nodes and key management nodes into the computing power network, and using blind keys and entrusted encryption keys for data encryption and decryption, the problems of data leakage and tampering risks and insufficient equipment performance in the computing power network are solved. , realizes the safe storage and sharing of data, and reduces equipment performance requirements and confidentiality risks.
Patent Information
- Application Number
- CN202310334340.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
In computing power networks, data stored on computing network nodes are at risk of leakage and tampering, and the performance of data users' equipment is insufficient to support the encryption and decryption of large amounts of data. Existing technologies cannot effectively guarantee the confidentiality and security of data. .
By introducing the computing network entrusted decryption node and the key management node into the computing power network, the blinded key and the entrusted encryption key are used for data encryption and decryption. The data user node only needs to send the entrusted decryption request, and the entrusted decryption node of the computing network completes the process. The decryption operation reduces the equipment performance requirements of the data user node, and ensures the confidentiality of the data through encrypted storage and blind processing.
It realizes the safe storage and sharing of data in the computing network, reduces the equipment performance requirements of data user nodes, avoids the risk of low-credibility third parties obtaining sensitive data, and ensures the confidentiality of data.
Smart Images

Figure CN118740401A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security technology, and in particular to a data processing method, device, equipment and medium. Background Art
[0002] With the rapid development of digital economy and Internet technology, computing power network has become a new productivity in the digital economy era. Computing power network is a new type of infrastructure that integrates computing power and network services. The stronger the computing power, the stronger the data processing capability, and the more useful data obtained, the more accurate it will be.
[0003] The core of the computing network is data processing, such as data storage and computing. For data storage, users can store data on remote computing network nodes due to device limitations or access convenience. By storing data on computing network nodes, efficient and convenient data sharing between different institutions can be achieved.
[0004] However, as network security risks continue to increase and threat challenges become increasingly severe, the data stored on computing network nodes may become targets of malicious attackers, which makes the data stored on computing network nodes at risk of leakage and tampering. Summary of the invention
[0005] The purpose of the present invention is to provide a data processing method, device, equipment and medium to solve the problem that data on existing computing network nodes are at risk of leakage and tampering.
[0006] In order to achieve the above object, in a first aspect, the present invention provides a data processing method, which is executed by a data user node, comprising:
[0007] Sending a data delegate decryption request to the computing network delegate decryption node DDN, wherein the data delegate decryption request is used to request the DDN to decrypt a second target ciphertext from the data provider node DPN, wherein the second target ciphertext is stored in the computing network node CNN;
[0008] Receiving a first target ciphertext sent by a DDN, wherein the first target ciphertext is obtained by the DDN after decrypting the second target ciphertext based on a delegate encryption key, and the delegate encryption key is obtained by the DDN from a key management node KMN;
[0009] The first target ciphertext is decrypted to obtain an initial plaintext.
[0010] The first target ciphertext is the data of the initial plaintext after blinding processing;
[0011] The decrypting the first target ciphertext to obtain an initial plaintext includes:
[0012] Obtain the blinding key of the initial plaintext;
[0013] Based on the blinded key, the first target ciphertext is decrypted to obtain an initial plaintext.
[0014] The step of obtaining the blinded key of the initial plaintext includes:
[0015] Based on the first key, a target shared key between the data user node DUN and the DPN is calculated, wherein the first key is a shared symmetric key between the DUN and the KMN;
[0016] Calculate and obtain a blinded root key according to the target shared key;
[0017] The blinded key is obtained by calculation according to the blinded root key.
[0018] The decrypting the first target ciphertext based on the blinded key to obtain the initial plaintext includes:
[0019] Decrypting the first target ciphertext according to the blinded key to obtain an intermediate plaintext;
[0020] The intermediate plaintext is subjected to inverse length extension processing to obtain the initial plaintext.
[0021] The data delegation decryption request carries the access address of the DPN data to be shared.
[0022] In a second aspect, the present invention further provides a data processing method, which is executed by a data provider node, comprising:
[0023] Encrypt the initial plaintext to obtain the first target ciphertext;
[0024] Encrypting the first target ciphertext based on the delegate encryption key to obtain a second target ciphertext;
[0025] The second target ciphertext is transmitted to the computing network node CNN.
[0026] The encrypting of the initial plaintext to obtain the first target ciphertext includes:
[0027] Obtain the blinding key of the initial plaintext;
[0028] The initial plaintext is encrypted based on the blinding key to obtain a first target ciphertext.
[0029] The step of obtaining the blinded key of the initial plaintext includes:
[0030] Obtain the target shared key between the data provider node DPN and the data user node DUN;
[0031] Calculate and obtain a blinded root key according to the target shared key;
[0032] The blinded key is obtained by calculation according to the blinded root key.
[0033] The step of obtaining a target shared key between the data provider node DPN and the data user node DUN includes:
[0034] Sending a first key acquisition request to a key management node KMN, where the first key acquisition request is used to request to obtain a target shared key between the DPN and the DUN;
[0035] The target shared key is received from the KMN, wherein the target shared key is calculated by the KMN based on a first key, and the first key is a shared symmetric key between the DUN and the KMN.
[0036] The step of encrypting the initial plaintext based on the blinded key to obtain a first target ciphertext includes:
[0037] Extending the length of the initial plaintext to obtain an extended initial plaintext; wherein the length of the extended initial plaintext is greater than or equal to a preset length;
[0038] The expanded initial plaintext is encrypted according to the blinding key to obtain the first target ciphertext.
[0039] The step of encrypting the first target ciphertext based on the delegate encryption key to obtain the second target ciphertext includes:
[0040] The delegate encryption key is calculated based on the target shared key between the data provider node DPN and the data user node DUN;
[0041] The first target ciphertext is encrypted based on the delegate encryption key to obtain the second target ciphertext.
[0042] In a third aspect, the present invention further provides a data processing method, which is executed by a computing network entrusting a decryption node, comprising:
[0043] Receive a data delegation decryption request sent by a data user node DUN;
[0044] According to the data entrusted decryption request, obtaining a second target ciphertext of the data provider node DPN from the computing network node CNN;
[0045] decrypting the second target ciphertext based on the delegate encryption key to obtain the first target ciphertext;
[0046] The first target ciphertext is sent to the DUN.
[0047] The decrypting the second target ciphertext based on the delegate encryption key to obtain the first target ciphertext includes:
[0048] Sending a second key acquisition request to the key management node KMN, where the second key acquisition request is used to request to obtain a delegate encryption key;
[0049] receiving the delegated encryption key sent by the KMN, where the delegated encryption key is calculated by the KMN based on a first key, where the first key is a shared symmetric key between the DUN and the KMN;
[0050] The second target ciphertext is decrypted based on the delegate encryption key to obtain the first target ciphertext.
[0051] Before the slave computing network node CNN obtains the second target ciphertext of the data provider node DPN, the method further includes:
[0052] The DUN is authenticated to obtain a verification result, wherein the verification result indicates that the verification is successful.
[0053] In a fourth aspect, the present invention further provides a data processing device, comprising:
[0054] A first sending module is used to send a data delegation decryption request to a computing network delegation decryption node DDN, wherein the data delegation decryption request is used to request the DDN to decrypt a second target ciphertext from a data provider node DPN, wherein the second target ciphertext is stored in the computing network node CNN;
[0055] A first receiving module, configured to receive a first target ciphertext sent by a DDN, wherein the first target ciphertext is obtained by the DDN after decrypting the second target ciphertext based on a delegated encryption key, and the delegated encryption key is obtained by the DDN from a key management node KMN;
[0056] The first processing module is used to decrypt the first target ciphertext to obtain an initial plaintext.
[0057] In a fifth aspect, the present invention further provides a data processing device, comprising:
[0058] A second processing module is used to encrypt the initial plaintext to obtain a first target ciphertext;
[0059] A third processing module, configured to encrypt the first target ciphertext based on the delegate encryption key to obtain a second target ciphertext;
[0060] A transmission module is used to transmit the second target ciphertext to the computing network node CNN.
[0061] In a sixth aspect, the present invention further provides a data processing device, comprising:
[0062] The second receiving module is used to receive a data entrustment decryption request sent by the data user node DUN;
[0063] A fourth processing module is used to obtain a second target ciphertext of the data provider node DPN from the computing network node CNN according to the data entrusted decryption request;
[0064] a fifth processing module, configured to decrypt the second target ciphertext based on the delegate encryption key to obtain the first target ciphertext;
[0065] The second sending module is used to send the first target ciphertext to the DUN.
[0066] In a seventh aspect, the present invention further provides a data user node, comprising a processor and a transceiver, wherein the transceiver receives and sends data under the control of the processor, and the processor is used to perform the following operations:
[0067] Sending a data delegate decryption request to the computing network delegate decryption node DDN, wherein the data delegate decryption request is used to request the DDN to decrypt a second target ciphertext from the data provider node DPN, wherein the second target ciphertext is stored in the computing network node CNN;
[0068] Receiving a first target ciphertext sent by a DDN, wherein the first target ciphertext is obtained by the DDN after decrypting the second target ciphertext based on a delegate encryption key, and the delegate encryption key is obtained by the DDN from a key management node KMN;
[0069] The first target ciphertext is decrypted to obtain an initial plaintext.
[0070] In an eighth aspect, the present invention further provides a data provider node, comprising a processor and a transceiver, wherein the transceiver receives and sends data under the control of the processor, and the processor is used to perform the following process:
[0071] Encrypt the initial plaintext to obtain the first target ciphertext;
[0072] Encrypting the first target ciphertext based on the delegate encryption key to obtain a second target ciphertext;
[0073] The second target ciphertext is transmitted to the computing network node CNN.
[0074] In a ninth aspect, the present invention further provides a computing network entrusted decryption node, comprising a processor and a transceiver, wherein the transceiver receives and sends data under the control of the processor, and the processor is used to perform the following process:
[0075] Receive a data delegation decryption request sent by a data user node DUN;
[0076] According to the data entrusted decryption request, obtaining a second target ciphertext of the data provider node DPN from the computing network node CNN;
[0077] decrypting the second target ciphertext based on the delegate encryption key to obtain the first target ciphertext;
[0078] The first target ciphertext is sent to the DUN.
[0079] In the tenth aspect, the present invention also provides a data user node, comprising a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the data processing method as described in the first aspect above is implemented.
[0080] In the eleventh aspect, the present invention also provides a data provider node, comprising a memory, a processor, and a program stored in the memory and executable on the processor; characterized in that when the processor executes the program, the data processing method described in the second aspect above is implemented.
[0081] In the twelfth aspect, the present invention also provides a computing network delegated decryption node, comprising a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, it implements the data processing method as described in the third aspect above.
[0082] In the thirteenth aspect, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the data processing method described in the first aspect above, or the steps in the data processing method described in the second aspect above, or the steps in the data processing method described in the third aspect above.
[0083] The above technical solution of the present invention has at least the following beneficial effects:
[0084] In an embodiment of the present invention, a data delegate decryption request is sent to a computing network delegate decryption node DDN through a data user node, wherein the data delegate decryption request is used to request the DDN to decrypt a second target ciphertext originating from a data provider node DPN, wherein the second target ciphertext is stored in the computing network node CNN; a first target ciphertext sent by the DDN is received, wherein the first target ciphertext is obtained by the DDN after decrypting the second target ciphertext based on a delegate encryption key, wherein the delegate encryption key is obtained by the DDN from a key management node KMN; the first target ciphertext is decrypted to obtain an initial plaintext, so that part of the data decryption is completed by the computing network delegate decryption node DDN, and the data user node does not need to perform a large number of decryption operations, thereby reducing the equipment performance requirements for the data user node, and the data stored on the computing network node is encrypted data, and during the entire data flow process, relevant network elements except the data user node cannot obtain the final plaintext, thereby ensuring the confidentiality of the data and avoiding the possibility of a third-party computing network node with low credibility obtaining sensitive data. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] Figure 1 A schematic diagram showing the architecture of a key management system applicable to a communication network according to an embodiment of the present invention;
[0086] Figure 2 A schematic diagram showing a flow chart of a data processing method provided by an embodiment of the present invention;
[0087] Figure 3 A second flowchart diagram showing a data processing method provided by an embodiment of the present invention;
[0088] Figure 4 A third flowchart diagram showing a data processing method provided by an embodiment of the present invention;
[0089] Figure 5 A schematic diagram showing a security key hierarchy architecture according to an embodiment of the present invention;
[0090] Figure 6 One of the module schematic diagrams showing the data processing device provided by the embodiment of the present invention;
[0091] Figure 7 A second schematic diagram showing a module of a data processing device provided by an embodiment of the present invention;
[0092] Figure 8 A third schematic diagram showing a module of a data processing device provided by an embodiment of the present invention;
[0093] Fig. 9 A schematic diagram showing the hardware structure of a data user node provided by an embodiment of the present invention;
[0094] Fig.10A schematic diagram showing the hardware structure of a data provider node provided by an embodiment of the present invention;
[0095] Fig.11 A schematic diagram showing the hardware structure of a computing network delegated decryption node provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0096] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0097] The computing power network connects distributed computing nodes, dynamically and in real time perceives the status of computing resources and network resources, and forms a network in which computing resources can be perceived, allocated, and scheduled, meeting the computing power requirements of new businesses and new applications.
[0098] As network security risks continue to increase and threat challenges become increasingly severe, data stored on computing network nodes may also face various threats.
[0099] 1) Since computing network nodes store a large amount of user data, they may become targets of malicious attackers. If the computing network nodes are hacked, the data stored on the computing network nodes will be at risk of being leaked and tampered with.
[0100] 2) In addition, when individuals or organizations upload sensitive data to computing network nodes, users lose control over the data, and some sensitive data may be viewed by less trustworthy computing network nodes.
[0101] The existing technical solutions mainly adopt the following methods:
[0102] 1) The data provider (DP) encrypts the data and sends it to the computing network node for storage. The data user (DU) downloads the data and decrypts it to obtain the plaintext data. This method has the following disadvantages:
[0103] a) This method has relatively high requirements on the data user's device, especially in scenarios where large amounts of data are encrypted and decrypted (such as video playback, large file encryption, etc.), which requires the data user's device to have high-speed decryption capabilities. However, the reason why many devices use computing network nodes for storage is because of limited device performance or storage. In particular, many Internet of Things (IoT) devices cannot support high-speed decryption of large amounts of data due to device performance limitations or power saving requirements.
[0104] b) Encryption and decryption require key support. Many existing solutions use the method of pre-setting keys. However, in a computing network environment, whether there are a large number of data providers, data users, computing network nodes, etc., if there is no key management system suitable for communication networks, it is impossible to support the secure storage and sharing of computing network data.
[0105] 2) In order to solve the problem that the performance of data user devices is limited and cannot support the encryption and decryption of large amounts of data, there is a solution that uses proxy decryption. The data provider DP encrypts the data and sends it to the computing network node for storage, and synchronizes the encryption key to the computing network node; when the data user needs to use the data, he sends a data acquisition request to the computing network node, and the computing network node decrypts it with the encryption key synchronized by the data provider DP and sends it to the data user's device. This solution does not require the data user's device to decrypt the data, but the data is decrypted by the computing network node. If the computing network node is compromised or has low trustworthiness, there is a risk of data leakage.
[0106] In order to solve the above problems, the present invention provides a data processing method, device, equipment and medium, wherein the method and the device are based on the same application concept. Since the principles of solving the problems by the method and the device are similar, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0107] It should be noted that the method provided by the present invention can be applied to Figure 1 The key management system shown is applicable to the communication network. The system provides trusted key management for multiple parties such as computing network nodes, data providers, and data users. The system specifically includes:
[0108] Data Provider Node (DPN): It is the data owner device that uses the storage and computing power provided by the computing network to manage the data it owns.
[0109] Data User Node (DUN): It is a data user device that uses the storage and computing power provided by the computing network to use data provided by a third party. In the IoT environment, it may be a low-performance terminal, etc.
[0110] Computing Force Network Node (CNN): It is a node in the computing force network that is responsible for providing storage and computing capabilities. It may be operated by the computing network operator itself or by a third party.
[0111] Delegate Decryption Node (DDN): This node is a computing node operated by the computing network operator. It has high security and trustworthiness and is used to provide delegated decryption capabilities.
[0112] Key Management Node (KMN): This node has high security and trustworthiness and is used to provide key distribution and management. In the embodiment of the present invention, the Generic Bootstrapping Architecture (GBA) technology can be used to distribute and manage keys. KMN is equivalent to the Bootstrapping Server Function (BSF) network element of GBA, relying on the network key K in the operator's Universal Subscriber Identity Module (USIM) card. i , calculate the shared business key for the business platform and terminal equipment.
[0113] It should also be noted that, when executing the method of the embodiment of the present invention, an initialization process is first performed, specifically:
[0114] 1) By default, there is a secure communication channel between the data provider node DPN, the computing network node CNN, the computing network entrusted decryption node DDN, the key management node KMN and the data user node DUN (such as identity authentication based on Internet Protocol Security (IPSec) or certificate-based Hypertext Transfer Protocol Secure (HTTPS) two-way verification, etc.), and the secure communication between the above network elements is not described in detail in this embodiment of the invention.
[0115] 2) The key management node KMN can perform corresponding authority control (such as whether relevant keys can be obtained, etc.) based on the security, credibility and authority of network elements such as the data provider node DPN, the computing network node CNN, and the computing network delegated decryption node DDN.
[0116] 3) To ensure security, the system shares the following public functions:
[0117] a. Extension function F can extend input of any length to a safe length L (such as greater than 512 bits, etc.), or through its inverse function F -1 Converted into raw data, it is defined as follows:
[0118] for exist
[0119] in, It means that M is a bit string composed of arbitrary bytes, and the content of M is composed of 0 and 1.
[0120] b. The key extension function H can unidirectionally extend the key to any length L, but cannot be reversed. It is defined as follows:
[0121] for exist
[0122] 4) When the data user node DUN accesses the network, key initialization is completed, and key distribution and management are performed based on GBA technology. After GBA initialization, the key management node KMN and the data user node DUN share the symmetric key, and the data user node DUN secretly stores K s_DUN , used for subsequent key derivation.
[0123] like Figure 2 FIG. 1 is a flow chart of a data processing method provided by an embodiment of the present invention, and the method is executed by a data user node DUN. The method may include:
[0124] Step 201, sending a data delegate decryption request to a computing network delegate decryption node DDN, wherein the data delegate decryption request is used to request the DDN to decrypt a second target ciphertext from a data provider node DPN, wherein the second target ciphertext is stored in the computing network node CNN;
[0125] Here, when the data user node DUN needs to use the data shared by the data provider node DPN, the data user node DUN sends a data delegated decryption request to the computing network delegated decryption node DDN.
[0126] Optionally, the data delegation decryption request carries the access address of the DPN data to be shared. In this way, the computing network delegation decryption node DDN obtains the response data from the computing network node CNN based on the access address, that is, the second target ciphertext C in this embodiment. DUN .
[0127] Step 202, receiving a first target ciphertext sent by the DDN, wherein the first target ciphertext is obtained by the DDN after decrypting the second target ciphertext based on a delegate encryption key, and the delegate encryption key is obtained by the DDN from a key management node KMN;
[0128] Here, the computing network delegated decryption node DDN obtains the delegated encryption key K from the key management node KMN. DUN_DDN Specific process: The computing network delegated decryption node DDN requests the key management node KMN to obtain the delegated encryption key K DUN_DDN ; Key management node KMN is based on K s_DUN Calculate the shared key K between the data user node DUN and the data provider node DPN DUN_DPN (i.e., the target shared key in the following text); according to the shared key KDUN_DPN Calculate the delegate encryption key K DUN_DDN ; Finally, the key management node KMN will delegate the encryption key K DUN_DDN Transmitted to the computing network delegated decryption node DDN through a secure channel.
[0129] Through the above processing, part of the data decryption is completed by the decryption node DDN entrusted by the computing network, and the data user node does not need to perform a large number of decryption operations, which reduces the equipment performance requirements for the data user node.
[0130] Step 203: decrypt the first target ciphertext to obtain an initial plaintext.
[0131] Here, the data stored on the computing network nodes is encrypted data. During the entire data flow process, no relevant network elements except the data user nodes can obtain the final plaintext, which ensures the confidentiality of the data and avoids the possibility of less credible third-party computing network nodes obtaining sensitive data.
[0132] In an optional embodiment, the first target ciphertext is data after the initial plaintext is blinded; specifically, the first target ciphertext is obtained as follows: DDN is based on the delegated encryption key K DUN_DDN For the second target ciphertext C DUN Decryption obtains the first target ciphertext, which is the data M' after the initial plaintext is blinded. DUN , and the blinded data M' DUN Send to DUN. That is, DDN obtains the first target ciphertext M' through the following decryption algorithm D(C,K) DUN :
[0133] M' DUN =D(C DUN ,K DUN_DDN )
[0134] Accordingly, the above step 203 may specifically include:
[0135] Step 2031, obtaining the blinded key of the initial plaintext;
[0136] In an optional implementation, this step may specifically include:
[0137] ① Based on the first key, a target shared key between the data user node DUN and the DPN is calculated, wherein the first key is a shared symmetric key between the DUN and the KMN;
[0138] Here, the first key is denoted as K s_DUN , calculate the target shared key K between the data user node DUN and the DPN DUN_DPN .
[0139] Specifically, according to the first key K s_DUN , the string between DUN and DPN, the first random number RAND, the International Mobile Subscriber Identification Number (IMSI) and the DPN identification number ID DPN , calculate the target shared key K between the data user node DUN and the DPN DUN_DPN .
[0140] That is, the target shared key K between DUN and DPN is calculated by the following formula: DUN_DPN :
[0141] K DUN_DPN =KDF(K s_DUN ,"DUN_DPN",RAND,IMSI,ID DPN )
[0142] Among them, "DUN_DPN" is a string used to represent DUN and DPN. Here, KDF is a key derivation function, which is generally implemented based on a hash function. Related parameters can be concatenated and hashed.
[0143] ② According to the target shared key, a blinded root key is calculated;
[0144] Specifically, according to the target shared key K DUN_DPN and DUN ID DUN , calculate the blinded root key K DUN_DPN_M .
[0145] That is, the blinded root key K is calculated by the following formula: DUN_DPN_M :
[0146] K DUN_DPN_M =KDF(K DUN_DPN ,"DUN_DPN_M",ID DUN )
[0147] Here, "DUN_DPN_M" is a character string used to represent between DUN and DPN.
[0148] ③ According to the blinded root key, the blinded key is calculated.
[0149] Specifically, the blinded key K' is calculated by the following formula: DUN_DPN_M :
[0150] K' DUN_DPN_M =H(K DUN_DPN_M )
[0151] Among them, H is the key expansion function, which can unidirectionally expand the key to any length L.
[0152] Step 2032: decrypt the first target ciphertext based on the blinded key to obtain an initial plaintext.
[0153] In an optional implementation, this step may specifically include:
[0154] (1) decrypting the first target ciphertext according to the blinded key to obtain an intermediate plaintext;
[0155] Here, based on the blinded key K' DUN_DPN_M , for the first target ciphertext M' DUN Decryption based on the blinded key K' DUN_DPN_M , is the first target ciphertext M' DUN Specifically, the intermediate plaintext M' is calculated by the following formula.
[0156]
[0157] (2) Perform inverse length extension processing on the intermediate plaintext to obtain the initial plaintext.
[0158] Specifically, the initial plaintext M is calculated by the following formula:
[0159] M=F -1 (M')
[0160] Among them, F -1 is the inverse function of the expansion function F.
[0161] The data processing method of the embodiment of the present invention sends a data delegated decryption request to the computing network delegated decryption node DDN, wherein the data delegated decryption request is used to request the DDN to decrypt the second target ciphertext from the data provider node DPN, and the second target ciphertext is stored in the computing network node CNN; receives the first target ciphertext sent by the DDN, wherein the first target ciphertext is obtained by the DDN after decrypting the second target ciphertext based on the delegated encryption key, and the delegated encryption key is obtained by the DDN from the key management node KMN; decrypts the first target ciphertext to obtain the initial plaintext, so that part of the data decryption is completed by the computing network delegated decryption node DDN, and the data user node does not need to perform a large number of decryption operations, which reduces the equipment performance requirements for the data user node, and the data stored on the computing network node is encrypted data. During the entire data flow process, the relevant network elements except the data user node cannot obtain the final plaintext, which ensures the confidentiality of the data and avoids the possibility of a third-party computing network node with low credibility obtaining sensitive data.
[0162] like Figure 3 FIG. 1 is a flow chart of a data processing method provided by an embodiment of the present invention. The method is executed by a data provider node DPN. The method may include:
[0163] Step 301, encrypting the initial plaintext to obtain a first target ciphertext;
[0164] Among them, the first target ciphertext is the data after the initial plaintext is blinded, which can ensure the confidentiality of the data and avoid the possibility of a third-party computing network node with low credibility obtaining sensitive data.
[0165] Step 302, encrypting the first target ciphertext based on the delegate encryption key to obtain a second target ciphertext;
[0166] Step 303: transmit the second target ciphertext to the computing network node CNN.
[0167] It should be noted that the encrypted data and the second target ciphertext are entrusted to the computing network node CNN for secure storage and sharing of data, and the data provider node DPN and the data user node DUN do not need to be online for a long time.
[0168] The data processing method of the embodiment of the present invention obtains a first target ciphertext by encrypting the initial plaintext; encrypts the first target ciphertext based on the delegated encryption key to obtain a second target ciphertext; and transmits the second target ciphertext to the computing network node CNN. In this way, the data stored on the computing network node is encrypted data. During the entire data flow process, related network elements other than the data user node cannot obtain the final plaintext, thereby ensuring the confidentiality of the data and avoiding the possibility of a third-party computing network node with low credibility obtaining sensitive data.
[0169] In an optional embodiment, the above step 301 may specifically include:
[0170] Step 3011, obtaining the blinded key of the initial plaintext;
[0171] In an optional implementation, step 3011 may include:
[0172] 1) obtaining a target shared key between the data provider node DPN and the data user node DUN;
[0173] In an optional implementation, the step I) may include:
[0174] ① Sending a first key acquisition request to a key management node KMN, where the first key acquisition request is used to request to obtain a target shared key between the DPN and the DUN;
[0175] Here, when DPN needs to share data M (such as a large amount of video, a large amount of data, etc.) with DUN through the computing network, DPN sends a first key acquisition request to KMN to request to obtain the target shared key K between DPN and DUN. DUN_DPN .
[0176] ② Receive the target shared key sent by the KMN, wherein the target shared key is calculated by the KMN based on a first key, and the first key is a shared symmetric key between the DUN and the KMN.
[0177] It should be noted that after receiving the first key request sent by DPN, KMN first authenticates DPN (here KMN and DPN generally authenticate each other through IPSec or certificate-based https two-way authentication). After the identity authentication is passed, based on the first key K s_DUN , calculate the target shared key K between DPN and DUN DUN_DPN . Afterwards, it is transmitted to DPN through a secure channel.
[0178] Specifically, according to the first key K s_DUN , the string between DUN and DPN, the first random number RAND, the identification number ID of IMSI and DPN DPN , calculate the target shared key K between DPN and DUN DUN_DPN .
[0179] That is, the target shared key K between DPN and DUN is calculated by the following formula: DUN_DPN :
[0180] K DUN_DPN =KDF(K s_DUN ,"DUN_DPN",RAND,IMSI,ID DPN )
[0181] Among them, "DUN_DPN" is a string used to represent DUN and DPN. Here, KDF is a key derivation function, which is generally implemented based on a hash function. Related parameters can be concatenated and hashed.
[0182] II) calculating a blinded root key according to the target shared key;
[0183] Specifically, according to the target shared key K DUN_DPN and DUN ID DUN , calculate the blinded root key K DUN_DPN_M .
[0184] That is, the blinded root key K is calculated by the following formula: DUN_DPN_M :
[0185] K DUN_DPN_M =KDF(K DUN_DPN ,"DUN_DPN_M",ID DUN )
[0186] III) calculating the blinded key according to the blinded root key.
[0187] Specifically, the blinded key K' is calculated by the following formula: DUN_DPN_M :
[0188] K' DUN_DPN_M =H(K DUN_DPN_M )
[0189] Among them, H is the key expansion function, which can unidirectionally expand the key to any length L.
[0190] Step 3012: Encrypt the initial plaintext based on the blinded key to obtain a first target ciphertext.
[0191] Here, based on the blinded key K' DUN_DPN_M , the encryption of the initial plaintext, that is, based on the blinding key K' DUN_DPN_M , blinding the initial plaintext.
[0192] In an optional embodiment, the above step 3012 may include:
[0193] ① Extending the length of the initial plaintext to obtain an extended initial plaintext; wherein the length of the extended initial plaintext is greater than or equal to a preset length;
[0194] Here, DPN performs length extension, ie, security extension processing, on the initial plaintext M, so that the length of the initial plaintext M is greater than or equal to the security length L, and obtains the extended initial plaintext M'.
[0195] The specific processing can be expressed by the following formula:
[0196]
[0197] ② Encrypt the expanded initial plaintext according to the blinded key to obtain the first target ciphertext.
[0198] Specifically, the first target ciphertext M' is calculated by the following formula: DUN :
[0199]
[0200] Here, DPN performs security expansion processing on the initial plaintext M, calculates the blinding key based on the target shared key, and blinds the initial plaintext M to achieve blinding of the encrypted data M, ensuring the confidentiality of the data and avoiding the possibility of less credible third-party computing network nodes obtaining sensitive data.
[0201] In an optional embodiment, the above step 302 may include:
[0202] Step 3021, calculating the delegate encryption key according to the target shared key between the data provider node DPN and the data user node DUN;
[0203] Specifically, according to the target shared key K between DUN and DPN DUN_DPN , the string between DUN and DDN and the DUN ID DUN , calculate the entrusted encryption key K DUN_DDN .
[0204] That is, the entrusted encryption key K is calculated by the following formula: DUN_DDN :
[0205] K DUN_DDN =KDF(K DUN_DPN ,"DUN_DDN",ID DUN )
[0206] Here, "DUN_DDN" is a character string used to represent between DUN and DDN.
[0207] Step 3022: Encrypt the first target ciphertext based on the delegate encryption key to obtain the second target ciphertext.
[0208] Specifically, the first target ciphertext M' is obtained by the following formula: DUN Perform encryption processing and calculate the second target ciphertext C DUN :
[0209] C DUN =E(M' DUN ,K DUN_DDN )
[0210] Here, the encryption algorithm E(M, K) can be any symmetric encryption algorithm (such as DES, AES, etc.).
[0211] Finally, DPN selects the appropriate computing network node CNN based on security, credibility, etc., and sends the blinded encrypted second target ciphertext C DUN Transmitted to the computing network node CNN.
[0212] The data processing method of the embodiment of the present invention obtains a first target ciphertext by encrypting the initial plaintext; encrypts the first target ciphertext based on the delegated encryption key to obtain a second target ciphertext; and transmits the second target ciphertext to the computing network node CNN. In this way, the data stored on the computing network node is encrypted data. During the entire data flow process, related network elements other than the data user node cannot obtain the final plaintext, thereby ensuring the confidentiality of the data and avoiding the possibility of a third-party computing network node with low credibility obtaining sensitive data.
[0213] like Figure 4 FIG. 1 is a flow chart of a data processing method provided by an embodiment of the present invention. The method is executed by a computing network-entrusted decryption node DDN. The method may specifically include:
[0214] Step 401, receiving a data entrustment decryption request sent by a data user node DUN;
[0215] Here, when the data user node DUN needs to use the data shared by the data provider node DPN, the data user node DUN sends a data delegated decryption request to the computing network delegated decryption node DDN.
[0216] That is, DDN receives the data entrustment decryption request sent by DUN. Optionally, the data entrustment decryption request carries the access address of the data to be shared by DPN. In this way, the computing network entrustment decryption node DDN obtains the response data from the computing network node CNN based on the access address, that is, the second target ciphertext C in this embodiment. DUN .
[0217] Step 402, according to the data entrusted decryption request, obtaining the second target ciphertext of the data provider node DPN from the computing network node CNN;
[0218] Optionally, before the slave computing network node CNN obtains the second target ciphertext of the data provider node DPN, the method further includes:
[0219] The DUN is authenticated to obtain a verification result, wherein the verification result indicates that the verification is successful.
[0220] Here, DDN verifies the identity of DUN. After the identity verification is passed, it obtains the second target ciphertext C of the data provider node DPN from the computing network node CNN. DUN .
[0221] Step 403: decrypt the second target ciphertext based on the delegate encryption key to obtain the first target ciphertext;
[0222] Here, DDN uses the delegated encryption key K DUN_DDN , for the second target ciphertext C DUNDecryption is performed to obtain the first target ciphertext. That is, what is obtained is not a plaintext message, which ensures the security of the data. Moreover, part of the data decryption is completed by the computing network's entrusted decryption node DDN, which does not require the data user node to perform a large number of decryption operations, reducing the equipment performance requirements for the data user node; it can also achieve secure storage and sharing of data, and has a wide range of application scenarios.
[0223] Step 404: Send the first target ciphertext to the DUN.
[0224] In an optional embodiment, the above step 403 may specifically include:
[0225] (1) sending a second key acquisition request to the key management node KMN, where the second key acquisition request is used to request to obtain a delegate encryption key;
[0226] (2) receiving the delegated encryption key sent by the KMN, where the delegated encryption key is calculated by the KMN based on a first key, where the first key is a shared symmetric key between the DUN and the KMN;
[0227] Here, after KMN receives the second key acquisition request sent by DDN, based on the first key K s_DUN Calculate the target shared key K between DUN and DPN DUN_DPN ;
[0228] Specifically, according to the first key K s_DUN , the string between DUN and DPN, the first random number RAND, the identification number ID of IMSI and DPN DPN , calculate the target shared key K between DUN and DPN DUN_DPN .
[0229] That is, the target shared key K between DUN and DPN is calculated by the following formula: DUN_DPN :
[0230] K DUN_DPN =KDF(K s_DUN ,"DUN_DPN",RAND,IMSI,ID DPN )
[0231] Among them, "DUN_DPN" is a string used to represent DUN and DPN. Here, KDF is a key derivation function, which is generally implemented based on a hash function. The relevant parameters can be concatenated and hashed.
[0232] Afterwards, according to the shared key K DUN_DPN Calculate the delegate encryption key K DUN_DDN ;
[0233] Specifically, according to the target shared key K between DUN and DPN DUN_DPN , the string between DUN and DDN and the DUN ID DUN , calculate the entrusted encryption key K DUN_DDN .
[0234] That is, the entrusted encryption key K is calculated by the following formula: DUN_DDN :
[0235] K DUN_DDN =KDF(K DUN_DPN ,"DUN_DDN",ID DUN )
[0236] Here, "DUN_DDN" is a character string used to represent between DUN and DDN.
[0237] Finally, the key management node KMN will delegate the encryption key K DUN_DDN Transmitted to the computing network delegated decryption node DDN through a secure channel.
[0238] (3) Based on the entrusted encryption key, decrypt the second target ciphertext to obtain the first target ciphertext.
[0239] DDN is based on the entrusted encryption key K DUN_DDN For the second target ciphertext C DUN Decryption obtains the first target ciphertext, which is the data M' after the initial plaintext is blinded. DUN , and the blinded data M' DUN Send to DUN. That is, DDN obtains the first target ciphertext M' through the following decryption algorithm D(C,K) DUN :
[0240] M' DUN =D(C DUN ,K DUN_DDN )
[0241] The data processing method of the embodiment of the present invention receives a data delegated decryption request sent by a data user node DUN; obtains a second target ciphertext of a data provider node DPN from a computing network node CNN according to the data delegated decryption request; then decrypts the second target ciphertext based on a delegated encryption key to obtain a first target ciphertext; and finally sends the first target ciphertext to the DUN. In this way, part of the data decryption is completed by the computing network delegated decryption node DDN, and the data user node does not need to perform a large number of decryption operations, thereby reducing the equipment performance requirements for the data user node.
[0242] The following uses an example to illustrate the implementation process of the method of the present invention from the perspective of interaction between devices.
[0243] 1. Data blinding and encrypted storage process:
[0244] 1) When DPN has data M (such as a large amount of video, a large amount of data, etc.) that needs to be shared with DUN through the computing network, DPN initiates a business key acquisition request to KMN to obtain the shared key with DUN.
[0245] 2) After KMN verifies the identity of DPN (DPN is equivalent to NAF in GBA, KMN and DPN are usually authenticated through IPSec or certificate-based https two-way authentication), based on K s_DUN Calculate the shared key K of DUN and DPN DUN_DPN :
[0246] K DUN_DPN =KDF(K s_DUN ,"DUN_DPN",RAND,IMSI,ID DPN )
[0247] Here, KDF is a key derivation function, which is generally implemented based on a hash function. Related parameters can be concatenated and hashed.
[0248] 3) DPN performs security extension processing on the shared data M so that the length of M exceeds the security length L.
[0249]
[0250] 4)DPN is based on the shared key K DUN_DPN Calculate the blinded root key K DUN_DPN_M .
[0251] K DUN_DPN_M =KDF(K DUN_DPN ,"DUN_DPN_M",ID DUN )
[0252] 5) Then DPN calculates the blinding key K' of plaintext M based on the length of M' |M'| DUN_DPN_M :
[0253] K' DUN_DPN_M =H(K DUN_DPN_M )
[0254] 6) DPN performs blind processing on the data M':
[0255]
[0256] 7)DPN is based on the shared key K DUN_DPN Calculate the delegate encryption key K DUN_DDN :
[0257] K DUN_DDN =KDF(K DUN_DPN ,"DUN_DDN",ID DUN )
[0258] 8) DPN uses K DUN_DDN After blinding, M' DUN Encryption is performed, where the encryption algorithm E(M,K) can be any symmetric encryption algorithm (such as DES, AES, etc.):
[0259] C DUN =E(M' DUN ,K DUN_DDN )
[0260] 9)DPN selects the appropriate computing network node CNN based on security and credibility, and converts the blinded encrypted ciphertext C DUN Uploaded to CNN.
[0261] 2. Data entrustment decryption process:
[0262] 1) When DUN needs to use the data shared by DPN, DUN initiates a data entrustment decryption request to DDN and sends the data access address (such as URL, etc.) to DDN.
[0263] 2) After DDN verifies DUN's identity (based on K s_DUN etc., using multiple identity authentication methods such as HTTPS) to obtain data C from CNN DUN .
[0264] 3) DDN requests KMN to obtain the delegated encryption key K DUN_DDN , KMN is based on K s_DUN Calculate the shared key K of DUN and DPN DUN_DPN , according to the shared key K DUN_DPN Calculate the delegate encryption key K DUN_DDN , K DUN_DDN Sent to DDN via a secure channel.
[0265] 4) DDN uses K DUN_DDN Decryption C DUN Get blinded data M' DUN , and the blinded data M' DUN Sent to DUN, where D(C,K) is the decryption algorithm
[0266] M' DUN =D(C DUN ,K DUN_DDN )
[0267] 5) DUN is based on K s_DUNCalculate the shared key K of DUN and DPN DUN_DPN , then calculate the blinded root key K DUN_DPN_M , and then calculate the blinding key K' of the plaintext M DUN_DPN_M , for the blinded data M' DUN Perform de-blinding processing to restore the original plaintext M.
[0268]
[0269] It should be noted that the key hierarchy of the scheme of the present invention is shown in Figure 5 The present invention is applicable to a secure key hierarchy architecture for data entrusted decryption, and provides an effective key generation and key update mechanism for the entire solution.
[0270] like Figure 6 As shown, an embodiment of the present invention provides a data processing device, the device comprising:
[0271] The first sending module 601 is used to send a data delegation decryption request to the computing network delegation decryption node DDN, wherein the data delegation decryption request is used to request the DDN to decrypt a second target ciphertext from the data provider node DPN, wherein the second target ciphertext is stored in the computing network node CNN;
[0272] A first receiving module 602 is configured to receive a first target ciphertext sent by a DDN, wherein the first target ciphertext is obtained by the DDN after decrypting the second target ciphertext based on a delegate encryption key, and the delegate encryption key is obtained by the DDN from a key management node KMN;
[0273] The first processing module 603 is used to decrypt the first target ciphertext to obtain an initial plaintext.
[0274] Optionally, the first target ciphertext is data after the initial plaintext is blinded; accordingly, the first processing module 603 may include:
[0275] A first acquisition unit, used to acquire a blinded key of an initial plaintext;
[0276] The first processing unit is used to decrypt the first target ciphertext based on the blinding key to obtain an initial plaintext.
[0277] Optionally, the first acquiring unit is specifically used for:
[0278] Based on the first key, a target shared key between the data user node DUN and the DPN is calculated, wherein the first key is a shared symmetric key between the DUN and the KMN;
[0279] Calculate and obtain a blinded root key according to the target shared key;
[0280] The blinded key is obtained by calculation according to the blinded root key.
[0281] Optionally, the first processing unit is specifically configured to:
[0282] Decrypting the first target ciphertext according to the blinded key to obtain an intermediate plaintext;
[0283] The intermediate plaintext is subjected to inverse length extension processing to obtain the initial plaintext.
[0284] Optionally, the data delegation decryption request carries an access address of the DPN data to be shared.
[0285] The data processing device of the embodiment of the present invention sends a data delegated decryption request to the computing network delegated decryption node DDN, wherein the data delegated decryption request is used to request the DDN to decrypt the second target ciphertext from the data provider node DPN, and the second target ciphertext is stored in the computing network node CNN; receives the first target ciphertext sent by the DDN, wherein the first target ciphertext is obtained by the DDN after decrypting the second target ciphertext based on the delegated encryption key, and the delegated encryption key is obtained by the DDN from the key management node KMN; decrypts the first target ciphertext to obtain an initial plaintext, so that part of the data decryption is completed by the computing network delegated decryption node DDN, and the data user node does not need to perform a large number of decryption operations, thereby reducing the equipment performance requirements for the data user node, and the data stored on the computing network node is encrypted data. During the entire data flow process, relevant network elements except the data user node cannot obtain the final plaintext, thereby ensuring the confidentiality of the data and avoiding the possibility of a third-party computing network node with low credibility obtaining sensitive data.
[0286] like Figure 7 As shown, an embodiment of the present invention further provides a data processing device, the device comprising:
[0287] The second processing module 701 is used to encrypt the initial plaintext to obtain a first target ciphertext;
[0288] A third processing module 702 is used to encrypt the first target ciphertext based on the delegate encryption key to obtain a second target ciphertext;
[0289] The transmission module 703 is used to transmit the second target ciphertext to the computing network node CNN.
[0290] Optionally, the second processing module 701 includes:
[0291] A second acquisition unit, used to acquire a blinded key of an initial plaintext;
[0292] The second processing unit is used to encrypt the initial plaintext based on the blinding key to obtain a first target ciphertext.
[0293] Optionally, the second acquiring unit is specifically configured to:
[0294] Obtain the target shared key between the data provider node DPN and the data user node DUN;
[0295] Calculate and obtain a blinded root key according to the target shared key;
[0296] The blinded key is obtained by calculation according to the blinded root key.
[0297] Optionally, the second acquiring unit is specifically configured to:
[0298] Sending a first key acquisition request to a key management node KMN, where the first key acquisition request is used to request to obtain a target shared key between the DPN and the DUN;
[0299] The target shared key is received from the KMN, wherein the target shared key is calculated by the KMN based on a first key, and the first key is a shared symmetric key between the DUN and the KMN.
[0300] Optionally, the second processing unit is specifically configured to:
[0301] Extending the length of the initial plaintext to obtain an extended initial plaintext; wherein the length of the extended initial plaintext is greater than or equal to a preset length;
[0302] The expanded initial plaintext is encrypted according to the blinding key to obtain the first target ciphertext.
[0303] Optionally, the third processing module 702 may include:
[0304] A third processing unit, configured to calculate the delegate encryption key according to a target shared key between the data provider node DPN and the data user node DUN;
[0305] The fourth processing unit is used to encrypt the first target ciphertext based on the delegate encryption key to obtain the second target ciphertext.
[0306] The data processing device of the embodiment of the present invention obtains a first target ciphertext by encrypting the initial plaintext; encrypts the first target ciphertext based on the delegated encryption key to obtain a second target ciphertext; and transmits the second target ciphertext to the computing network node CNN. In this way, the data stored on the computing network node is encrypted data. During the entire data flow process, related network elements other than the data user node cannot obtain the final plaintext, thereby ensuring the confidentiality of the data and avoiding the possibility of a third-party computing network node with low credibility obtaining sensitive data.
[0307] like Figure 8 As shown, an embodiment of the present invention further provides a data processing device, the device comprising:
[0308] The second receiving module 801 is used to receive a data entrustment decryption request sent by a data user node DUN;
[0309] The fourth processing module 802 is used to obtain the second target ciphertext of the data provider node DPN from the computing network node CNN according to the data entrusted decryption request;
[0310] A fifth processing module 803 is used to decrypt the second target ciphertext based on the delegate encryption key to obtain the first target ciphertext;
[0311] The second sending module 804 is configured to send the first target ciphertext to the DUN.
[0312] Optionally, the fifth processing module 803 includes:
[0313] A first sending unit, configured to send a second key acquisition request to a key management node KMN, where the second key acquisition request is used to request to obtain a delegate encryption key;
[0314] A first receiving unit, configured to receive the delegated encryption key sent by the KMN, where the delegated encryption key is calculated by the KMN based on a first key, where the first key is a shared symmetric key between the DUN and the KMN;
[0315] The fifth processing unit is used to decrypt the second target ciphertext based on the delegate encryption key to obtain the first target ciphertext.
[0316] Optionally, the device in the embodiment of the present invention further includes:
[0317] The verification module is used to authenticate the DUN and obtain a verification result, wherein the verification result indicates that the verification is passed.
[0318] The data processing device of the embodiment of the present invention receives a data delegated decryption request sent by a data user node DUN; obtains a second target ciphertext of a data provider node DPN from a computing network node CNN according to the data delegated decryption request; then decrypts the second target ciphertext based on a delegated encryption key to obtain a first target ciphertext; and finally sends the first target ciphertext to the DUN. In this way, part of the data decryption is completed by the computing network delegated decryption node DDN, and the data user node does not need to perform a large number of decryption operations, thereby reducing the equipment performance requirements for the data user node.
[0319] In order to better achieve the above goals, Fig. 9 As shown, an embodiment of the present invention further provides a data user node, including a processor 900 and a transceiver 910, wherein the processor 900 is configured to execute the following process:
[0320] Sending a data delegate decryption request to the computing network delegate decryption node DDN, wherein the data delegate decryption request is used to request the DDN to decrypt a second target ciphertext from the data provider node DPN, wherein the second target ciphertext is stored in the computing network node CNN;
[0321] Receiving a first target ciphertext sent by a DDN, wherein the first target ciphertext is obtained by the DDN after decrypting the second target ciphertext based on a delegate encryption key, and the delegate encryption key is obtained by the DDN from a key management node KMN;
[0322] The first target ciphertext is decrypted to obtain an initial plaintext.
[0323] Optionally, the first target ciphertext is data after blinding processing of the initial plaintext; accordingly, the processor 900 is further configured to:
[0324] Obtain the blinding key of the initial plaintext;
[0325] Based on the blinded key, the first target ciphertext is decrypted to obtain an initial plaintext.
[0326] Optionally, the processor 900 is further configured to:
[0327] Based on the first key, a target shared key between the data user node DUN and the DPN is calculated, wherein the first key is a shared symmetric key between the DUN and the KMN;
[0328] Calculate and obtain a blinded root key according to the target shared key;
[0329] The blinded key is obtained by calculation according to the blinded root key.
[0330] Optionally, the processor 900 is further configured to:
[0331] Decrypting the first target ciphertext according to the blinded key to obtain an intermediate plaintext;
[0332] The intermediate plaintext is subjected to inverse length extension processing to obtain the initial plaintext.
[0333] Optionally, the data delegation decryption request carries an access address of the DPN data to be shared.
[0334] The data user node of the embodiment of the present invention sends a data delegated decryption request to the computing network delegated decryption node DDN, wherein the data delegated decryption request is used to request the DDN to decrypt the second target ciphertext from the data provider node DPN, and the second target ciphertext is stored in the computing network node CNN; receives the first target ciphertext sent by the DDN, wherein the first target ciphertext is obtained by the DDN after decrypting the second target ciphertext based on the delegated encryption key, and the delegated encryption key is obtained by the DDN from the key management node KMN; decrypts the first target ciphertext to obtain an initial plaintext, so that part of the data decryption is completed by the computing network delegated decryption node DDN, and the data user node does not need to perform a large number of decryption operations, thereby reducing the equipment performance requirements for the data user node, and the data stored on the computing network node is encrypted data. During the entire data flow process, relevant network elements except the data user node cannot obtain the final plaintext, thereby ensuring the confidentiality of the data and avoiding the possibility of a third-party computing network node with low credibility obtaining sensitive data.
[0335] In order to better achieve the above goals, Fig.10 As shown, an embodiment of the present invention further provides a data provider node, including a processor 1000 and a transceiver 1010, wherein the processor 1000 is configured to execute the following process:
[0336] Encrypt the initial plaintext to obtain the first target ciphertext;
[0337] Encrypting the first target ciphertext based on the delegate encryption key to obtain a second target ciphertext;
[0338] The second target ciphertext is transmitted to the computing network node CNN.
[0339] Optionally, the processor 1000 is further configured to:
[0340] Obtain the blinding key of the initial plaintext;
[0341] The initial plaintext is encrypted based on the blinding key to obtain a first target ciphertext.
[0342] Optionally, the processor 1000 is further configured to:
[0343] Obtain the target shared key between the data provider node DPN and the data user node DUN;
[0344] Calculate and obtain a blinded root key according to the target shared key;
[0345] The blinded key is obtained by calculation according to the blinded root key.
[0346] Optionally, the transceiver 1010 is further configured to:
[0347] Sending a first key acquisition request to a key management node KMN, where the first key acquisition request is used to request to obtain a target shared key between the DPN and the DUN;
[0348] The target shared key is received from the KMN, wherein the target shared key is calculated by the KMN based on a first key, and the first key is a shared symmetric key between the DUN and the KMN.
[0349] Optionally, the processor 1000 is further configured to:
[0350] Extending the length of the initial plaintext to obtain an extended initial plaintext; wherein the length of the extended initial plaintext is greater than or equal to a preset length;
[0351] The expanded initial plaintext is encrypted according to the blinding key to obtain the first target ciphertext.
[0352] Optionally, the processor 1000 is further configured to:
[0353] The delegate encryption key is calculated based on the target shared key between the data provider node DPN and the data user node DUN;
[0354] The first target ciphertext is encrypted based on the delegate encryption key to obtain the second target ciphertext.
[0355] The data provider node of the embodiment of the present invention obtains a first target ciphertext by encrypting the initial plaintext; encrypts the first target ciphertext based on the delegated encryption key to obtain a second target ciphertext; and transmits the second target ciphertext to the computing network node CNN. In this way, the data stored on the computing network node is encrypted data. During the entire data flow process, related network elements other than the data user node cannot obtain the final plaintext, thereby ensuring the confidentiality of the data and avoiding the possibility of a third-party computing network node with low credibility obtaining sensitive data.
[0356] In order to better achieve the above goals, Fig.11As shown, an embodiment of the present invention further provides a computing network entrusted decryption node, including a processor 1100 and a transceiver 1110, wherein the processor 1100 is used to perform the following process:
[0357] Receive a data delegation decryption request sent by a data user node DUN;
[0358] According to the data entrusted decryption request, obtaining a second target ciphertext of the data provider node DPN from the computing network node CNN;
[0359] decrypting the second target ciphertext based on the delegate encryption key to obtain the first target ciphertext;
[0360] The first target ciphertext is sent to the DUN.
[0361] Optionally, the transceiver 1110 is further configured to:
[0362] Sending a second key acquisition request to the key management node KMN, where the second key acquisition request is used to request to obtain a delegate encryption key;
[0363] receiving the delegated encryption key sent by the KMN, where the delegated encryption key is calculated by the KMN based on a first key, where the first key is a shared symmetric key between the DUN and the KMN;
[0364] Accordingly, the processor 1100 is further configured to:
[0365] The second target ciphertext is decrypted based on the delegate encryption key to obtain the first target ciphertext.
[0366] Optionally, the processor 1100 is further configured to:
[0367] The DUN is authenticated to obtain a verification result, wherein the verification result indicates that the verification is successful.
[0368] The computing network delegated decryption node of the embodiment of the present invention receives a data delegated decryption request sent by a data user node DUN; obtains a second target ciphertext of a data provider node DPN from the computing network node CNN according to the data delegated decryption request; then decrypts the second target ciphertext based on the delegated encryption key to obtain a first target ciphertext; and finally sends the first target ciphertext to the DUN. In this way, part of the data decryption is completed by the computing network delegated decryption node DDN, and the data user node does not need to perform a large number of decryption operations, thereby reducing the equipment performance requirements for the data user node.
[0369] An embodiment of the present invention also provides a data user node, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the various processes in the data processing method embodiment described above are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0370] An embodiment of the present invention also provides a data provider node, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, each process in the data processing method embodiment described above is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0371] An embodiment of the present invention also provides a computing network delegated decryption node, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the various processes in the data processing method embodiment described above are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0372] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, each process in the data processing method embodiment described above is implemented, and the same technical effect can be achieved. To avoid repetition, it is not described here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0373] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0374] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A device that specifies functions in one or more processes and / or one or more blocks.
[0375] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable storage medium produce a paper product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0376] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that the computer or other programmable device executes a series of operating steps to produce a computer-implemented process, thereby providing instructions executed on the computer or other programmable device for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0377] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A data processing method, executed by a data user node, characterized in that: include: Sending a data delegate decryption request to the computing network delegate decryption node DDN, wherein the data delegate decryption request is used to request the DDN to decrypt a second target ciphertext from the data provider node DPN, wherein the second target ciphertext is stored in the computing network node CNN; Receiving a first target ciphertext sent by a DDN, wherein the first target ciphertext is obtained by the DDN after decrypting the second target ciphertext based on a delegate encryption key, and the delegate encryption key is obtained by the DDN from a key management node KMN; The first target ciphertext is decrypted to obtain an initial plaintext.
2. The method according to claim 1, characterized in that The first target ciphertext is data after the initial plaintext is blinded; The decrypting the first target ciphertext to obtain an initial plaintext includes: Obtain the blinding key of the initial plaintext; Based on the blinding key, the first target ciphertext is decrypted to obtain an initial plaintext.
3. The method according to claim 2, characterized in that The step of obtaining a blinded key of an initial plaintext includes: Based on the first key, a target shared key between the data user node DUN and the DPN is calculated, wherein the first key is a shared symmetric key between the DUN and the KMN; Calculate and obtain a blinded root key according to the target shared key; The blinded key is obtained by calculation according to the blinded root key.
4. The method according to claim 2, characterized in that The decrypting the first target ciphertext based on the blinded key to obtain an initial plaintext includes: Decrypting the first target ciphertext according to the blinded key to obtain an intermediate plaintext; The intermediate plaintext is subjected to inverse length extension processing to obtain the initial plaintext.
5. The method according to claim 1, characterized in that The data delegation decryption request carries the access address of the DPN data to be shared.
6. A data processing method, executed by a data provider node, characterized in that: include: Encrypt the initial plaintext to obtain the first target ciphertext; Encrypting the first target ciphertext based on the delegate encryption key to obtain a second target ciphertext; The second target ciphertext is transmitted to the computing network node CNN.
7. The method according to claim 6, characterized in that The encrypting the initial plaintext to obtain the first target ciphertext includes: Obtain the blinding key of the initial plaintext; The initial plaintext is encrypted based on the blinding key to obtain a first target ciphertext.
8. The method according to claim 7, characterized in that The step of obtaining a blinded key of an initial plaintext includes: Obtain the target shared key between the data provider node DPN and the data user node DUN; Calculate and obtain a blinded root key according to the target shared key; The blinded key is obtained by calculation according to the blinded root key.
9. The method according to claim 8, characterized in that The step of obtaining a target shared key between the data provider node DPN and the data user node DUN includes: Sending a first key acquisition request to a key management node KMN, where the first key acquisition request is used to request to obtain a target shared key between the DPN and the DUN; The target shared key is received from the KMN, wherein the target shared key is calculated by the KMN based on a first key, and the first key is a shared symmetric key between the DUN and the KMN.
10. The method according to claim 7, characterized in that The step of encrypting the initial plaintext based on the blinded key to obtain a first target ciphertext includes: Extending the length of the initial plaintext to obtain an extended initial plaintext; wherein the length of the extended initial plaintext is greater than or equal to a preset length; The expanded initial plaintext is encrypted according to the blinding key to obtain the first target ciphertext.
11. The method according to claim 6, characterized in that The step of encrypting the first target ciphertext based on the delegate encryption key to obtain the second target ciphertext includes: The delegate encryption key is calculated based on the target shared key between the data provider node DPN and the data user node DUN; The first target ciphertext is encrypted based on the delegate encryption key to obtain the second target ciphertext.
12. A data processing method, executed by a computing network entrusting a decryption node, characterized in that: include: Receive a data delegation decryption request sent by a data user node DUN; According to the data entrusted decryption request, obtaining a second target ciphertext of the data provider node DPN from the computing network node CNN; decrypting the second target ciphertext based on the delegate encryption key to obtain the first target ciphertext; The first target ciphertext is sent to the DUN.
13. The method according to claim 12, characterized in that The decrypting the second target ciphertext based on the delegate encryption key to obtain the first target ciphertext includes: Sending a second key acquisition request to the key management node KMN, where the second key acquisition request is used to request to obtain a delegate encryption key; receiving the delegated encryption key sent by the KMN, where the delegated encryption key is calculated by the KMN based on a first key, where the first key is a shared symmetric key between the DUN and the KMN; The second target ciphertext is decrypted based on the delegate encryption key to obtain the first target ciphertext.
14. The method according to claim 12, characterized in that Before the second target ciphertext of the data provider node DPN is obtained from the computing network node CNN, the method further includes: The DUN is authenticated to obtain a verification result, wherein the verification result indicates that the verification is successful.
15. A data processing device, characterized in that: include: A first sending module is used to send a data delegation decryption request to a computing network delegation decryption node DDN, wherein the data delegation decryption request is used to request the DDN to decrypt a second target ciphertext from a data provider node DPN, wherein the second target ciphertext is stored in the computing network node CNN; A first receiving module, configured to receive a first target ciphertext sent by a DDN, wherein the first target ciphertext is obtained by the DDN after decrypting the second target ciphertext based on a delegated encryption key, and the delegated encryption key is obtained by the DDN from a key management node KMN; The first processing module is used to decrypt the first target ciphertext to obtain an initial plaintext.
16. A data processing device, characterized in that: include: A second processing module is used to encrypt the initial plaintext to obtain a first target ciphertext; A third processing module, configured to encrypt the first target ciphertext based on the delegate encryption key to obtain a second target ciphertext; A transmission module is used to transmit the second target ciphertext to the computing network node CNN.
17. A data processing device, characterized in that: include: The second receiving module is used to receive a data entrustment decryption request sent by the data user node DUN; A fourth processing module is used to obtain a second target ciphertext of the data provider node DPN from the computing network node CNN according to the data entrusted decryption request; a fifth processing module, configured to decrypt the second target ciphertext based on the delegate encryption key to obtain the first target ciphertext; The second sending module is used to send the first target ciphertext to the DUN.
18. A data user node, comprising a processor and a transceiver, wherein the transceiver receives and sends data under the control of the processor, characterized in that: The processor is configured to perform the following operations: Sending a data delegate decryption request to the computing network delegate decryption node DDN, wherein the data delegate decryption request is used to request the DDN to decrypt a second target ciphertext from the data provider node DPN, wherein the second target ciphertext is stored in the computing network node CNN; Receiving a first target ciphertext sent by a DDN, wherein the first target ciphertext is obtained by the DDN after decrypting the second target ciphertext based on a delegate encryption key, and the delegate encryption key is obtained by the DDN from a key management node KMN; The first target ciphertext is decrypted to obtain an initial plaintext.
19. A data provider node, comprising a processor and a transceiver, characterized in that: The transceiver receives and sends data under the control of the processor, and the processor is used to perform the following process: Encrypt the initial plaintext to obtain the first target ciphertext; Encrypting the first target ciphertext based on the delegate encryption key to obtain a second target ciphertext; The second target ciphertext is transmitted to the computing network node CNN.
20. A computing network entrusted decryption node, comprising a processor and a transceiver, characterized in that: The transceiver receives and sends data under the control of the processor, and the processor is used to perform the following process: Receive a data delegation decryption request sent by a data user node DUN; According to the data entrusted decryption request, obtaining a second target ciphertext of the data provider node DPN from the computing network node CNN; decrypting the second target ciphertext based on the delegate encryption key to obtain the first target ciphertext; The first target ciphertext is sent to the DUN.
21. A data user node, comprising a memory, a processor, and a program stored in the memory and executable on the processor; characterized in that: When the processor executes the program, the data processing method according to any one of claims 1 to 5 is implemented.
22. A data provider node, comprising a memory, a processor, and a program stored in the memory and executable on the processor; characterized in that: When the processor executes the program, the data processing method according to any one of claims 6 to 11 is implemented.
23. A computing network entrusted decryption node, comprising a memory, a processor, and a program stored in the memory and executable on the processor; characterized in that: When the processor executes the program, the data processing method according to any one of claims 12 to 14 is implemented.
24. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it implements the steps in the data processing method as described in any one of claims 1 to 5, or the steps in the data processing method as described in any one of claims 6 to 11, or the steps in the data processing method as described in any one of claims 12 to 14.
