A data security circulation method based on cross-domain data exchange and sharing platform

The data is encrypted and calculated through the integer polynomial ring Zp[x] fully homomorphic encryption algorithm, which solves the problems of data structure changes and privacy leakage, and realizes the safe and efficient circulation of data in big data scenarios.

CN118312486BActive Publication Date: 2024-09-06ZHEJIANG TOPCHEER INFORMATION TECH
View PDF 0 Cites -1 Cited by

Patent Information

Application Number
CN202410744947.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-06
Estimated Expiration
2044-06-11

Smart Images

  • Figure CN118312486B
    Figure CN118312486B
Patent Text Reader

Abstract

The present invention discloses a data security circulation method based on a cross-domain data exchange and sharing platform, comprising: obtaining a query task of a data requester, wherein the query task includes a query identifier and its application business; using an integer polynomial ring Z p [x] is used to encrypt the query identifier using a fully homomorphic encryption algorithm; the encrypted data is added to the query request and sent out. In the present invention, the integer polynomial ring Z is used p [x] Encrypt the plaintext data to obtain the encrypted ciphertext data, then perform algebraic calculations such as addition, subtraction, multiplication and division, or basic function calculations on the encrypted ciphertext data, decrypt the ciphertext data obtained after the calculation, and obtain the final calculation result; the encrypted data of this method has very good security, and after the data is encrypted, the relationship between the data is not destroyed, and various types of calculations can still be performed on the encrypted data, and the correctness of the calculation results is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data security technology, and in particular to a data security circulation method based on a cross-domain data exchange and sharing platform. Background Art

[0002] With the in-depth development of informatization and digitalization, promoting horizontal and vertical data exchange among departments and realizing cross-level, cross-regional, cross-departmental, cross-system, and cross-network data sharing and business collaboration have become the key to digitalization and even digital intelligence. Ensuring the convenient transmission and transmission security of structured data, semi-structured data, and unstructured data of various departments has become an urgent need for data sharing and exchange systems.

[0003] The existing Chinese invention patent "A cross-network data sharing and exchange system" with publication number 202310922635.6 includes encryption, decryption and desensitization in data security transmission. Through data encryption and decryption technology and data desensitization technology, encryption technology is used when data is stored in the warehouse, and decrypted when the data is read. When desensitized data is needed, it is decrypted and then returned desensitized.

[0004] However, for the above technical solution, first of all, if the data is encrypted using a common encryption method, the plaintext data structure will change, destroying the relationship between the data. The ciphertext after the data is encrypted cannot be calculated, resulting in the service not being able to proceed normally or returning erroneous service results. These data cannot be applied in big data scenarios, such as machine learning calculations, etc., and the data loses its use value.

[0005] Secondly, in the traditional service model, users submit service requests and service parameters through the terminal, and the service provider processes the data on the server side. In this process, the data runs in plain text on the server side, which poses a risk of privacy leakage. Summary of the invention

[0006] In order to solve the technical problems mentioned in the above background technology, a data security circulation method based on a cross-domain data exchange and sharing platform is proposed.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions:

[0008] A data security circulation method based on a cross-domain data exchange and sharing platform, comprising:

[0009] Obtaining a query task of a data requester, wherein the query task includes a query identifier and its application service;

[0010] Based on integer polynomial ring Z p[x] uses a fully homomorphic encryption algorithm to encrypt the query identifier;

[0011] Add the encrypted data to the query request and send it out;

[0012] After receiving the query request, the data provider will gradually open the query restrictions. After the final query restrictions are opened, the data requester can query the complete data of the corresponding query request. As time goes by, the power assignment of query restriction openers with different power attributes is redistributed. The redistributed power assignment is subject to the power attributes, the number of query restriction openers and the time threshold.

[0013] The method adopts the integer polynomial ring Z p The query identifier is encrypted using the fully homomorphic encryption algorithm of [x], including:

[0014] Construct the integer polynomial ring Z p [x], through the integer polynomial ring Z p [x] Encrypt the query identifier to obtain the corresponding ciphertext matrix, perform homomorphic calculation on the ciphertext matrix to obtain the calculated ciphertext matrix, decrypt the calculated ciphertext matrix to obtain the decrypted query identifier, determine the data provider who receives the query task, and use the decrypted query identifier to join the query request.

[0015] The plaintext data passes through the integer polynomial ring Z p After encryption by the fully homomorphic encryption algorithm of [x], the data structure does not change, and the generated ciphertext data can be calculated. In the encryption algorithm, the user inputs the plaintext to be encrypted, and the ciphertext is obtained after encryption by the encryption algorithm. The function to be calculated and the ciphertext are stored in the cloud. After the cloud performs function calculation on the ciphertext, the calculation result is returned. The user verifies and decrypts to obtain the final result. In this way, the ciphertext data can be calculated while protecting the data privacy.

[0016] As a further description of the above technical solution:

[0017] The method adopts the integer polynomial ring Z p The query identifier is encrypted using the fully homomorphic encryption algorithm of [x], which also includes:

[0018] Determine the security level of the query identifier according to the type of the query identifier and the application service of the query identifier;

[0019] According to the security level corresponding to the query identifier, an integer polynomial ring Z having the security level is selected. p [x] A fully homomorphic encryption algorithm, which uses a selected encryption algorithm to encrypt the query identifier.

[0020] As a further description of the above technical solution:

[0021] According to the security level corresponding to the query identifier, an integer polynomial ring Z having the security level is selected. p [x] Fully homomorphic encryption algorithm, including:

[0022] If the security level corresponding to the query identifier is low, then select f i (x)=x+1;

[0023] If the security level corresponding to the query identifier is high, then select f i (x)=x y ·H, where H=Q·A·Q -1 , Q is a reversible matrix of order n, Q -1 is the inverse matrix of matrix Q, A is a diagonal matrix of order n, and y is the degree of x;

[0024] f i (x)∈Z p [x].

[0025] As a further description of the above technical solution:

[0026] The method adopts the integer polynomial ring Z p The query identifier is encrypted using the fully homomorphic encryption algorithm of [x], including:

[0027] KeyGen:

[0028] For f i (x)∈Z p [x], select a random integer a i ,r i ∈Z, so the public key pk= <b0,b1,…,b n >, for each b i =a i f i (x)+r i , among which b0 has the highest frequency, f i (x) is a monomial of degree n;

[0029] Encrypt:

[0030] Randomly select a subset of integers S∈{1,2,…,n},

[0031] Input: public key pk, plaintext m∈{0,1}, randomly selected r∈(-2 2ρ ,2 2ρ ),

[0032] Output: ciphertext c=[m+2r+2∑ i∈S bi ]modb0;

[0033] Evaluate:

[0034] Input: ciphertext data c to be operated i ,i=1,2,…;

[0035] Output: the result after homomorphic calculation;

[0036] Decrypt:

[0037] Input: ciphertext c, key sk,

[0038] Output: m=(cmodx)mod2.

[0039] As a further description of the above technical solution:

[0040] The homomorphic calculation is homomorphic addition calculation, homomorphic subtraction calculation, homomorphic multiplication calculation, and homomorphic division calculation;

[0041] Homomorphic addition calculation: given a public key pk, ciphertext c1, c2, then c=[c1+c2]modb0;

[0042] Homomorphic subtraction calculation: given the public key pk, ciphertext c1, c2, then c=[c1-c2]modb0;

[0043] Homomorphic multiplication calculation: given a public key pk, ciphertext c1, c2, then c=[c1·c2]modb0;

[0044] Homomorphic division calculation: given the public key pk, ciphertext c1, c2, then c=[c1 / c2]modb0;

[0045] The homomorphic computation also includes performing homomorphic basic function computation on any ciphertext of c1 or c2.

[0046] As a further description of the above technical solution:

[0047] The formula for calculating the homomorphic basic function for any ciphertext in c1 or c2 is:

[0048] g(c1)=g[f i (x)]=f i [g(x)];

[0049] g(c2)=g[f i (x)]=f i [g(x)];

[0050] g(x) represents the corresponding homomorphic basic function calculation.

[0051] As a further description of the above technical solution:

[0052] The homomorphic basic function calculation is any one of a power function, an exponential function, a logarithmic function, a trigonometric function and an inverse trigonometric function.

[0053] As a further description of the above technical solution:

[0054] According to the security level corresponding to the query identifier, an integer polynomial ring Z having the security level is selected. p [x] The fully homomorphic encryption algorithm includes:

[0055] The selected encryption algorithm is written into the distribution XML file corresponding to the query task, and the distribution XML file also includes a query identifier.

[0056] As a further description of the above technical solution:

[0057] A storage medium stores computer instructions, which, when executed, execute the steps of the above-mentioned data security circulation method.

[0058] As a further description of the above technical solution:

[0059] A terminal includes a memory and a processor, wherein the memory stores computer instructions that can be run on the processor, and the processor runs the computer instructions to execute the steps of the above-mentioned data security circulation method.

[0060] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0061] 1. In the present invention, the integer polynomial ring Z is used p [x] Encrypt the plaintext data to obtain the encrypted ciphertext data, then perform algebraic calculations such as addition, subtraction, multiplication and division, or basic function calculations on the encrypted ciphertext data, decrypt the ciphertext data obtained after the calculation, and obtain the final calculation result; the encrypted data of this method has very good security, and after the data is encrypted, the relationship between the data is not destroyed, and various types of calculations can still be performed on the encrypted data, and the correctness of the calculation results is guaranteed.

[0062] 2. In the present invention, the data sensitivity is determined according to the type of query identifier and its application business. The data sensitivity can be represented by the security level corresponding to the query identifier. The higher the security level, the higher the data sensitivity. Accordingly, the higher the sensitivity, the more encryption method with a higher security level is required to encrypt the query identifier. In circulation, the anonymization of the query identifier is guaranteed, and the correlation of the circulating data based on the query identifier is guaranteed, so as to realize the safe, compliant and efficient circulation of data.

[0063] 3. In the present invention, plaintext data with low security can choose f i (x)=x+1, if the safety level is high, it can be improved by improving f i (x) or choose other more complex polynomial functions to strengthen it, so that the loop operation is simple and convenient for practical application. i The frequency or function structure of (x) can be agreed upon by the data provider and the data requester of the transaction and updated according to the preset period. Since a third party cannot know the f corresponding to the encryption algorithm, i (x) Reduce the risk of data leakage caused by packet interception during network transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 A schematic diagram of a process of a data security circulation method based on a cross-domain data exchange and sharing platform provided according to an embodiment of the present invention is shown;

[0065] Figure 2 A schematic diagram of a data framework of a cross-domain data exchange and sharing platform provided according to an embodiment of the present invention is shown;

[0066] Figure 3 A schematic diagram of a technical route for a cross-domain data circulation interoperability security mechanism provided according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0067] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Example

[0068] like Figure 2 As shown, this embodiment provides a data framework for a cross-domain data exchange and sharing platform. In response to challenges such as multi-source heterogeneous data across clouds and domains, uneven data quality, and inconsistent data format standards, this embodiment uses semantic mapping and structural mapping of metadata to build an efficient and controllable data exchange and circulation framework, establish a dynamically updated information resource directory system, ensure the orderly opening, sharing, and use of resource information, facilitate docking with other resource directory platforms, and meet the requirements of resource directory flexibility and openness. In addition, the data exchange and circulation service framework is compatible with domestic CPUs, operating systems, and databases to ensure the long-term stability of data exchange services.

