Ciphertext processing method and device, electronic device and storage medium

By performing homomorphic encryption and decryption on demand between the ciphertext computing server and the cloud server, and using signature verification and symmetric encryption algorithms, the problem of large amounts of calculation in homomorphic encryption is solved, and resource saving and data privacy protection are achieved.

CN116545676BActive Publication Date: 2024-10-11GUANGDONG RUNLIAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310471754.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2024-10-11
Estimated Expiration
2043-04-25

AI Technical Summary

Technical Problem

The homomorphic encryption and decryption processes are computationally intensive, resulting in the homomorphic encryption protection of all data requiring a large amount of computing resources.

Method used

By performing homomorphic encryption and ciphertext operations on demand between the ciphertext computing server and the cloud server, using pre-configured signature public and private keys for digital signature verification, the data that needs to be encrypted is screened out and homomorphically encrypted, combined with Symmetric key and public key encryption algorithms save computing resources.

Benefits of technology

It effectively reduces the computing resource consumption of ciphertext processing, realizes on-demand homomorphic encryption and decryption, fully protects data privacy, and reduces the risk of data leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116545676B_ABST
    Figure CN116545676B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a ciphertext processing method and device, an electronic device and a storage medium, which belongs to the field of data encryption technology. The method includes: when the ciphertext operation server receives the ciphertext operation request sent by the demand side, the ciphertext operation server uses the second signature public key to sign the ciphertext operation request to obtain the request signature information; the ciphertext operation server sends the request signature information and the ciphertext operation request to the cloud server, so that the cloud server uses the second signature private key to verify the request signature information to obtain the request verification result; if the request verification result is characterized as a successful verification, the cloud server filters out the selected data from the encrypted data according to the ciphertext operation request; the cloud server homomorphically encrypts the selected data according to the homomorphic ternary public key to obtain the target data; the cloud server performs ciphertext calculation on the target data and then decrypts it through the ciphertext operation server and feeds it back to the demand side. The embodiment of the present application can use homomorphic encryption technology as needed to reduce computing resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data encryption technology, and in particular to a ciphertext processing method and device, an electronic device and a storage medium. Background Art

[0002] At present, in order to achieve the technical effect of "data remains unchanged but model moves", homomorphic encryption technology is used to directly calculate encrypted data to effectively protect data security. However, homomorphic encryption and decryption require a huge amount of calculations. If all data is protected by homomorphic encryption, it will consume a lot of computing resources. Therefore, how to improve and reduce the computing resources in the data encryption and decryption process has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] The main purpose of the embodiments of the present application is to propose a ciphertext processing method and device, an electronic device and a storage medium, aiming to perform homomorphic encryption, ciphertext operation and decryption on demand, and reduce the computing resources for ciphertext processing.

[0004] To achieve the above object, a first aspect of an embodiment of the present application provides a ciphertext processing method, the method comprising:

[0005] When the ciphertext operation server receives the ciphertext operation request sent by the demand end, the ciphertext operation server uses the pre-configured second signature public key to digitally sign the ciphertext operation request to obtain request signature information;

[0006] The ciphertext operation server sends the request signature information and the ciphertext operation request to the cloud server, so that the cloud server verifies the request signature information using a pre-configured second signature private key to obtain a request verification result;

[0007] If the request verification result indicates successful verification, the cloud server selects selected data from pre-stored encrypted data according to the ciphertext operation request;

[0008] The cloud server homomorphically encrypts the selected data according to a pre-configured homomorphic ternary public key to obtain target data;

[0009] The cloud server performs ciphertext calculation on the target data, decrypts it through the ciphertext calculation server, and then feeds it back to the demand end.

[0010] In some embodiments, the ciphertext operation request includes: a ciphertext operation algorithm and description information of participating data; the description information of participating data includes: data type, data memory size, and data source information; if the request verification result is characterized as successful verification, the cloud server selects selected data from pre-stored encrypted data according to the ciphertext operation request, including:

[0011] If the request verification result indicates successful verification, preliminary data is screened out from the encrypted data according to the data type;

[0012] The selected data is screened out from the preliminary data according to the data memory size and the data source information.

[0013] In some embodiments, the cloud server performs ciphertext calculation on the target data, decrypts the data through the ciphertext calculation server, and then feeds the data back to the demand end, including:

[0014] The cloud server performs homomorphic decryption on the target data according to the pre-configured ciphertext operation key, the ciphertext operation algorithm, and the encryption key to obtain preliminary decrypted data;

[0015] The cloud server performs ciphertext calculation on the preliminary decrypted data according to the ciphertext calculation algorithm and the ciphertext calculation key to obtain a ciphertext calculation result;

[0016] The cloud server sends the ciphertext operation result to the ciphertext operation server, so that the ciphertext operation server decrypts the ciphertext operation result according to the pre-configured homomorphic ternary private key to obtain the target decrypted data, and then feeds back the target decrypted data to the demand end.

[0017] In some embodiments, when the ciphertext operation server receives the ciphertext operation request sent by the demand end, before the ciphertext operation server uses the pre-configured second signature public key to digitally sign the ciphertext operation request to obtain the request signature information, the method further includes:

[0018] The data provider generates a symmetric key, a first signature public key and a first signature private key, and sends the first signature public key to the cloud server and the ciphertext calculation server;

[0019] The cloud server generates an encryption public key, a decryption private key, a second signature public key and a second signature private key, and sends the second signature public key and the encryption public key to the data provider and the ciphertext operation server;

[0020] The ciphertext operation server generates a ternary key group, a third signature public key and a third signature private key, wherein the ternary key group includes: a homomorphic ternary public key, a homomorphic ternary private key and a ciphertext operation key; the ciphertext operation server sends the third signature public key to the data provider and the cloud server;

