Productivity investigation and analysis method and device, electronic equipment and storage medium

Through fully homomorphic encryption technology and multi-level DFA evaluation algorithm, it solves the problem of data confidentiality in production capacity surveys in the supply chain, realizes data security analysis and improves computing efficiency, and meets the security needs of enterprises.

CN118536129APending Publication Date: 2024-08-23BEIHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410349689.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-26
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the supply chain, during the production capacity survey process, in order to obtain the private production capacity data of supplier companies, and the supplier companies usually give up the confidentiality protection of private data in order to obtain the private product demand data of consumer companies, resulting in data Availability and confidentiality are difficult to achieve at the same time, resulting in serious privacy data leakage problems and failing to meet the security needs of enterprises.

Method used

Adopting a production capacity survey and analysis method based on fully homomorphic encryption, by receiving consumers' bootstrap keys and dense product demand data encrypted with private keys, receiving hierarchically processed production capacity data from suppliers, and using the bootstrap keys to conduct Dense state calculation, obtain the dense state calculation result, and send the result to the consumer, so that the consumer can obtain the plaintext calculation result, thereby determining the production capacity survey and analysis results. The specific implementation includes using the TFHE homomorphic encryption scheme and the Quine_McCluskey algorithm for data conversion and hierarchical processing, and executing the multi-level fully homomorphic DFA evaluation algorithm for calculation.

Benefits of technology

Complete production capacity survey and analysis while protecting data confidentiality, helping consumer companies determine whether the supplier company's production capacity can meet their product needs, and improve computing efficiency through multi-level calculations, solving the problem that direct calculations cannot be completed within a limited time. , achieving the safe and effective use of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536129A
    Figure CN118536129A
Patent Text Reader

Abstract

The invention relates to the technical field of information security, in particular to a productivity investigation and analysis method and device, electronic equipment and a storage medium, and the method comprises the steps: receiving a bootstrap key sent by a consumer after encrypting secret-state product demand data through a private key, and the encrypted secret-state product demand data; receiving the productivity data sent by the supplier after grading and converting the productivity data; and performing secret state calculation on the encrypted secret state product demand data and the capacity data by using a bootstrap key to obtain a secret state calculation result, and sending the secret state calculation result to a consumer, so that the consumer obtains a plaintext calculation result corresponding to the secret state calculation result, and determines a capacity survey analysis result. According to the method, the fully homomorphic DFA evaluation algorithm based on the TFHE homomorphic encryption scheme can be applied to the productivity investigation and analysis process, productivity investigation and analysis can be completed while confidentiality of product demand data and productivity data is protected, and actual application is realized while data confidentiality is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security technology, and in particular to a capacity investigation and analysis method, device, electronic equipment and storage medium. Background Art

[0002] Privacy computing refers to a collection of technologies that implement data analysis and computing while protecting the data from external disclosure, so as to achieve the goal of making the data "available but invisible". With the development of privacy computing, the technical bottleneck of achieving both data availability and confidentiality has been broken through: fully homomorphic encryption is a privacy computing solution and a key technology for solving data privacy protection problems. It has been widely used in various industries in recent years. Moreover, based on the difficult problem of format, fully homomorphic encryption can be guaranteed to have strong security by encryption algorithms.

[0003] In the related technology, in the supply chain, the downstream enterprises or consumer enterprises in the supply chain will conduct capacity surveys on the upstream enterprises or supplier enterprises in the supply chain to understand their supply capabilities. During the capacity survey process, the consumer enterprises will obtain the private capacity data of the supplier enterprises, and the supplier enterprises will also obtain the private product demand data of the consumer enterprises.

[0004] However, in the capacity survey methods of related technologies, consumer companies usually give up the confidentiality protection of privacy data in order to achieve a cooperative relationship in order to obtain the private capacity data of supplier companies, and supplier companies usually give up the confidentiality protection of privacy data in order to obtain the private product demand data of consumer companies. It is difficult to achieve both data availability and confidentiality at the same time. The problem of privacy data leakage in the process of capacity survey is becoming increasingly serious and cannot meet the security needs of enterprises in the process of capacity survey, which needs to be solved urgently. Summary of the invention

[0005] The present application provides a capacity survey and analysis method, device, electronic device and storage medium to solve the capacity survey method in the related art. In order to obtain the private capacity data of the supplier enterprise, the consumer enterprise and the supplier enterprise usually give up the confidentiality protection of the private data in order to establish a cooperative relationship in order to obtain the private product demand data of the consumer enterprise. The availability and confidentiality of the data are difficult to achieve at the same time. The problem of privacy data leakage in the process of capacity survey is becoming more and more serious, and the security needs of the enterprise capacity survey process cannot be met.