[0069] like Figure 3As shown, this embodiment provides a schematic diagram of the technical route of the cross-domain data circulation interoperability security mechanism. In view of the security risks in data exchange and information sharing, this embodiment studies a set of dynamic update and closed-loop management mechanisms. Data from multiple clouds and multiple domains are incorporated into the data resource management system. The data resource management system classifies, defines and identifies data through online cataloging, metadata management and data identification traceability. The data security support system ensures the security of data transmission through three modules: controllable data access, encrypted data transmission and privacy computing framework, and realizes security monitoring of the entire process. The data is then transmitted to the data service layer, and data exchange is realized through various APIs to complete the specified data service.

[0070] In summary, Figure 2 or Figure 3 In the related cross-domain data communication process shown, it is inevitable to solve the problem of data security circulation through data encryption and decryption. Therefore, this embodiment proposes the following technical solution based on the problem of data security circulation.

[0071] like Figure 1 As shown, the present invention provides a technical solution: a data security circulation method based on a cross-domain data exchange and sharing platform, comprising:

[0072] S1, obtaining the query task of the data requester, the query task includes the query identifier and its application business;

[0073] S2, determine the security level of the query identifier according to the type of the query identifier and the application business of the query identifier, and select an integer polynomial ring Z with a security level according to the security level corresponding to the query identifier p [x] Fully homomorphic encryption algorithm, using the selected encryption algorithm to encrypt the query identifier. After the encryption algorithm is selected, the encryption algorithm can be written into the extensible language file (xml) file corresponding to the query task. The xml file can also include the data requester number, data provider number, circulation object number and query ID type. By parsing the xml file of the query task, the information related to the query task, such as the encryption algorithm, can be obtained, so that the query identifier can be encrypted.

[0074] S3, if the security level corresponding to the query identifier is low, select f i (x)=x+1;

[0075] S4, if the security level corresponding to the query identifier is high, select f i (x)=x y ·H, where H=Q·A·Q -1 , Q is a reversible matrix of order n, Q -1 is the inverse matrix of matrix Q, A is a diagonal matrix of order n, and y is the degree of x;

[0076] f i (x)∈Z p [x].

[0077] The embodiment of the present invention can determine the data sensitivity according to the type of query identifier and its application business. The data sensitivity can be represented by the security level corresponding to the query identifier. The higher the security level, the higher the data sensitivity. Accordingly, the higher the sensitivity, the more encryption method with a higher security level needs to be used to encrypt the query identifier. In circulation, the anonymization of the query identifier is guaranteed, and the correlation of the circulating data based on the query identifier is guaranteed, so as to realize the safe, compliant and efficient circulation of data.

[0078] S5, adding the encrypted data to the query request and sending it out;

[0079] Specifically, we use the integer polynomial ring Z p The query identifier is encrypted using the fully homomorphic encryption algorithm of [x], including:

[0080] Construct the integer polynomial ring Z p [x], through the integer polynomial ring Z p [x] Encrypt the query identifier to obtain the corresponding ciphertext matrix, perform homomorphic calculation on the ciphertext matrix to obtain the calculated ciphertext matrix, decrypt the calculated ciphertext matrix to obtain the decrypted query identifier, determine the data provider who receives the query task, and use the decrypted query identifier to join the query request.

[0081] In the embodiment of the present invention, the integer polynomial ring Z is used p [x] Encrypt the plaintext data to obtain the encrypted ciphertext data, then perform algebraic calculations such as addition, subtraction, multiplication and division, or basic function calculations on the encrypted ciphertext data, decrypt the ciphertext data obtained after the calculation, and obtain the final calculation result; the encrypted data of this method has very good security, and after the data is encrypted, the relationship between the data is not destroyed, and various types of calculations can still be performed on the encrypted data, and the correctness of the calculation results is guaranteed.

[0082] Specifically, we use the integer polynomial ring Z p The fully homomorphic encryption algorithm of [x] encrypts the query identifier, including the homomorphic encryption and decryption algorithm process:

[0083] KeyGen:

[0084] For f i (x)∈Z p [x], select a random integer a i ,r i ∈Z, so the public key pk= <b0,b1,…,bn >, for each b i =a i f i (x)+r i , among which b0 has the highest frequency, f i (x) is a monomial of degree n;