[0021] The ciphertext operation server encrypts the ciphertext operation key according to the encryption public key and sends the encrypted key to the cloud server.

[0022] In some embodiments, after the ciphertext operation server encrypts the ciphertext operation key according to the encryption public key and sends the encrypted key to the cloud server, the method further includes:

[0023] The cloud server receives the encrypted ciphertext operation key, and decrypts the encrypted ciphertext operation key according to the decryption private key to obtain the ciphertext operation key;

[0024] The data provider encrypts the symmetric key according to the homomorphic ternary public key to obtain an encryption key.

[0025] In some embodiments, before the cloud server selects selected data from pre-stored encrypted data according to the ciphertext operation request if the request verification result is characterized as successful verification, the method further includes:

[0026] The data provider encrypts the data to be stored according to the symmetric key to obtain encrypted data;

[0027] The data provider performs a signing process on the encrypted data according to the first signature private key to obtain data signature information;

[0028] The data provider sends the encrypted data and the data signature information to the cloud server, so that the cloud server stores the encrypted data according to the data signature information.

[0029] In some embodiments, the data provider sends the encrypted data and the data signature information to the cloud server so that the cloud server stores the encrypted data according to the data signature information, including:

[0030] The data provider sends the encrypted data and the data signature information to the cloud server;

[0031] The cloud server verifies the data signature information according to the first signature public key to obtain a data verification result;

[0032] If the data verification result indicates that the verification is successful, the encrypted data is stored;

[0033] If the data verification result indicates a verification failure, the encrypted data is deleted and a verification failure message is sent to the data provider.

[0034] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application provides a ciphertext processing device, the device comprising:

[0035] The signature module is used for the ciphertext operation server to digitally sign the ciphertext operation request using a pre-configured second signature public key to obtain request signature information when the ciphertext operation server receives the ciphertext operation request sent by the demand end;

[0036] A verification module, used to send the request signature information and the ciphertext operation request to the cloud server through the ciphertext operation server, so that the cloud server uses a pre-configured second signature private key to verify the request signature information to obtain a request verification result;

[0037] A screening module, configured to screen selected data from pre-stored encrypted data by the cloud server according to the ciphertext operation request if the request verification result is characterized as successful verification;

[0038] An encryption module, used to perform homomorphic encryption on the selected data according to a pre-configured homomorphic ternary public key through the cloud server to obtain target data;

[0039] The feedback module is used to perform ciphertext calculation on the target data through the cloud server and feed back the ciphertext calculation data to the demand end after decryption by the ciphertext calculation server.

[0040] To achieve the above objectives, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0041] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0042] The ciphertext processing method and device, electronic device and storage medium proposed in this application, in the "ciphertext calculation" process, the demand side of privacy computing initiates a ciphertext calculation request, and after multiple calculations between the ciphertext calculation server and the cloud server, the ciphertext calculation result is calculated to obtain the target decrypted data, and then returned to the demand side of privacy computing. The realization of on-demand homomorphic encryption, ciphertext calculation and homomorphic decryption can effectively save computing resources, fully protect data privacy and reduce the risk of data leakage. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a system architecture diagram of the ciphertext processing method application system provided in the embodiment of the present application;

[0044] Figure 2 is a flow chart of the ciphertext processing method provided in an embodiment of the present application;

[0045] Figure 3 is a flow chart of a ciphertext processing method provided by another embodiment of the present application;

[0046] Figure 4 is a flow chart of a ciphertext processing method provided by another embodiment of the present application;

[0047] Figure 5 is a flow chart of a ciphertext processing method provided by another embodiment of the present application;

[0048] Figure 6 yes Figure 5 Flow chart of step S503 in FIG.

[0049] Figure 7 yes Figure 2 Flow chart of step S203 in FIG.

[0050] Figure 8 yes Figure 2 Flow chart of step S205 in FIG.

[0051] Fig. 9 It is a structural schematic diagram of a ciphertext processing device provided in an embodiment of the present application;

[0052] Fig.10 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0056] First, some nouns involved in this application are analyzed:

[0057] Symmetric encryption: Symmetric encryption is a type of encryption algorithm in which the encryption key and the decryption key are the same. The encryption algorithm and decryption algorithm of a symmetric encryption scheme are usually denoted as (Enc, Dec), respectively; the key is denoted as key, and the process of encrypting a message m with key to obtain a ciphertext c is denoted as c←Enc(key, m); the process of decrypting a ciphertext c with key to obtain a message m is denoted as m←Dec(key, c).

[0058] Public key encryption: Public key encryption is another type of encryption algorithm. The encryption key is different from the decryption key. The encryption key is usually public, so it is called a public key. The encryption algorithm and decryption algorithm are usually denoted as (P_Enc, P_Dec); the key pair is denoted as (Enc_pk, Dec_sk), where enc_pk is the public key used for encryption and dec_sk is the private key used for decryption; the process of encrypting a message m with enc_pk to obtain a ciphertext c is denoted as c←P_Enc(enc_pk, m); the process of decrypting a ciphertext c with dec_sk to obtain a message m is denoted as m←P_Dec(dec_sk, c).

[0059] Homomorphic encryption: Homomorphic encryption is a type of encryption algorithm that allows people to perform operations such as retrieval and comparison on encrypted data and obtain correct results without decrypting the data during the entire processing process. A homomorphic encryption scheme contains three algorithms: (H_Enc, H_Dec, H_Ev), where H_Enc is the encryption algorithm, H_Dec is the decryption algorithm, and H_Ev is the ciphertext operation algorithm. All three algorithms require keys, which are recorded as (h_pk, h_sk, h_evk), where h_pk is the encryption key, h_sk is the decryption key, and h_evk is the ciphertext operation key.