[0006] The first aspect of the present application provides a capacity survey and analysis method based on fully homomorphic encryption, characterized in that it includes the following steps: receiving a bootstrap key and the encrypted confidential product demand data sent by a consumer after encrypting confidential product demand data using a private key; receiving the capacity data sent by the supplier after grading and converting the capacity data; using the bootstrap key to perform confidential calculations on the encrypted confidential product demand data and the capacity data to obtain confidential calculation results, and sending the confidential calculation results to the consumer, so that the consumer obtains a plaintext calculation result corresponding to the confidential calculation result, and determines the capacity survey and analysis result.

[0007] Optionally, in one embodiment of the present application, the use of the bootstrap key to perform secret calculations on the encrypted secret product demand data and the production capacity data to obtain secret calculation results includes: taking the bootstrap key, the sequence of the secret product demand data, and the sequence of the production capacity data as input, executing a preset multi-level fully homomorphic DFA evaluation algorithm, obtaining a sequence of secret calculation results, and obtaining the secret calculation results.

[0008] Optionally, in one embodiment of the present application, the bootstrap key is obtained by executing a key generation algorithm based on a TFHE (Fully Homomorphic Encryption over the Torus) scheme.

[0009] Optionally, in one embodiment of the present application, the capacity data is obtained by converting the capacity data of positive integer type that has been graded through a Quine-McCluskey algorithm.

[0010] The second aspect of the present application provides a capacity survey and analysis device based on fully homomorphic encryption, including: a first receiving module, used to receive a bootstrap key and the encrypted confidential product demand data sent by a consumer after encrypting the confidential product demand data using a private key; a second receiving module, used to receive the capacity data sent by the supplier after grading and converting the capacity data; an analysis module, used to perform confidential calculations on the encrypted confidential product demand data and the capacity data using the bootstrap key, obtain confidential calculation results, and send the confidential calculation results to the consumer, so that the consumer obtains the plaintext calculation results corresponding to the confidential calculation results, and determines the capacity survey and analysis results.

[0011] Optionally, in one embodiment of the present application, the analysis module includes: an execution unit, used to take the bootstrap key, the sequence of the confidential product demand data, and the sequence of the production capacity data as input, execute a preset multi-level fully homomorphic DFA evaluation algorithm, and obtain a sequence of confidential calculation results to obtain the confidential calculation results.

[0012] Optionally, in one embodiment of the present application, the bootstrap key is obtained by executing a key generation algorithm based on the TFHE scheme.

[0013] Optionally, in one embodiment of the present application, the capacity data is obtained by converting the capacity data of positive integer type that has undergone hierarchical processing through the Quine_McCluskey algorithm.

[0014] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the production capacity survey and analysis method as described in the above embodiment.

[0015] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned capacity investigation and analysis method.

[0016] The fifth aspect of the present application provides a computer program product, which, when executed, is used to implement the above-mentioned capacity investigation and analysis method.

[0017] The embodiment of the present application can apply the fully homomorphic DFA evaluation algorithm based on the TFHE homomorphic encryption scheme to the capacity survey and analysis process of the consumer enterprise on the supplier enterprise in the supply chain. It can complete the capacity survey and analysis while protecting the confidentiality of the consumer enterprise's product demand data and the supplier enterprise's capacity data, helping the consumer enterprise to judge whether the supplier enterprise's capacity can meet its product demand, and improve the computing efficiency through multi-level computing to solve the problem that direct computing cannot be completed within a limited time, and realize practical application. Thus, the capacity survey method in the related technology is solved. In order to obtain the private capacity data of the supplier enterprise, and at the same time, in order to obtain the private product demand data of the consumer enterprise, the supplier enterprise usually gives up the confidentiality protection of the private data to reach a cooperative relationship. The availability and confidentiality of the data are difficult to achieve at the same time. The problem of privacy data leakage in the capacity survey process is becoming more and more serious, and it is impossible to meet the security needs of the enterprise capacity survey process.

[0018] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0020] Figure 1 A flowchart of a capacity investigation and analysis method provided according to an embodiment of the present application;

[0021] Figure 2 This is a schematic diagram of the first stage of a capacity investigation and analysis method based on fully homomorphic encryption according to an embodiment of the present application;

[0022] Figure 3 This is a schematic diagram of the second stage of the capacity investigation and analysis method based on fully homomorphic encryption according to an embodiment of the present application;

[0023] Figure 4 A schematic diagram of the execution logic of a capacity investigation and analysis method based on fully homomorphic encryption according to an embodiment of the present application;

[0024] Figure 5 A flowchart of a capacity investigation and analysis method based on fully homomorphic encryption according to an embodiment of the present application;

[0025] Figure 6 is a schematic structural diagram of a capacity investigation and analysis device according to an embodiment of the present application;

[0026] Figure 7 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. Description of the drawings:

[0028] 10-Productivity investigation and analysis device: 100-first receiving module, 200-second receiving module and 300-analysis module; 701-memory, 702-processor and 703-communication interface. DETAILED DESCRIPTION

[0029] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0030] The capacity survey and analysis method, device, electronic device and storage medium of the embodiment of the present application are described below with reference to the accompanying drawings. With respect to the capacity survey method in the related art mentioned in the above background technology, the enterprise cannot reach a cooperative relationship under the protection of the confidentiality of the privacy data, the availability and confidentiality of the data are difficult to achieve at the same time, and the problem of privacy data leakage in the capacity survey process is becoming increasingly serious, and the problem of being unable to meet the security needs of the enterprise capacity survey process is that the present application provides a capacity survey and analysis method, in which the fully homomorphic DFA evaluation algorithm based on the TFHE homomorphic encryption scheme can be applied to the capacity survey and analysis process of the consumer enterprise to the supplier enterprise in the supply chain, and the capacity survey and analysis can be completed while protecting the confidentiality of the consumer enterprise's product demand data and the supplier enterprise's capacity data, helping the consumer enterprise to judge whether the capacity of the supplier enterprise can meet its product demand, and improving the computing efficiency through multi-level computing to solve the problem that direct computing cannot be completed within a limited time, and realize practical application. As a result, the capacity survey method in the relevant technology is solved. In order to obtain the private capacity data of the supplier enterprise, the consumer enterprise usually gives up the confidentiality protection of the private data in order to establish a cooperative relationship, and the supplier enterprise gives up the private product demand data of the consumer enterprise. The availability and confidentiality of the data are difficult to achieve at the same time. The problem of privacy data leakage in the process of capacity survey becomes increasingly serious, and the security needs of the enterprise in the process of capacity survey cannot be met.

[0031] Specifically, Figure 1 A flowchart of a capacity investigation and analysis method provided in an embodiment of the present application.

[0032] like Figure 1 As shown, the capacity investigation and analysis method based on fully homomorphic encryption includes the following steps:

[0033] In step S101, a bootstrap key and encrypted confidential product demand data sent by a consumer after the consumer encrypts the confidential product demand data using a private key are received.

[0034] It is understandable that in the supply chain, downstream enterprises or consumer enterprises will conduct capacity surveys on upstream enterprises or supplier enterprises in the supply chain to understand their supply capabilities. In the process of capacity surveys, consumer enterprises will obtain the private capacity data of supplier enterprises, and supplier enterprises will also obtain the private product demand data of consumer enterprises. In this process, enterprises usually give up the confidentiality protection of private data in order to establish a cooperative relationship. It is difficult to achieve both data availability and confidentiality at the same time.

[0035] Based on this, the embodiment of the present application allows consumers to use private keys to encrypt confidential product demand data, and use a server to receive the bootstrap key and encrypted confidential product demand data sent by consumers, thereby achieving confidentiality of consumers' product demand data and its transmission process. The process is described in detail below.

[0036] For example, the embodiment of the present application can set the private key to sk.

[0037] Figure 2 This is a schematic diagram of the first stage of the capacity investigation and analysis method of an embodiment of the present application. Figure 2 As shown, first, the consumer can calculate the decimal length of his product demand data of positive integer type and convert it into a binary sequence; then use the private key sk to execute the data encryption algorithm based on the TFHE homomorphic encryption scheme to encrypt the binary sequence bit by bit, and transmit the decimal length of the encrypted secret product demand data to the server.

[0038] For example, in the embodiment of the present application, the product demand data may be represented by s, and the consumer may calculate the decimal length of the product demand data of the positive integer type and represent it by lens, wherein the calculation formula of lens may be represented as: Then the embodiment of the present application can convert lens into a binary sequence lens 0 ,lens 1 ,…,lens m ,in,

[0039] m is the number of classification levels.

[0040] Then, the embodiment of the present application can use the private key sk to execute the data encryption algorithm based on the TFHE homomorphic encryption scheme to encrypt the binary sequence bit by bit. Thus, the encrypted binary ciphertext sequence can be obtained: Enc(lens) = (Enc(lens 0 ),Enc(lens 1 ),…,Enc(lens m )), where Enc represents the encryption symbol. The encryption process can use the encryption algorithm trgswfftSymEncrypt provided by the TFHE open source library to encrypt the bits into TRGSW ciphertext. Finally, the decimal length Enc(lens) of the encrypted confidential product demand data can be transmitted to the server.

[0041] It should be noted that the algorithm used for bit-by-bit encryption in the embodiment of the present application may be, but is not limited to, the single-bit encryption algorithm provided by the TFHE open source library, that is, encrypting one bit into a TRGSW ciphertext. Among them, TFHE may include three ciphertexts TLWE, TRLWE and TRGSW, and TRGSW in the embodiment of the present application is one type of ciphertext.