[0085] Encrypt:

[0086] Randomly select a subset of integers S∈{1,2,…,n},

[0087] Input: public key pk, plaintext m∈{0,1}, randomly selected r∈(-2 2ρ ,2 2ρ ),

[0088] Output: ciphertext c=[m+2r+2∑ i∈S b i ]modb0;

[0089] Evaluate:

[0090] Input: ciphertext data c to be operated i ,i=1,2,…;

[0091] Output: the result after homomorphic calculation;

[0092] Decrypt:

[0093] Input: ciphertext c, key sk,

[0094] Output: m = (cmodx) mod 2

[0095] Homomorphic computation is homomorphic addition computation, homomorphic subtraction computation, homomorphic multiplication computation, homomorphic division computation, or homomorphic basic function computation on any ciphertext of c1 or c2;

[0096] Homomorphic addition calculation: given the public key pk, ciphertext c1, c2, then c=[c1+c2]modb0;

[0097] Homomorphic subtraction calculation: given the public key pk, ciphertext c1, c2, then c=[c1-c2]modb0;

[0098] Homomorphic multiplication calculation: given a public key pk, ciphertext c1, c2, then c=[c1·c2]modb0;

[0099] Homomorphic division calculation: given a public key pk, ciphertext c1, c2, then c=[c1 / c2]modb0;

[0100] The formula for calculating the homomorphic basic function for any ciphertext in c1 or c2 is:

[0101] g(c1)=g[f i (x)]=f i [g(x)];

[0102] g(c2)=g[f i (x)]=f i [g(x)];

[0103] g(x) represents the corresponding homomorphic basic function calculation, and the homomorphic basic function calculation is any one of a power function, an exponential function, a logarithmic function, a trigonometric function, and an inverse trigonometric function.

[0104] The embodiment of the present invention constructs an integer polynomial ring Z p [x], using the integer polynomial ring Z p [x] The plaintext data that needs to be calculated is encrypted, and the encrypted ciphertext is calculated in the cloud in the form of a matrix. This not only protects the privacy of the data, but also ensures the calculation speed even in multiple calculations. This method not only realizes algebraic calculations such as addition, subtraction, multiplication and division on the ciphertext data, but also realizes basic function calculations such as power function, exponential function, logarithmic function, trigonometric function and inverse trigonometric function on the ciphertext data, enriching the calculation types of homomorphic encrypted data in actual application scenarios.

[0105] The design idea of ​​the embodiment of the present invention is to achieve the effect of obfuscating plaintext through the degree, modular operation and interactive operation of polynomials. In the design process, the complexity of the problem is mainly considered to be reduced to the discrete subset sum problem, so the selection of polynomials is the key link of the algorithm. The selection of polynomials can be determined according to the security level corresponding to the query identifier. i (x) is different, so it is necessary to determine the f corresponding to the selected encryption algorithm i (x), and then we can use the determined f i (x) and the encryption algorithm to encrypt the query identifier. i (x) can be pre-set, or can be periodically changed, or can be randomly generated. For example, if the security level is low, you can choose f i (x)=x+1, if the safety level is high, we can improve f i (x) or choose other more complex polynomial functions to strengthen it, so that the loop operation is simple and convenient for practical application. i The frequency or function structure of (x) can be agreed upon by the data provider and the data requester of the transaction and updated according to the preset period. Since a third party cannot know the f corresponding to the encryption algorithm, i(x) Reduce the risk of data leakage caused by packet interception during network transmission.

[0106] Encryption and decryption analysis:

[0107] Assume that the query identifier to be encrypted is m=1 or m=0, and the selected function is f i (x), select n+1 a i and n+1 r i , S = {1,2,…,n};

[0108] Calculate n+1 b i , so that b0 has the highest degree;

[0109] Encrypt the query identifier m and get c=[m+2r+2∑ i∈S b i ]modb0;

[0110] Let's assume that i obtains the first k b in the S set i ;