[0060] Assume that the input of the ciphertext operation H_Ev is the ciphertext list c1, ..., c n , operation algorithm op, ciphertext operation key, and the output is a ciphertext, represented as c←H_Ev(op, c1, …, c n , h_evk). Where op is the operation algorithm, such as "search", "sum", etc.; h_evk is the ciphertext operation key; c is the output ciphertext.

[0061] Digital signature: includes two algorithms (Sign, Verif), and two keys (sign_sk, verif_pk). Among them, Sign is the signature algorithm, using the signature private key Sign_sk, and Verif is the verification algorithm, using the verification public key Verif_pk. The digital signature scheme ensures that only the user holding the private key Sign_sk can correctly generate a signature.

[0062] Homomorphic encryption technology can achieve the technical effect of "data remains unchanged, model changes". It is an important part of the privacy computing solution and can effectively protect data security.

[0063] An important drawback of homomorphic encryption technology is that the amount of computation required for homomorphic encryption and decryption is very large, so protecting all data through homomorphic encryption requires a lot of computer computing resources. In fact, most data does not need to participate in ciphertext calculations or homomorphic encryption, and does not need to consume a lot of computing resources.

[0064] Based on this, the embodiments of the present application provide a ciphertext processing method and device, an electronic device and a storage medium, which adopts homomorphic encryption, ciphertext operation and homomorphic decryption operations when receiving a ciphertext operation request sent by the demand end, and adopts other encryption methods in other situations where homomorphic encryption, ciphertext operation and homomorphic decryption are not required, so as to effectively save the computer's computing resources, protect data privacy, and ensure that data is not leaked.

[0065] The ciphertext processing method and device, electronic device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the ciphertext processing method in the embodiments of the present application is described.

[0066] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0067] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0068] The ciphertext processing method provided in the embodiment of the present application relates to the field of data encryption technology. The ciphertext processing method provided in the embodiment of the present application can be applied to a terminal, can also be applied to a server side, and can also be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the ciphertext processing method, etc., but is not limited to the above forms.

[0069] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0070] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.

[0071] Please refer to Figure 1 The ciphertext processing method is applied to a ciphertext processing system, which includes: a data provider 101, a cloud server 102, a ciphertext operation server 103 and a demander 104.

[0072] The data provider 101 is provided with at least one data provider 101, and at least one data provider 101 is respectively connected to the cloud server 102. The data provider 101 is used to upload the encrypted data to the cloud server 102. Before uploading the encrypted data to the cloud server 102, the data to be stored needs to be encrypted to form encrypted data, so as to protect the data from being leaked during the transmission to the cloud server 102, so as to ensure the privacy of the data.

[0073] The cloud server 102 has one end connected to at least one data provider 101, and the other end connected to the ciphertext operation server 103. The connection between the cloud server 102 and the data provider 101 and the ciphertext operation server 103 can be a wired connection or a wireless connection, and the wireless connection includes any one of the following: GPRS, WIFI, 4G. The cloud server 102 receives and stores data from the data provider 101, and converts the encrypted data into data required for homomorphic encryption.

[0074] Demand end 104, at least one demand end 104 is set, and at least one demand end 104 is respectively connected to the ciphertext operation server 103. The demand end 104 is the end that needs to use the encrypted data stored in the cloud server 102 to perform privacy calculations and obtain results. Therefore, when a ciphertext operation request is sent through the demand end 104, the encrypted data stored in the cloud server 102 is called to perform homomorphic encryption, ciphertext operation and homomorphic decryption operations, so as to realize the use of homomorphic algorithms on demand, without the need to encrypt and decrypt all data using homomorphic algorithms, thus saving computing resources.

[0075] The ciphertext operation server 103 has one end connected to the cloud server 102 and the other end connected to the demand end 104. The connection between the ciphertext operation server 103 and the demand end 104 also includes wireless and wired, and the wireless method is the same as the wireless connection between the cloud server 102 and the ciphertext operation server 103. The ciphertext operation server 103 is an entity that calculates the encrypted data uploaded by different data providers, and is also the only entity that performs homomorphic decryption in the scheme. Therefore, the ciphertext operation server 103 performs homomorphic decryption according to the ciphertext operation request of the demand end 104, so as to perform homomorphic decryption on demand, without the need for all data to use homomorphic encryption technology, saving computing resources.

[0076] Figure 2 is an optional flowchart of the ciphertext processing method provided in an embodiment of the present application. Figure 2 The method may include but is not limited to steps S201 to S205.

[0077] Step S201: When the ciphertext operation server receives the ciphertext operation request sent by the demand end, the ciphertext operation server uses the pre-configured second signature public key to digitally sign the ciphertext operation request to obtain request signature information;

[0078] Step S202: The ciphertext operation server sends the request signature information and the ciphertext operation request to the cloud server, so that the cloud server verifies the request signature information using a pre-configured second signature private key to obtain a request verification result;

[0079] Step S203, if the request verification result indicates that the verification is successful, the cloud server selects the selected data from the pre-stored encrypted data according to the ciphertext operation request;

[0080] Step S204, the cloud server homomorphically encrypts the selected data according to the pre-configured homomorphic ternary public key to obtain the target data;

[0081] In step S205, the cloud server performs ciphertext calculation on the target data, decrypts it through the ciphertext calculation server, and then feeds it back to the demand side.