[0042] also, Figure 3 This is a schematic diagram of the second stage of the capacity investigation and analysis method of one embodiment of the present application. Figure 3 As shown, when the consumer cannot successfully obtain the capacity survey results through the first stage, the embodiment of the present application can use the private key sk again to execute the multi-level data encryption algorithm based on the TFHE homomorphic encryption scheme to encrypt its positive integer type product demand data s, and transmit the encrypted secret product demand data Enc(s) to the server.

[0043] Among them, the multi-level data encryption algorithm based on the TFHE homomorphic encryption scheme includes but is not limited to the following:

[0044] First, the product demand data s of positive integer type are classified into levels m. The classification sequence can be expressed as: s1, s2, …, s n ;

[0045] The classified data s i Converted into binary sequence in sequence, it can be expressed as:

[0046] Then, the binary sequence of each graded data is encrypted bit by bit to obtain the encrypted binary sequence, which can be expressed as:

[0047] The final sequence can be expressed as: Enc(s) = (Enc(s1), Enc(s2), ..., Enc(s n )).

[0048] Based on this, the server can receive the final sequence, that is, the encrypted confidential product demand data sent by the consumer after encrypting the confidential product demand data using the private key. At the same time, the server can also receive the bootstrap key sent by the consumer for subsequent related processing.

[0049] Optionally, in one embodiment of the present application, the bootstrap key is obtained by executing a TFHE-based key generation algorithm.

[0050] Based on the description of other embodiments, it can be understood that the embodiment of the present application can use the server to receive the bootstrap key and encrypted confidential product demand data sent by the consumer. Furthermore, the private key and the bootstrap key can be generated by executing a key generation algorithm based on the TFHE homomorphic encryption scheme.

[0051] Specifically, the process of generating a private key and a bootstrap key using a key generation algorithm in the embodiment of the present application includes but is not limited to the following:

[0052] (1) Private key generation: A 1024-bit private key is randomly generated using the random number generator provided by the C++ standard library random.

[0053] (2) Bootstrap key generation: Take the private key as input and use the bootstrap key generation function provided by the TFHE open source library to generate the bootstrap key.

[0054] Therefore, those skilled in the art can understand that the embodiments of the present application can enable consumers to use bootstrap keys to encrypt confidential product demand data, and send the bootstrap keys and confidential product demand data together to the server, and the bootstrap keys are generated using a key generation algorithm, and multi-layer confidentiality is performed between consumers, servers and suppliers, effectively ensuring confidentiality and security during data transmission and exchange, and effectively avoiding data leakage.

[0055] Step S102, receiving the capacity data sent by the supplier after the supplier has graded and converted the capacity data.

[0056] Based on the relevant descriptions of other embodiments, it can be understood that during the entire process of capacity investigation and analysis, after consumers provide product demand data, suppliers need to provide their own capacity data to consumers to facilitate consumers to confirm whether the supplier's capacity meets the demand.

[0057] Therefore, while keeping the consumer's product demand data confidential, the application can also use the server to receive the capacity data provided by the supplier to keep the supplier's capacity data and transmission confidential. It should be noted that the capacity data is the capacity data that has been graded and converted by the supplier. The following will further explain the graded processing and conversion process of the capacity data.

[0058] Optionally, in one embodiment of the present application, the capacity data is obtained by converting the capacity data of positive integer type that has undergone hierarchical processing through the Quine_McCluskey algorithm.

[0059] It is understandable that, before sending the capacity data to the server, the embodiment of the present application can perform hierarchical processing and conversion on the capacity data in advance. For example, the embodiment of the present application can first perform hierarchical processing on the capacity data, and then convert the hierarchical positive integer type capacity data into LTL (Linear temporal logic) paradigm by Quine_McCluskey algorithm, referred to as QM algorithm, and then use the multi-level LTL to DFA algorithm to convert the LTL paradigm into DFA (Deterministic Finite Automaton), and send the converted DFA to the server.

[0060] like Figure 2 As shown, in the first stage, the supplier can calculate the decimal length of its positive integer capacity data and its minus one result, and convert it into LTL normal form through the QM algorithm, where the QM (Quine-McCluskey) algorithm is a method for simplifying logical functions, which can simplify logical functions into the simplest form. Then, the LTL normal form is converted into DFA using the LTL to DFA algorithm, and the converted decimal length of the capacity data and its minus one DFA are sent to the server.

[0061] For example, the capacity data is represented by t, the supplier calculates the decimal length of its positive integer capacity data t and the result of minus one, and represents it as lent and lent-1, and converts it into LTL paradigm through the QM algorithm and Then use the open source LTL to DFA algorithm to convert the LTL paradigm into DFA M lent and M lent-1 ; and convert the decimal length of the capacity data after conversion and its minus one DFA M lent and M lent-1 Send to the server.