[0111] The ciphertext c can be written as c=[m+2r+2(b1+b2+…+b k )]modb0;

[0112] c is data that satisfies the polynomial form, that is, c=g(x)x+r′;

[0113] When decrypting, first cmodx to get h, where h=r′=m+2(r+r1+r2+…+r k );

[0114] Finally, hmod2 is used to obtain the ciphertext m.

[0115] Homomorphic algorithm analysis:

[0116] Let C = {c1, c2, ..., c n},c=[m+2r+2∑ i∈S b i ]modb0;

[0117] H(pk,C)=(c1*c2*…c n )modb0, where * represents any homomorphic computation method;

[0118] D[sk,H(pk,C)]={[(c1*c2*…*c n )modb0]modx}mod2;

[0119] Recover the query identifier m=(m1*m2*…*m n ).

[0120] Furthermore, regarding the integer polynomial ring Z mentioned above p [x] The security of the homomorphic encryption algorithm in the fully homomorphic encryption algorithm depends on the description of the discrete subset sum problem:

[0121] Since the public key in the homomorphic algorithm is pk= <b0,b1,…,b n >, for each b i =a i f i (x)+r i , so through each f i (x) can get a set of reduced bases A= <g1,g2,…,g t >, t≤n, each b i can all be obtained by expressing the reduced basis A. Now let the reduced basis A = <g1,g2,…,g t > is a set, given b i , find the i =a i (∑ j∈{1,2,…,t} h i g i )+r i g i ,h i ∈Z, which satisfies the definition of the discrete subset sum problem and can resist grid attacks and brute force attacks.

[0122] Furthermore, we adopt the integer polynomial ring Z p The fully homomorphic encryption algorithm of [x] encrypts the query identifier and also includes the re-encryption algorithm process:

[0123] Keygen: Select the public key pk and private key sk according to the above algorithm, select k, where k is the largest prime number that satisfies computational security, and x p =[2 k / p-1 / 2], the polynomial g(x)=∑g i x i , θ is two a i The maximum distance, c i ∈Z∩[0,2 k+1 ], so that ∑ i∈S c i =x p (mod2 k+1 ),y i =c i / 2 k , so we can get (∑ i y i )·p=1mod2, get the new public key pk * = <pk,y1,y2,…,yn >, new private key sk * = <g1,g2,…,g n >

[0124] Encryption:

[0125] Input: ciphertext c, new public key pk * ;

[0126] Output: New ciphertext c * =[c·y i ]mod2;

[0127] Decryption:

[0128] Input: New ciphertext c * ;

[0129] Output: ciphertext c=[c * -(∑ i∈S c i g i -1 / 2)]mod2.

[0130] The re-encryption algorithm mainly performs cyclic encryption on the ciphertext data and processes the ciphertext data, which helps to protect the ciphertext data.

[0131] In the re-encryption algorithm operation, it is necessary to determine x p 、c i ,y i , Encryption and Decryption, there are n input pk, then it takes n operations to calculate each part, so based on the integer polynomial ring Z p The computational complexity of the fully homomorphic encryption algorithm of [x] is approximately O(n 5 ).

[0132] The present invention adopts the integer polynomial ring Z p The fully homomorphic encryption algorithm of [x] mainly performs polynomial operations. It does not need to reselect polynomials during the query identification operation process, has good continuity, and the amount of calculation gates in the re-encryption algorithm is O(n 5 ), filtering is performed according to the security level corresponding to the query identifier, which has strong flexibility and practicality.

[0133] S6: After receiving the query request, the data provider opens the query restrictions step by step. After the final query restrictions are opened, the data requester can query the complete data of the corresponding query request. As time goes by, the power assignment of query restriction openers with different power attributes is redistributed. The redistributed power assignment is subject to the power attributes, the number of query restriction openers and the time threshold. The constraints are:

[0134] 0-Q T1 :Q s1 Q L1 +Q s2 Q L2 +…+Q sn Q Ln =1, Q s =f1(Q T ),