[0082] In the steps S201 to S205 shown in the embodiment of the present application, when ciphertext calculation is required, the demand side that needs to perform ciphertext calculation initiates a ciphertext calculation request to the ciphertext budget server, and the ciphertext calculation server first uses the second signature public key to sign the ciphertext calculation request to obtain the request signature information, and then sends the request signature information and the ciphertext calculation request to the cloud server together, so that the cloud server uses the second signature private key to verify the request signature information to obtain the request verification result. When the request verification result is characterized as a successful verification, it means that the request signature information is the signature of the ciphertext calculation server, and the selected data is extracted from the pre-stored encrypted data. After the cloud server extracts the selected data, it homomorphically encrypts the selected data according to the homomorphic ternary public key to obtain the target data, and then performs ciphertext calculation on the doubly encrypted target data and sends it to the ciphertext calculation server for homomorphic decryption and then feeds it back to the demand side. Therefore, by constructing a method for performing homomorphic encryption, ciphertext calculation and homomorphic decryption operations according to the needs of the demand side, instead of homomorphically encrypting all data, the computing resources for data encryption are saved.

[0083] Please refer to Figure 3 In some embodiments, before step S201, the ciphertext processing method further includes but is not limited to steps S301 to S304:

[0084] Step S301: The data provider generates a symmetric key, a first signature public key, and a first signature private key, and sends the first signature public key to the cloud server and the ciphertext operation server;

[0085] Step S302: The cloud server generates an encryption public key, a decryption private key, a second signature public key, and a second signature private key, and sends the second signature public key and the encryption public key to the data provider and the ciphertext calculation server;

[0086] Step S303: The ciphertext operation server generates a ternary key group, a third signature public key, and a third signature private key, wherein the ternary key group includes: a homomorphic ternary public key, a homomorphic ternary private key, and a ciphertext operation key; the ciphertext operation server sends the third signature public key to the data provider and the cloud server;

[0087] Step S304: the ciphertext operation server encrypts the ciphertext operation key according to the encryption public key and sends it to the cloud server.

[0088] It should be noted that before performing ciphertext operations, the data provider, cloud server, and ciphertext operation server are respectively "initialized". "Initialization" represents the preparation work of the data provider, cloud server, and ciphertext operation server in the parameter data encryption process, and the "initialization" process requires the generation of their own specific keys and signature keys, and the distribution of public keys to each participating end.