[0062] Furthermore, if Figure 3 As shown, as mentioned above, when the consumer cannot successfully obtain the capacity survey results through the first stage, the supplier can use the multi-level conversion DFA algorithm to convert the LTL paradigm into DFA for its integer type capacity data, and send the converted DFA to the server.

[0063] The multi-level DFA conversion algorithm includes but is not limited to the following:

[0064] First, the positive integer capacity data t is graded, and the graded sequence can be expressed as: t1, t2, …, t n ;

[0065] Secondly, for each classified data t i and its minus one data t i -1Converted to LTL paradigm through QM algorithm and

[0066] Finally, the LTL paradigm of each graded data and its minus one data is and Convert to DFA and

[0067] Based on the above description, it can be understood that the embodiment of the present application can also use the server to receive the capacity data sent by the supplier after the supplier performs graded processing and conversion of the positive integer type capacity data through the QM algorithm on the basis of ensuring the confidentiality of consumer data, so as to protect the confidentiality of the capacity data, build a confidential channel between consumers and suppliers, and strongly guarantee the security of their respective data during the transmission and exchange process through multiple confidentiality and calculations.

[0068] Step S103, using the bootstrap key to perform secret calculations on the encrypted secret product demand data and production capacity data to obtain secret calculation results, and sending the secret calculation results to consumers, so that consumers can obtain the plaintext calculation results corresponding to the secret calculation results and determine the production capacity investigation and analysis results.

[0069] During the actual execution process, after receiving the bootstrap key, encrypted product demand data and production capacity data sent by the consumer, the server in the embodiment of the present application can use the relevant data to perform confidential calculations to obtain confidential calculation results, and can send the confidential results to the consumer.

[0070] After receiving the secret calculation results, consumers can decrypt the secret calculation results transmitted by the server through the data decryption algorithm based on the TFHE homomorphic encryption scheme to obtain the plaintext calculation results, thereby determining the production capacity investigation and analysis results and judging whether the supplier company's production capacity can meet the consumer's product needs.

[0071] Optionally, in one embodiment of the present application, a bootstrap key is used to perform secret calculations on the encrypted secret product demand data and production capacity data to obtain secret calculation results, including: taking the bootstrap key, the sequence of secret product demand data, and the sequence of production capacity data as input, executing a preset multi-level fully homomorphic DFA evaluation algorithm, and obtaining a sequence of secret calculation results to obtain a secret calculation result.

[0072] Based on the description of other embodiments, it can be understood that the embodiments of the present application can use the bootstrap key to perform confidential calculations on the encrypted confidential product demand data and production capacity data, obtain confidential calculation results, and send the confidential calculation results to consumers.

[0073] Specifically, when performing secret calculations, the server can use the bootstrap key, the secret consumer product demand data sequence and the supplier capacity data DFA as input, and obtain the secret calculation result sequence by executing a certain multi-level fully homomorphic DFA evaluation algorithm.

[0074] like Figure 2 As shown, the server can use the bootstrap key to execute a fully homomorphic DFA evaluation algorithm and perform homomorphic calculations on the decimal length of the received secret demand data and the decimal length of the capacity data and their minus one DFA to obtain a secret calculation result, and transmit the secret calculation result to the consumer.

[0075] The fully homomorphic DFA evaluation algorithm process can be expressed as follows: given a DFA and a list of TRGSW ciphertexts d1,d2,…,d n . Where Q is a non-empty finite set, each element is called a state; Σ is a finite alphabet set; δ is a mapping from Q×Σ to Q; q0 is the only initial state, is a final state set. The algorithm starts from the ciphertext d n Start with the TLWE ciphertext c in the initial state q0 n,q Starting from , the state transfer is performed on the ciphertext in turn. In the i-th round, the algorithm encrypts all states in DFA into TLWE ciphertext, and obtains And execute the selection function (CMUX) provided by TFHE according to the ciphertext of the state transfer alphabet: Get the ciphertext of the next round of status After n rounds, the ciphertext of the output state is finally obtained.

[0076] For example, in the embodiment of the present application, bk can be used to represent the bootstrap key, and the fully homomorphic DFA evaluation algorithm based on the TFHE homomorphic encryption scheme is selected to evaluate the decimal length Enc(lens) of the received secret demand data and the decimal length of the capacity data and its minus one DFA M lent and M lent-1 Perform homomorphic calculations to obtain secret calculation results, which can be represented by c0, c1 and transmitted to consumers, where:

[0077] Dec(c0)=M lent (lens 0, lens 1 , …, lens m ),

[0078] Dec(c1) = M lent-1 (lens 0 , lens 1 , …, lens m ).