[0135] Q T1 -Q T2 :Q s1 Q L1 +Q s2 Q L2 +…+Q sn Q Ln =1, Q s =f2(Q T ),

[0136] …

[0137] Q T(n-1) -Q Tn :Q s1 Q L1 +Q s2 Q L2 +…+Q sn Q Ln =1, Q s =f n (Q T ),

[0138] T1+T2+…+Tn=Q C ,

[0139] Tn=Sn=Ln;

[0140] In the formula, Q L -Rights assignment, the value range is [0,1];

[0141] Q T - time threshold;

[0142] Q s -Rights attribute assignment, due to the time threshold related function f(Q T )Decide;

[0143] Q C -Query the number of open parties to limit the number of open parties.

[0144] For example, for a query request that requires multi-level approval, different approval stages have different reviewers. Assuming that there are three stages of approval, namely, first-level approval, second-level approval, and third-level approval, generally, the reviewer of the third-level approval is the determining factor for whether the query request is permitted, that is, the authority attributes and rights assignment of reviewers at different stages are different. However, considering that in actual applications, the processing efficiency of the reviewers at the three stages regarding the query request A cannot be determined, some expedited query requests cannot be processed in a timely manner, affecting work efficiency.

[0145] There is a query request A. The data requester expects to complete the data query within 24 hours, which requires three-level approval. The first and second level approvals have been passed within 8 hours, but the third level approval has not been completed after the 24th hour. Continuing to wait for the third level approval will exceed the expected time of the data requester. The approval efficiency is low for the data requester, which affects its data acquisition efficiency and work efficiency.

[0146] After consideration from many aspects, this embodiment can redistribute the approval authority of multiple approvers of different levels who have completed the approval as time goes by, so that the approval process can be completed in a shorter time, improving the approval efficiency. At the same time, different power attribute parties have different approval and opening responsibilities, and the data integrity queried by the data requester is different. For example, the power redistribution table of the above query request A is shown in Table 1-4 below:

[0147]

[0148] Table 1

[0149]

[0150] Table 2

[0151]

[0152] Table 3

[0153]

[0154] Table 4

[0155] Compared with the traditional method that requires three levels of approval before all data can be queried, this embodiment extends the approval process and delegates the three-level approval permission to the first and second level approvers. The first and second level approvers are jointly responsible for the data disclosure scope permission, which shortens the approval process, improves approval efficiency, and facilitates the work of the data requester.

[0156] The embodiment of the present invention also discloses a storage medium on which computer instructions are stored, and when the computer instructions are executed, the above method steps can be executed. The storage medium may include ROM, RAM, magnetic disk, optical disk, etc. The storage medium may also include non-volatile memory or non-transient memory, etc.

[0157] The embodiment of the present invention further discloses a terminal, which may include a memory and a processor, wherein the memory stores computer instructions that can be run on the processor. When the processor runs the computer instructions, the above method steps may be executed. The terminal includes but is not limited to terminal devices such as mobile phones, computers, and tablet computers.