[0089] In step S301 of some embodiments, the data provider generates a first signature public key, a second signature private key and a symmetric key that are exclusive to the data provider. There is at least one data provider, so at least one data provider is defined as dp1, dp2, ..., dp n , then at least one data provider dp1, dp2, ..., dp n The corresponding first signature public key and first signature private key are recorded as (dp1_sign_sk, dp1_verif_pk), (dp2_sign_sk, dp2_verif_pk), ..., (dp n _sign_sk,dp n In addition, the symmetric keys of at least one data provider are respectively recorded as dp1_key, dp2_key, ..., dp n _key. Therefore, each data provider generates its own signature public-private key pair and symmetric key. Then the data provider can symmetrically encrypt the data according to the symmetric key, without the need to use homomorphic encryption technology, saving computing power. After the data provider completes key generation, it distributes the first signature public key to the cloud server and the ciphertext operation server. Among them, the data provider broadcasts the first signature public key in the form of broadcasting so that each entity can obtain the first signature public key.

[0090] In step S302 of some embodiments, the cloud server generates a dedicated second signature public key, a second signature private key, an encryption public key, and a decryption private key. It can be seen that the cloud server uses the encryption public-private key pair to complete the public key encryption algorithm. After the cloud server generates the key, it distributes the second signature public key and the encryption public key to the data provider and the ciphertext operation server, so that the data provider or the ciphertext operation server uses the second signature public key to sign the data or request.

[0091] It should be noted that the second signature public key and the second signature private key of the cloud platform are recorded as (cloud_sign_sk, cloud_verif_pk), and the encryption public key and the decryption private key are recorded as (enc_pk, dec_sk).

[0092] In step S303 of some embodiments, the ciphertext operation server generates a dedicated third signature public key, a third signature private key and a ternary key group, the ternary key group includes: a homomorphic ternary public key, a homomorphic ternary private key and a ciphertext operation key. Then, the third signature public key is first sent to the data provider and the cloud server in a broadcast form, so that the data provider and the cloud server can use the third signature public key for signing.

[0093] It should be noted that the third signature public key and the third signature private key are recorded as (ce_sign_sk, ce_verif_pk), and the ternary key group is recorded as (h_pk, h_sk, h_evk).

[0094] In step S304 of some embodiments, the ternary key group of the ciphertext operation server cannot be transmitted to the cloud server at will. The ciphertext operation key is encrypted by using the encryption public key of the cloud server and then sent to the cloud server, so that the cloud server can use its own decryption private key to decrypt and obtain the ciphertext operation key. When ciphertext calculation is required on the encrypted data, the cloud server can use the ciphertext operation key to perform ciphertext calculation operations on the encrypted data.

[0095] In steps S301 to S304 shown in this embodiment, the data provider, cloud server and ciphertext operation server generate their own signature public and private key pairs respectively, and distribute the signature public key to other entities. At the same time, the data provider generates a symmetric key, the cloud server generates an encryption public key and a decryption private key, and the ciphertext operation server generates a ternary key group, so that different terminals can encrypt data using their own key algorithms, without the need for all data to use homomorphic encryption technology, saving the amount of data encryption and decryption operations and saving computer computing resources.

[0096] See also Figure 4 In some embodiments, after step S304, the ciphertext processing method may further include but is not limited to steps S401 to S402:

[0097] Step S401, the cloud server receives the encrypted ciphertext operation key, and decrypts the encrypted ciphertext operation key according to the decryption private key to obtain the ciphertext operation key;

[0098] Step S402: The data provider encrypts the symmetric key according to the homomorphic ternary public key to obtain an encryption key.

[0099] In step S401 of some embodiments, when the cloud server receives the encrypted ciphertext operation key from the ciphertext operation server using the encryption public key. Wherein, the ciphertext operation key is h_evk, and the ciphertext operation server uses the encryption public key Enc_pk to encrypt h_evk to obtain c_evk←P_Enc(enc_pk, h_evk). Therefore, the encrypted ciphertext operation key received by the cloud server is c_evk, and the cloud server uses the encrypted key operation key c_evk encrypted by the ciphertext operation server using its own decryption private key to obtain h_evk. Therefore, the ciphertext operation key is encrypted by the ciphertext operation server using the encryption public key and then transmitted to the cloud server, so that the cloud server uses the decryption private key to decrypt and obtain the ciphertext operation key, so that the ciphertext operation key can be securely transmitted to the cloud server, reducing the leakage of the ciphertext operation key and improving the security of key transmission.

[0100] After the ciphertext operation server sends the ciphertext operation key to the cloud server, it also sends the homomorphic ternary public key to the data provider, so that the data provider receives the homomorphic ternary public key from the ternary key group. In step S402 of some embodiments, the data provider uses the homomorphic ternary public key to encrypt the symmetric key to obtain an encryption key, so that the symmetric key of the data provider is protected by encryption, reducing the leakage of the symmetric key and improving the security of the key transmission process. i _key After encryption, the encryption key is en_dp i _key, the encryption process of the symmetric key is recorded as H_Enc(h_pk, dp i _key).

[0101] In steps S401 to S402 shown in this embodiment, the encrypted ciphertext operation key is decrypted by using a decryption private key to obtain a ciphertext operation key, and then the symmetric key is encrypted using a homomorphic ternary public key to implement key encryption protection, reduce key leakage, and improve key security.

[0102] See also Figure 5 In some embodiments, before step S203, the ciphertext operation method may also include but is not limited to steps S501 to S503:

[0103] Step S501: The data provider encrypts the data to be stored according to the symmetric key to obtain encrypted data;

[0104] Step S502: the data provider signs the encrypted data according to the first signature private key to obtain data signature information;

[0105] Step S503: the data provider sends the encrypted data and data signature information to the cloud server, so that the cloud server stores the encrypted data according to the data signature information.

[0106] In step S501 of some embodiments, when the data provider needs to upload the data to be stored to the cloud server, the data to be stored needs to be encrypted before being transmitted to the cloud server. The data provider uses a symmetric key to encrypt the data to be stored to obtain encrypted data. For example, the data to be stored is data, and the data provider dp i (i=1, 2, ..., n) using the symmetric key dp i _key encrypts the data to be stored data to obtain encrypted data, the encrypted data is c_data, then the encryption process of the data to be stored is recorded as Enc(dp i _key, data).

[0107] In step S502 of some embodiments, the data provider uses the first signature private key to sign the encrypted data to obtain data signature information, which is represented as the signature information of the encrypted data. The data signature information is used as reference information for the cloud server to determine whether the encrypted data is stored.

[0108] In step S503 of some embodiments, the data provider sends the encrypted data and data signature information to the cloud server, so that the cloud server determines whether to store the encrypted data according to the data signature information.

[0109] For example, the encrypted data c_data and the data signature information sigma_c_data are sent to the cloud server together.

[0110] In steps S501 to S503 shown in this embodiment, the data provider uses its own symmetric key to encrypt the stored data to obtain encrypted data, and then uses its own first signature private key to sign the encrypted data to obtain data signature information. The data provider then sends the encrypted data and the data signature information together to the cloud server, so that the cloud server stores the encrypted data according to the data signature information to achieve data encryption transmission, making data transmission from the data provider to the cloud server more secure and enhancing data privacy protection.

[0111] See also Figure 6 In some embodiments, step S503 includes but is not limited to steps S601 to S604:

[0112] Step S601, the data provider sends encrypted data and data signature information to the cloud server;

[0113] Step S602: The cloud server verifies the data signature information according to the first signature public key to obtain a data verification result;

[0114] Step S603, if the data verification result indicates that the verification is successful, the encrypted data is stored;

[0115] Step S604: if the data verification result indicates verification failure, the encrypted data is deleted and verification failure information is sent to the data provider.

[0116] In step S602 of some embodiments, when the cloud server receives encrypted data and data signature information uploaded from the data provider, the cloud server pre-receives the first signature public key sent from the data provider, and the data signature information is also signed with the first signature private key, so the cloud server uses the first signature public key to verify the data signature information to determine whether the data signature information is the signature information of the encrypted data to obtain a data verification result. Among them, the data verification result includes verification success and verification failure. If the data verification result is characterized as verification success, it indicates that the data signature information belongs to the signature information of the encrypted data, so as to realize the verification of the encrypted data. If the data verification result is characterized as verification failure, it indicates that the data signature information does not belong to the signature information of the encrypted data, so the received encrypted data is tampered with or replaced during the transmission process. Therefore, the data signature information is verified to ensure that the cloud server stores correct and secure encrypted data.

[0117] It should be noted that the data signature information sigma_c_data is verified using the first signature public key dpi_verif_pk of the data provider dpi to confirm whether sigma_c_data is the signature of c_data to obtain a data verification result.

[0118] In step S603 of some embodiments, when the data verification result is characterized as successful verification, the encrypted data is stored in the cloud server, and verification pass information is sent to the data provider, so that the data provider can know that the encrypted data has been stored after receiving the verification pass information.

[0119] In step S604 of some embodiments, when the data verification result is characterized as verification failure, the encrypted data is deleted and verification failure information is sent to the data provider so that the data provider knows from the verification failure information that the encrypted data has not been stored and needs to be re-encrypted before uploading.

[0120] It should be noted that if the data verification result indicates verification failure, the data signature information sigma_c_data is considered not to be the signature information of the encrypted data c_data, the encrypted data c_data is deleted, and verification failure information is sent to the data provider dpi. Otherwise, the encrypted data c_data is stored in the cloud server, and verification pass information is sent to the data provider dpi.

[0121] In steps S601 to S604 shown in this embodiment, the cloud server receives encrypted data and data signature information from the data provider, and uses the first signature public key to verify the data signature information to determine whether the data signature information is a signature of the encrypted data, and stores or deletes the data based on the data verification result to ensure that the encrypted data stored in the cloud server is secure and accurate.

[0122] In step S201 of some embodiments, after the cloud server stores the encrypted data of each data provider, when the demand side needs to use the encrypted data stored by the cloud server for ciphertext calculation, the demand side sends a ciphertext calculation request to the ciphertext calculation server. Among them, the ciphertext calculation request includes: a ciphertext calculation algorithm and participating data description information. The ciphertext calculation algorithm can be used to know what type of operation the demand side needs to perform using encrypted data. The ciphertext calculation algorithm includes at least one of the following: retrieval, comparison, screening, etc., and there is no specific restriction on the ciphertext calculation algorithm. The participating data description information describes which encrypted data the demand side needs for ciphertext calculation. Therefore, after receiving the ciphertext calculation request, the ciphertext calculation server uses the second signature public key sent by the cloud server to sign the ciphertext calculation request to obtain the request signature information.

[0123] For example, the second signature public key is ce_sign_sk, the second signature public key is used to digitally sign the ciphertext operation request to obtain the request signature information sigma_req, and the signing process of the ciphertext operation request is Sign (ce_sign_sk, ciphertext operation request).

[0124] After the ciphertext operation server completes the signature of the ciphertext operation request, in step S202 of some embodiments, the ciphertext operation server forwards the ciphertext operation request and the request signature information to the cloud server, so that the cloud server receives the ciphertext operation request and the request signature information. After the cloud server receives the ciphertext operation request and the request signature information, the cloud server uses its own second signature private key to verify the request signature information to determine whether the request signature information is the signature information of the ciphertext operation request to obtain the request verification result. Among them, the request verification result includes: verification success and verification failure, the verification failure indicates that the request signature information is not the signature information of the ciphertext operation request, and the verification success information indicates that the request signature information is the signature information of the ciphertext operation request. Therefore, by verifying the request signature information to determine whether it is the signature information of the ciphertext operation request, it is determined whether to perform the ciphertext operation.

[0125] In step S203 of some embodiments, if the request verification result is characterized as successful verification, it means that the requested signature information is the signature information of the ciphertext operation request, so it is determined that the demand side needs to perform ciphertext operation, so the cloud server extracts the selected data that needs to be ciphertext operated from the encrypted data according to the ciphertext operation request.

[0126] See also Figure 7 In some embodiments, the participating data description information includes: data type, data memory size, data source information; step S203 may include but is not limited to steps S701 to S702:

[0127] Step S701, if the request verification result indicates that the verification is successful, preliminary data is screened out from the encrypted data according to the data type;

[0128] Step S702, selecting data from preliminary data according to data memory size and data source information.

[0129] In step S701 of some embodiments, when the request verification result is characterized as successful verification, it is determined that the demand side needs to perform ciphertext operation, so the encrypted data is first screened according to the data type of the ciphertext operation request. Or the data type of the encrypted data, the encrypted data with the matching data type is obtained as preliminary data.

[0130] It should be noted that if the request verification result is characterized as verification failure, the cloud server sends a verification failure message to the ciphertext operation server so that the ciphertext operation server knows that the ciphertext operation cannot be performed based on the verification failure message and whether to choose to re-initiate the ciphertext operation request.

[0131] In step S702 of some embodiments, the data source information indicates which data provider the encrypted data comes from, so the selected data is removed from the preliminary data based on the data source information and the data memory size to determine the selected data that needs to participate in the ciphertext operation. In addition, after the selected data is extracted, it is also necessary to obtain the homomorphic ternary public key used by the data provider corresponding to the selected data. Since the data provider will use the homomorphic ternary public key to encrypt the symmetric key, if the encrypted data needs to be decrypted, the symmetric key needs to be determined, so it is necessary to determine which homomorphic ternary public key is used by the data provider corresponding to the selected data, so as to decrypt the encryption key according to the homomorphic ternary private key.

[0132] It should be noted that if the selected data is ciphertxt1, ciphertxt2, ..., ciphertxt m The corresponding encryption keys are en_dp1_key, en_dp2_key, ..., en_dp m _key.

[0133] In steps S701 to S702 shown in this embodiment, after the request verification result is characterized as successful verification, the selected data required for the ciphertext operation is gradually selected according to the data type, data memory size and data source information, so that the selected data screening operation is simple and accurate.

[0134] In step S204 of some embodiments, the cloud server uses a homomorphic public key encryption algorithm and a homomorphic ternary private key to encrypt the selected data again to obtain the target data, so that the target data is the data to be stored in a "double encrypted" state. The entire homomorphic encryption process can be recorded as ciphertxt1′←H_Enc(h_pk, ciphertxt1), ciphertxt2′←H_Enc(h_pk, ciphertxt2), ..., ciphertxt m ′←H_Enc(h_pk, ciphertxt m ).

[0135] Please refer to Figure 8 In some embodiments, step S205 may include but is not limited to steps S801 to S803:

[0136] Step S801, the cloud server performs homomorphic decryption on the target data according to the pre-configured ciphertext operation key, ciphertext operation algorithm, and encryption key to obtain preliminary decrypted data;

[0137] Step S802, the cloud server performs ciphertext calculation on the preliminary decrypted data according to the ciphertext calculation key to obtain a ciphertext calculation result;

[0138] In step S803, the cloud server sends the ciphertext operation result to the ciphertext operation server, so that the ciphertext operation server decrypts the ciphertext operation result according to the pre-configured homomorphic ternary private key to obtain the target decrypted data, and then feeds back the target decrypted data to the demand end.

[0139] In step S801 of some embodiments, the cloud server uses the homomorphic ciphertext operation algorithm, the ciphertext operation key and the encryption key to homomorphically decrypt the target data to obtain preliminary decrypted data. If multiple target data are stored, then the multiple preliminary decrypted data are recorded as ciphertxt1″…ciphertxt m ″, the decryption process of the initial decrypted data is recorded as: ciphertxt1″←H_Ev(Dec, ciphertxt1′, en_dp1_key, h_evk), ciphertxt2″←H_Ev(Dec, ciphertxt2′, en_dp2_key, h_evk), …, ciphertxt m ″←H_Ev(Dec, ciphertxt m ′, en_dp m _key, h_evk). Therefore, according to the ciphertext operation key, encryption key, target data, and ciphertext operation algorithm, decryption processing is performed to output a preliminary decrypted data.

[0140] In step S802 of some embodiments, the cloud server also uses the ciphertext calculation algorithm and the ciphertext calculation key to perform ciphertext calculation on the preliminary decrypted data to obtain a ciphertext calculation result. The ciphertext calculation result is c, and the process of performing ciphertext calculation on the ciphertext calculation result can be recorded as c←H_Ev(f, ciphertxt1″, …, ciphertxt m ″, h_evk). Therefore, through step S801 to step S802, the cloud server performs ciphertext operation and sends the ciphertext operation result to the ciphertext operation server to realize on-demand homomorphic encryption, homomorphic decryption and ciphertext operation, without the need to use homomorphic encryption technology for all data, saving computing power and reducing computing resources.

[0141] In step S803 of some embodiments, after the cloud server sends the ciphertext operation result to the ciphertext operation server, the ciphertext operation server uses the homomorphic decryption algorithm and the homomorphic ternary private key to decrypt the ciphertext operation result to obtain the target decrypted data, and finally the ciphertext operation server sends the target decrypted data to the demand side. The decryption process performed by the ciphertext operation server is recorded as result←H_Dec(c, h_sk).

[0142] In steps S801 to S803 shown in this embodiment, after the cloud server automatically performs ciphertext operations, the ciphertext operation server decrypts the ciphertext operation results to obtain target decrypted data, and finally feeds back the target decrypted data to the demand side to achieve on-demand homomorphic encryption, ciphertext operations and homomorphic decryption, which can effectively save computing resources, and at the same time the data can be fully protected, reducing the possibility of data leakage and improving data security.

[0143] See also Fig. 9 The embodiment of the present application also provides a ciphertext processing device, which can implement the above ciphertext processing method, and the device includes:

[0144] The signature module 901 is used for, when receiving a ciphertext operation request sent by a demand end through a ciphertext operation server, the ciphertext operation server uses a pre-configured second signature public key to digitally sign the ciphertext operation request to obtain request signature information;

[0145] Verification module 902, used to send the request signature information and the ciphertext operation request to the cloud server through the ciphertext operation server, so that the cloud server uses the pre-configured second signature private key to verify the request signature information to obtain a request verification result;

[0146] A screening module 903 is used to screen selected data from pre-stored encrypted data according to the ciphertext operation request by the cloud server if the request verification result indicates that the verification is successful;

[0147] The encryption module 904 is used to perform homomorphic encryption on the selected data according to the pre-configured homomorphic ternary public key through the cloud server to obtain the target data;

[0148] The feedback module 905 is used to perform ciphertext calculation on the target data through the cloud server and then decrypt it through the ciphertext calculation server and then feed it back to the demand side.

[0149] The specific implementation of the ciphertext processing device is basically the same as the specific implementation of the ciphertext processing method described above, and will not be repeated here.

[0150] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned ciphertext processing method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0151] See also Fig.10 , Fig.10 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0152] The processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0153] The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1002 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes the ciphertext processing method of the embodiment of this application;