[0079] Among them, Dec(c0) represents the plaintext information of ciphertext c0, and Dec(c1) represents the plaintext information of ciphertext c1.

[0080] Consumers use the private key sk to decrypt the encrypted calculation results c0 and c1 transmitted by the server through the TFHE homomorphic encryption scheme, that is, the data decryption algorithm provided by TFHE open source, to obtain the plaintext calculation results p0 and p1.

[0081] If p0 = 0 and p1 = 0, then the production capacity research result result = 1, indicating that s < t, that is, the production capacity of the supplier enterprise can meet the product demand of consumers, and the calculation is completed;

[0082] If p0 = 1 and p1 = 1, then the comparison result result = 0, indicating that s > t, that is, the production capacity of the supplier enterprise cannot meet the product demand of consumers, and the calculation is completed;

[0083] Otherwise, it means that no production capacity research result is obtained, and the second stage can be executed.

[0084] As Figure 3 shown, as before, that is, when consumers cannot successfully obtain the production capacity research result in the first stage, enter the second stage. The server can use the bootstrapping key bk to execute the multi-level fully homomorphic DFA evaluation algorithm based on the TFHE homomorphic encryption scheme to perform homomorphic calculation on the received encrypted demand data Enc(s) and the DFA of the classified production capacity data and to obtain the encrypted calculation results c 2i , c 2i+1 , and transmit the encrypted calculation results c 2i , c 2i+1 to consumers, where:

[0085]

[0086]

[0087] Among them, Dec(c 2i ) represents the plaintext information of ciphertext c 2i , and Dec(c 2i+1 ) represents the plaintext information of ciphertext c 2i+1 .

[0088] The consumer uses sk to execute a multi-level data decryption algorithm based on the TFHE homomorphic encryption scheme to decrypt the ciphertext calculation result c transmitted by the server 2i ,c 2i+1 to obtain the plaintext calculation result sequence p 2i ,p 2i+1 , and obtain the production capacity survey result.

[0089] If p 2i = 0, p 2i+1 = 0 first appears in the plaintext sequence, then the production capacity research result result = 0, indicating that the high bit of s is larger than the high bit of t, s > t, that is, it means that the production capacity of the supplier enterprise cannot meet the product demand of the consumer;

[0090] If p 2i = 1, p 2i+1 = 1 first appears in the plaintext sequence, then the comparison result result = 1, indicating that the high bit of s is smaller than the high bit of t, s < t, indicating that the production capacity of the supplier enterprise can meet the product demand of the consumer;

[0091] If the plaintext sequence is all p 2i = 1, p 2i+1 = 0, then the comparison result result = 1, indicating that s = t, which also means that the production capacity of the supplier enterprise can meet the product demand of the consumer.

[0092] The embodiment of the present application can apply the fully homomorphic DFA evaluation algorithm based on the TFHE homomorphic encryption scheme to the production capacity investigation and analysis process of consumer enterprises on supplier enterprises in the supply chain, and can complete the production capacity investigation and analysis while protecting the confidentiality of the product demand data of consumer enterprises and the production capacity data of supplier enterprises, helping consumer enterprises judge whether the production capacity of supplier enterprises can meet their product demands, and improving the calculation efficiency through multi-level calculation to solve the problem that direct calculation cannot be completed within a limited time, realizing practical application.

[0093] The following gives a specific embodiment to elaborate on the present application in detail.

[0094] As Figure 4 shown, it is a schematic execution logic diagram of the production capacity investigation and analysis method of an embodiment of the present application, Figure 5 and is a schematic flow diagram of the production capacity investigation and analysis method of an embodiment of the present application. The following will elaborate on the present application in combination with Figure 4 and Figure 5 .

[0095] Step S1, the consumer generates a private key and a bootstrapping key by executing a key generation algorithm based on the TFHE homomorphic encryption scheme, and transmits the bootstrapping key to the server;

[0096] Step S2, the consumer calculates the decimal length of its product demand data of positive integer type and converts it into a binary sequence, uses the private key to execute the data encryption algorithm based on the TFHE homomorphic encryption scheme to encrypt the binary sequence bit by bit, and transmits the decimal length of the encrypted secret product demand data to the server;

[0097] Step S3, the supplier calculates the decimal length of its capacity data of positive integer type and the result of minus one, converts it into LTL normal form through QM algorithm, then converts the LTL normal form into DFA using LTL to DFA algorithm, and sends the converted decimal length of capacity data and the DFA of minus one to the server;

[0098] In step S4, the server uses the bootstrap key to execute a fully homomorphic DFA evaluation algorithm based on the TFHE homomorphic encryption scheme to perform homomorphic calculations on the decimal length of the received secret demand data and the decimal length of the capacity data and its minus one DFA to obtain a secret calculation result, and transmits the secret calculation result to the consumer.