[0158] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A data security circulation method based on a cross-domain data exchange and sharing platform, characterized in that: include: Obtaining a query task of a data requester, wherein the query task includes a query identifier and its application service; Based on integer polynomial ring Z p [x] uses a fully homomorphic encryption algorithm to encrypt the query identifier; Add the encrypted data to the query request and send it out; After receiving the query request, the data provider will gradually open the query restrictions. After the final query restrictions are opened, the data requester can query the complete data of the corresponding query request. As time goes by, the power assignment of query restriction openers with different power attributes is redistributed. The redistributed power assignment is subject to the power attributes, the number of query restriction openers and the time threshold. The method adopts the integer polynomial ring Z p The query identifier is encrypted using the fully homomorphic encryption algorithm of [x], including: Construct the integer polynomial ring Z p [x], through the integer polynomial ring Z p [x] Encrypt the query identifier to obtain a corresponding ciphertext matrix, perform homomorphic calculation on the ciphertext matrix to obtain a calculated ciphertext matrix, decrypt the calculated ciphertext matrix to obtain a decrypted query identifier, determine a data provider to receive the query task, and use the decrypted query identifier to join the query request; The method adopts the integer polynomial ring Z p The query identifier is encrypted using the fully homomorphic encryption algorithm of [x], which also includes: Determine the security level of the query identifier according to the type of the query identifier and the application service of the query identifier; According to the security level corresponding to the query identifier, an integer polynomial ring Z having the security level is selected. p [x] a fully homomorphic encryption algorithm, using a selected encryption algorithm to encrypt the query identifier; According to the security level corresponding to the query identifier, an integer polynomial ring Z having the security level is selected. p [x] Fully homomorphic encryption algorithm, including: If the security level corresponding to the query identifier is low, then select f i (x)=x+1; If the security level corresponding to the query identifier is high, then select f i (x)=x y ·H, where H=Q·A·Q -1 , Q is a reversible matrix of order n, Q -1 is the inverse matrix of matrix Q, A is a diagonal matrix of order n, and y is the degree of x; f i (x)∈Z p [x]; According to the security level corresponding to the query identifier, an integer polynomial ring Z having the security level is selected. p [x] The fully homomorphic encryption algorithm includes: The selected encryption algorithm is written into the distribution XML file corresponding to the query task, and the distribution XML file also includes a query identifier.

2. According to claim 1, a data security circulation method based on a cross-domain data exchange and sharing platform is characterized in that: Based on integer polynomial ring Z p The query identifier is encrypted using the fully homomorphic encryption algorithm of [x], including: KeyGen: For f i (x)∈Z p [x], select a random integer a i ,r i ∈Z, so the public key pk= <b0,b1,…,b n >, for each b i =a i f i (x)+r i , among which b0 has the highest frequency, f i (x) is a monomial of degree n; Encrypt: Randomly select a subset of integers S∈{1,2,…,n}, Input: public key pk, plaintext m∈{0,1}, randomly selected r∈(-2 2ρ ,2 2ρ ), Output: ciphertext c=[m+2r+2∑ i∈S b i ]modb0; Evaluate: Input: ciphertext data c to be operated i ,i=1,2,…; Output: the result after homomorphic calculation; Decrypt: Input: ciphertext c, key sk, Output: m=(cmodx)mod2.

3. A data security circulation method based on a cross-domain data exchange and sharing platform according to claim 2, characterized in that: The homomorphic calculation is homomorphic addition calculation, homomorphic subtraction calculation, homomorphic multiplication calculation, and homomorphic division calculation; Homomorphic addition calculation: given the public key pk, ciphertext c1, c2, then c=[c1+c2]modb0; Homomorphic subtraction calculation: given the public key pk, ciphertext c1, c2, then c=[c1-c2]modb0; Homomorphic multiplication calculation: given a public key pk, ciphertext c1, c2, then c=[c1·c2]modb0; Homomorphic division calculation: given a public key pk, ciphertext c1, c2, then c=[c1 / c2]modb0; The homomorphic calculation also includes performing homomorphic basic function calculation on any ciphertext of c1 and c2.

4. According to claim 3, a data security circulation method based on a cross-domain data exchange and sharing platform is characterized in that: The formula for calculating the homomorphic basic function for any ciphertext in c1 or c2 is: g(c1)=g[f i (x)]=f i [g(x)]; g(c2)=g[f i (x)]=f i [g(x)]; g(x) represents the corresponding homomorphic basic function calculation.

5. A data security circulation method based on a cross-domain data exchange and sharing platform according to claim 4, characterized in that: The homomorphic basic function calculation is any one of a power function, an exponential function, a logarithmic function, a trigonometric function and an inverse trigonometric function.

6. A storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed, the steps of the data security circulation method described in any one of claims 1 to 5 are executed.

7. A terminal comprising a memory and a processor, wherein the memory stores computer instructions that can be executed on the processor, characterized in that: The processor runs the computer instructions to execute the steps of the data security circulation method according to any one of claims 1 to 5.