[0154] Input / output interface 1003, used to implement information input and output;

[0155] The communication interface 1004 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0156] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 );

[0157] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .

[0158] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the above-mentioned ciphertext processing method is implemented.

[0159] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0160] The ciphertext processing method and device, electronic device and storage medium provided in the embodiments of the present application encrypt the data to be stored in advance through the data provider and send it to the cloud server for storage; in the "ciphertext calculation" process, the demand side of the privacy calculation initiates a ciphertext calculation request, and after multiple calculations between the ciphertext calculation server and the cloud server, the ciphertext calculation result is calculated to obtain the target decrypted data, and then returned to the demand side of the privacy calculation. Homomorphic encryption, ciphertext calculation and homomorphic decryption are realized on demand. It can effectively save computing resources, fully protect data privacy and reduce the risk of data leakage.

[0161] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0162] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0163] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0164] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0165] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0166] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0167] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0168] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0169] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0170] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0171] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A ciphertext processing method, It is characterized in that The method comprises: When the ciphertext operation server receives the ciphertext operation request sent by the demand end, the ciphertext operation server uses the pre-configured second signature public key to digitally sign the ciphertext operation request to obtain request signature information; The ciphertext operation server sends the request signature information and the ciphertext operation request to the cloud server, so that the cloud server verifies the request signature information using a pre-configured second signature private key to obtain a request verification result; If the request verification result indicates successful verification, the cloud server selects selected data from pre-stored encrypted data according to the ciphertext operation request; The cloud server homomorphically encrypts the selected data according to a pre-configured homomorphic ternary public key to obtain target data; The cloud server performs ciphertext calculation on the target data, decrypts the data through the ciphertext calculation server, and then feeds back to the demand end; wherein the ciphertext calculation request includes: ciphertext calculation algorithm and participating data description information; the participating data description information includes: data type, data memory size and data source information; if the request verification result is characterized as successful verification, the cloud server selects selected data from the pre-stored encrypted data according to the ciphertext calculation request, including: If the request verification result indicates successful verification, preliminary data is screened out from the encrypted data according to the data type; The selected data is screened out from the preliminary data according to the data memory size and the data source information.