[0099] In step S5, the consumer decrypts the secret calculation result transmitted by the server through a data decryption algorithm based on the TFHE homomorphic encryption scheme to obtain the plaintext calculation result.

[0100] Step S6: If the capacity survey result can be obtained according to the plain text calculation result, the calculation is completed; otherwise, continue to execute the following steps.

[0101] Step S7: The consumer uses the private key to execute a multi-level data encryption algorithm based on the TFHE homomorphic encryption scheme to encrypt its positive integer product demand data, and transmits the encrypted secret product demand data to the server.

[0102] Step S8: The supplier uses a multi-level conversion DFA algorithm to convert the LTL paradigm into DFA for its integer capacity data, and sends the converted DFA to the server.

[0103] In step S9, the server uses the bootstrap key to execute a multi-level fully homomorphic DFA evaluation algorithm based on the TFHE homomorphic encryption scheme to homomorphically calculate the DFA of the received confidential demand data and the graded capacity data to obtain a confidential calculation result, and transmits the confidential calculation result to the consumer.

[0104] In step S10, the consumer decrypts the secret calculation result transmitted by the server through a multi-level data decryption algorithm based on the TFHE homomorphic encryption scheme to obtain the plaintext calculation result, and obtains the production capacity survey result, which indicates whether the production capacity of the supplier enterprise can meet the consumer's product demand.

[0105] According to the capacity survey and analysis method proposed in the embodiment of the present application, the fully homomorphic DFA evaluation algorithm based on the TFHE homomorphic encryption scheme can be applied to the capacity survey and analysis process of the consumer enterprise on the supplier enterprise in the supply chain, and the capacity survey and analysis can be completed while protecting the confidentiality of the consumer enterprise's product demand data and the supplier enterprise's capacity data, helping the consumer enterprise to judge whether the supplier enterprise's capacity can meet its product demand, and improving the computing efficiency through multi-level computing to solve the problem that direct computing cannot be completed within a limited time, and realize practical application. Thus, the capacity survey method in the related technology is solved. In order to obtain the private capacity data of the supplier enterprise, and at the same time, in order to obtain the private product demand data of the consumer enterprise, the supplier enterprise usually gives up the confidentiality protection of the private data to reach a cooperative relationship. The availability and confidentiality of the data are difficult to achieve at the same time. The problem of privacy data leakage in the capacity survey process is becoming more and more serious, and it is impossible to meet the security needs of the enterprise capacity survey process.

[0106] Next, the capacity investigation and analysis device proposed according to the embodiment of the present application is described with reference to the accompanying drawings.

[0107] Figure 6 It is a structural schematic diagram of the capacity investigation and analysis device of an embodiment of the present application.

[0108] like Figure 6 As shown, the capacity investigation and analysis device 10 based on fully homomorphic encryption includes: a first receiving module 100, a second receiving module 200 and an analysis module 300.

[0109] The first receiving module 100 is used to receive the bootstrap key and the encrypted confidential product demand data sent by the consumer after encrypting the confidential product demand data using the private key.

[0110] The second receiving module 200 is used to receive the capacity data sent by the supplier after the supplier has graded and converted the capacity data.

[0111] The analysis module 300 is used to perform secret calculations on the encrypted secret product demand data and production capacity data using a bootstrap key to obtain secret calculation results, and send the secret calculation results to consumers so that consumers can obtain plain text calculation results corresponding to the secret calculation results and determine the production capacity survey analysis results.

[0112] Optionally, in one embodiment of the present application, the analysis module 300 includes: an execution unit, which is used to take a bootstrap key, a sequence of confidential product demand data, and a sequence of production capacity data as input, execute a preset multi-level fully homomorphic DFA evaluation algorithm, and obtain a sequence of confidential calculation results to obtain a confidential calculation result.

[0113] Optionally, in one embodiment of the present application, the bootstrap key is obtained by executing a key generation algorithm based on a TFHE (Torus Fully Homomorphic Encryption) scheme.

[0114] Optionally, in one embodiment of the present application, the capacity data is obtained by converting the capacity data of positive integer type that has undergone hierarchical processing through the Quine_McCluskey algorithm.

[0115] It should be noted that the aforementioned explanation of the embodiment of the capacity investigation and analysis method is also applicable to the capacity investigation and analysis device of this embodiment, and will not be repeated here.