2. The method according to claim 1, It is characterized in that The cloud server performs ciphertext calculation on the target data, decrypts the data through the ciphertext calculation server, and then feeds the data back to the demand end, including: The cloud server performs homomorphic decryption on the target data according to the pre-configured ciphertext operation key, the ciphertext operation algorithm and the encryption key to obtain preliminary decrypted data; The cloud server performs ciphertext calculation on the preliminary decrypted data according to the ciphertext calculation algorithm and the ciphertext calculation key to obtain a ciphertext calculation result; The cloud server sends the ciphertext operation result to the ciphertext operation server, so that the ciphertext operation server decrypts the ciphertext operation result according to the pre-configured homomorphic ternary private key to obtain the target decrypted data, and then feeds back the target decrypted data to the demand end.

3. The method according to any one of claims 1 to 2, It is characterized in that When the ciphertext operation server receives the ciphertext operation request sent by the demand end, before the ciphertext operation server uses the pre-configured second signature public key to digitally sign the ciphertext operation request to obtain request signature information, the method further includes: The data provider generates a symmetric key, a first signature public key and a first signature private key, and sends the first signature public key to the cloud server and the ciphertext calculation server; The cloud server generates an encryption public key, a decryption private key, a second signature public key and a second signature private key, and sends the second signature public key and the encryption public key to the data provider and the ciphertext operation server; The ciphertext operation server generates a ternary key group, a third signature public key and a third signature private key, wherein the ternary key group includes: a homomorphic ternary public key, a homomorphic ternary private key and a ciphertext operation key; the ciphertext operation server sends the third signature public key to the data provider and the cloud server; The ciphertext operation server encrypts the ciphertext operation key according to the encryption public key and sends the encrypted key to the cloud server.

4. The method according to claim 3, It is characterized in that After the ciphertext operation server encrypts the ciphertext operation key according to the encryption public key and sends the encrypted key to the cloud server, the method further includes: The cloud server receives the encrypted ciphertext operation key, and decrypts the encrypted ciphertext operation key according to the decryption private key to obtain the ciphertext operation key; The data provider encrypts the symmetric key according to the homomorphic ternary public key to obtain an encryption key.

5. The method according to claim 3, It is characterized in that Before the cloud server selects selected data from pre-stored encrypted data according to the ciphertext operation request if the request verification result indicates successful verification, the method further includes: The data provider encrypts the data to be stored according to the symmetric key to obtain encrypted data; The data provider performs a signing process on the encrypted data according to the first signature private key to obtain data signature information; The data provider sends the encrypted data and the data signature information to the cloud server, so that the cloud server stores the encrypted data according to the data signature information.

6. The method according to claim 5, It is characterized in that The data provider sends the encrypted data and the data signature information to the cloud server so that the cloud server stores the encrypted data according to the data signature information, including: The data provider sends the encrypted data and the data signature information to the cloud server; The cloud server verifies the data signature information according to the first signature public key to obtain a data verification result; If the data verification result indicates that the verification is successful, the encrypted data is stored; If the data verification result indicates a verification failure, the encrypted data is deleted and a verification failure message is sent to the data provider.

7. A ciphertext processing device, It is characterized in that The device comprises: The signature module is used for the ciphertext operation server to digitally sign the ciphertext operation request using a pre-configured second signature public key to obtain request signature information when the ciphertext operation server receives the ciphertext operation request sent by the demand end; A verification module, used to send the request signature information and the ciphertext operation request to the cloud server through the ciphertext operation server, so that the cloud server uses a pre-configured second signature private key to verify the request signature information to obtain a request verification result; A screening module, configured to screen selected data from pre-stored encrypted data by the cloud server according to the ciphertext operation request if the request verification result is characterized as successful verification; An encryption module, used to perform homomorphic encryption on the selected data according to a pre-configured homomorphic ternary public key through the cloud server to obtain target data; A feedback module is used to perform ciphertext calculation on the target data through the cloud server and feed it back to the demand end after decryption by the ciphertext calculation server; wherein the ciphertext calculation request includes: ciphertext calculation algorithm and participating data description information; the participating data description information includes: data type, data memory size and data source information; if the request verification result is characterized as successful verification, the cloud server selects selected data from the pre-stored encrypted data according to the ciphertext calculation request, including: If the request verification result indicates successful verification, preliminary data is screened out from the encrypted data according to the data type; The selected data is screened out from the preliminary data according to the data memory size and the data source information.

8. An electronic device, It is characterized in that The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the ciphertext processing method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the ciphertext processing method according to any one of claims 1 to 6 is implemented.