[0116] According to the capacity survey and analysis device proposed in the embodiment of the present application, the fully homomorphic DFA evaluation algorithm based on the TFHE homomorphic encryption scheme can be applied to the capacity survey and analysis process of the consumer enterprise on the supplier enterprise in the supply chain, and the capacity survey and analysis can be completed while protecting the confidentiality of the consumer enterprise's product demand data and the supplier enterprise's capacity data, helping the consumer enterprise to judge whether the supplier enterprise's capacity can meet its product demand, and improving the computing efficiency through multi-level computing to solve the problem that direct computing cannot be completed within a limited time, and realize practical application. Thus, the capacity survey method in the related technology is solved. In order to obtain the private capacity data of the supplier enterprise, and at the same time, in order to obtain the private product demand data of the consumer enterprise, the supplier enterprise usually gives up the confidentiality protection of the private data to reach a cooperative relationship. The availability and confidentiality of the data are difficult to achieve at the same time. The problem of privacy data leakage in the capacity survey process is becoming more and more serious, and it is impossible to meet the security needs of the enterprise capacity survey process.

[0117] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:

[0118] A memory 701 , a processor 702 , and a computer program stored in the memory 701 and executable on the processor 702 .

[0119] When the processor 702 executes the program, the capacity investigation and analysis method provided in the above embodiment is implemented.

[0120] Furthermore, the electronic device further comprises:

[0121] The communication interface 703 is used for communication between the memory 701 and the processor 702 .

[0122] The memory 701 is used to store computer programs that can be executed on the processor 702 .

[0123] The memory 701 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0124] If the memory 701, the processor 702 and the communication interface 703 are implemented independently, the communication interface 703, the memory 701 and the processor 702 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0125] Optionally, in a specific implementation, if the memory 701, the processor 702 and the communication interface 703 are integrated on a chip, the memory 701, the processor 702 and the communication interface 703 can communicate with each other through an internal interface.

[0126] The processor 702 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0127] The embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned capacity investigation and analysis method when executed by a processor.

[0128] The embodiment of the present application also provides a computer program product, which can run computer instructions. When the computer instructions are executed by a processor, the capacity investigation and analysis method provided in the embodiment of the present application is implemented.

[0129] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0130] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0131] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0132] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary and then storing it in a computer memory.

[0133] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one or a combination of multiple of the following technologies known in the art: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0134] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0135] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0136] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A capacity investigation and analysis method based on fully homomorphic encryption, characterized in that: The following steps are involved: Receiving the bootstrap key and the encrypted confidential product demand data sent by the consumer after encrypting the confidential product demand data using the private key; Receive the capacity data sent by suppliers after classifying and converting the capacity data; The bootstrap key is used to perform secret calculations on the encrypted secret product demand data and the production capacity data to obtain secret calculation results, and the secret calculation results are sent to the consumer, so that the consumer obtains the plaintext calculation results corresponding to the secret calculation results and determines the production capacity investigation and analysis results.

2. The method according to claim 1, characterized in that The using the bootstrap key to perform secret calculation on the encrypted secret product demand data and the production capacity data to obtain a secret calculation result includes: The bootstrap key, the sequence of the secret product demand data, and the sequence of the production capacity data are taken as input, and a preset multi-level fully homomorphic DFA evaluation algorithm is executed to obtain a sequence of secret calculation results to obtain the secret calculation result.

3. The method according to claim 1, characterized in that: The bootstrap key is obtained by executing a key generation algorithm based on a torus fully homomorphic encryption TFHE scheme.

4. The method according to claim 1, characterized in that: The production capacity data is obtained by converting the positive integer type production capacity data that has been graded through the Quine-McCluskey algorithm.

5. A capacity investigation and analysis device based on fully homomorphic encryption, characterized in that: include: The first receiving module is used to receive the bootstrap key and the encrypted secret product demand data sent by the consumer after encrypting the secret product demand data using the private key; The second receiving module is used to receive the capacity data sent by the supplier after the supplier has graded and converted the capacity data; The analysis module is used to use the bootstrap key to perform secret calculations on the encrypted secret product demand data and the production capacity data to obtain secret calculation results, and send the secret calculation results to the consumer, so that the consumer obtains the plaintext calculation results corresponding to the secret calculation results and determines the production capacity survey analysis results.

6. The device according to claim 5, characterized in that The analysis module comprises: An execution unit is used to take the bootstrap key, the sequence of the secret product demand data, and the sequence of the production capacity data as input, execute a preset multi-level fully homomorphic DFA evaluation algorithm, obtain a sequence of secret calculation results, and obtain the secret calculation result.

7. The device according to claim 5, characterized in that The bootstrap key is obtained by executing a TFHE-based key generation algorithm.

8. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the capacity investigation and analysis method based on fully homomorphic encryption as described in any one of claims 1 to 4.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the capacity investigation and analysis method based on fully homomorphic encryption as described in any one of claims 1 to 4.

10. A computer program product, characterized in that When the computer program is executed, it is used to implement the capacity investigation and analysis method based on fully homomorphic encryption as described in any one of claims 1-4.