A privacy-seeking method, device, equipment and medium
The initiating ciphertext is determined through the elliptic curve base point and SM2 key exchange algorithm, which solves the problems of low efficiency and insufficient security of the existing privacy set intersection method, realizes efficient and secure privacy intersection, meets the national cryptographic compliance requirements and Avoid the risks of RSA algorithm.
Patent Information
- Application Number
- CN202410598971.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-15
AI Technical Summary
Existing privacy set intersection methods are inefficient and have insufficient security, and cannot meet the national security compliance requirements. In particular, the oblivious transmission protocol has high engineering complexity and security risks of the RSA algorithm.
The elliptic curve base point and SM2 key exchange algorithm are used to determine the initiation ciphertext through the fingerprint of the initiation data and the proprietary public and private keys, simplifying the process and reducing the number of interactions. It directly uses the existing SM2 algorithm to calculate the ciphertext, improving efficiency and enhancing Security, avoiding the vulnerability of the RSA algorithm and the risk of preset backdoors.
It improves the efficiency and security of privacy interrogation, meets security compliance requirements, uses shorter keys to achieve higher security, has a small amount of calculation, fast processing speed, takes up less storage space and transmission bandwidth, and ensures information security. Infrastructure security and trustworthiness.
Smart Images

Figure CN118194332B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and in particular to a privacy protection method, device, equipment and medium. Background Art
[0002] Private Set Intersection (PSI) is a key technology in privacy computing, also known as private set intersection. It allows multiple parties to find the intersection of their respective data sets without leaking any additional information. The "extra information" here refers to any information other than the data intersection. PSI technology is widely used in scenarios such as data alignment in vertical federated learning, or friend discovery through address books in social software.
[0003] At present, the fastest method for finding the intersection of private sets is based on the oblivious transfer protocol. However, there are many disadvantages of using PSI based on protocols such as oblivious transfer, such as the need for business systems to implement dedicated operators, high engineering complexity, and low efficiency of finding the intersection; it also cannot meet the national secret compliance requirements. Although some asymmetric encryption algorithms, such as the RSA algorithm, have been tried for private intersection, due to the vulnerability of the RSA algorithm and security risks such as "pre-installed backdoors", the security is not high and cannot be widely used. Summary of the invention
[0004] The present invention provides a privacy intersection method, device, equipment and medium to improve the efficiency and security of privacy intersection.
[0005] According to one aspect of the present invention, a privacy intersection method is provided, comprising:
[0006] Determine an initiation-specific public key and an initiation-specific private key of the initiation data according to the fingerprint of the initiation data and the elliptic curve base point;
[0007] Based on a preset elliptic encryption algorithm or an SM2 key exchange algorithm, determining the initiation ciphertext of the initiation data according to the initiation-specific public key and the initiation-specific private key;
[0008] The initiating ciphertext is sent to the participants of the privacy intersection request, to instruct the participants to determine the intersection data of this privacy intersection request according to the initiating ciphertext and the participating ciphertext of the participating data, and return the intersection data to the initiator.
[0009] According to another aspect of the present invention, a privacy requesting device is provided, comprising:
[0010] A key determination module, used to determine an initiation-specific public key and an initiation-specific private key of the initiation data according to a fingerprint and an elliptic curve base point of the initiation data;
[0011] A ciphertext determination module, configured to determine the initiation ciphertext of the initiation data according to the initiation-specific public key and the initiation-specific private key based on a preset elliptic encryption algorithm or an SM2 key exchange algorithm;
[0012] The intersection determination module is used to send the initiating ciphertext to the participants in the privacy intersection request, to instruct the participants to determine the intersection data of this privacy intersection request based on the initiating ciphertext and the participating ciphertext of the participating data, and to return the intersection data to the initiator.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the privacy intersection method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the privacy intersection method described in any embodiment of the present invention when executed.
[0018] The embodiment of the present invention realizes privacy intersection by using a calculation process based on the same principle as the SM2 key negotiation algorithm. The process is simple and the number of interactions is small. The calculation of the ciphertext can directly use the existing SM2 algorithm, which reduces the difficulty of engineering implementation, improves the efficiency of intersection, and also meets the requirements of security compliance. In addition, compared with other asymmetric algorithms, such as the RSA algorithm, the SM2 algorithm or the ECC algorithm can use a shorter key to achieve higher security, with a smaller amount of calculation, faster processing speed, less storage space and transmission bandwidth, and avoid the vulnerability of the RSA algorithm and security risks such as "pre-set backdoors", ensuring the autonomous control of the key link of the cryptographic algorithm and ensuring the security and reliability of the information security infrastructure.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of a privacy intersection method provided according to an embodiment of the present invention;
[0022] Figure 2A is a flow chart of a privacy intersection method provided according to another embodiment of the present invention;
[0023] Figure 2B is a schematic diagram of a privacy request interaction process provided according to another embodiment of the present invention;
[0024] Figure 3 is a structural diagram of a privacy intersection method provided according to another embodiment of the present invention;
[0025] Figure 4 It is a schematic diagram of the structure of an electronic device implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] The privacy set intersection is classified according to the underlying cryptographic technology:
[0029] 1. PSI schemes based on public key cryptography, including: PSI schemes based on key exchange (DH: Diffie-Hellman) and PSI schemes based on RSA blind signatures;
[0030] 2. PSI solution based on oblivious transfer (OT);
[0031] 3. PSI solutions based on general MPC, such as PSI solutions based on garbled circuits (GC);
[0032] 4. PSI solution based on homomorphic encryption.
[0033] The present invention is a further improvement on the first category.
[0034] Figure 1 This is a flowchart of a privacy exchange method provided by an embodiment of the present invention. This embodiment is applicable to the case where the initiator conducts privacy exchange with the participants of the privacy exchange based on the local initiation data. The method can be executed by a privacy exchange device, which can be implemented in the form of hardware and / or software. The device can be configured in an electronic device with corresponding data processing capabilities, such as the initiator of the privacy exchange. Figure 1 As shown, the method includes:
[0035] S110. Determine an initiation-specific public key and an initiation-specific private key of the initiation data according to a fingerprint of the initiation data and an elliptic curve base point.
[0036] The initiating data, the initiating private public key, and the initiating private private key correspond to each other. The fingerprint can be the hash value of the data.
[0037] Specifically, the initiator has N (N≥1) initiation data. For each initiation data, the initiator calculates the fingerprint of the initiation data, and determines the corresponding initiation-specific public key and initiation-specific private key according to the fingerprint of the initiation data and the elliptic curve base point. In the case of N initiation data, there are N pairs of initiation-specific public keys and initiation-specific private keys.
[0038] S120. Based on a preset elliptic encryption algorithm or an SM2 key exchange algorithm, determine an initiation ciphertext of the initiation data according to the initiation-specific public key and the initiation-specific private key.
[0039] Among them, the preset elliptic encryption algorithm is an elliptic encryption algorithm similar to the SM2 key exchange algorithm. Therefore, while using the preset elliptic encryption algorithm, the present invention can also be compatible with the national SM2 algorithm. The national SM2 key exchange algorithm can be used to implement the protocol without re-implementing a new operator, which is more conducive to engineering implementation on the basis of improving security and compliance.
[0040] Specifically, the unit security strength of ECC algorithms (including the preset elliptic encryption algorithm and the SM2 key exchange algorithm) is much higher than that of the RSA algorithm. It can provide higher security strength than the RSA algorithm with less computing power, while the required key length is much lower than that of the RSA algorithm. At present, the SM2 algorithm based on ECC generally adopts a 256-bit key length, and the encryption strength is equivalent to a 3072-bit RSA key, which is much higher than the 2048-bit RSA key commonly used in the industry. Choosing to use the ECC algorithm to implement the PSI protocol can, on the one hand, avoid the vulnerability and "pre-set backdoor" security risks of the RSA algorithm, and on the other hand, ensure the autonomous control of the key link of the cryptographic algorithm, and ensure the security and reliability of the information security infrastructure.
[0041] Select an algorithm from the preset elliptic encryption algorithm of the custom encryption process and the SM2 key exchange algorithm of the public encryption process as the encryption algorithm for the initiation data. According to the selected encryption algorithm and the input parameters of the algorithm, combined with the previously determined initiation-specific public key and initiation-specific private key, calculate the initiation ciphertext corresponding to each initiation data, and finally obtain N ciphertexts.
[0042] S130: Send the initiating ciphertext to the participants in the privacy intersection request, so as to instruct the participants to determine the intersection data of this privacy intersection request according to the initiating ciphertext and the participating ciphertext of the participating data, and return the intersection data to the initiator.
[0043] Specifically, the participant has M (M≥1) participating data. For each participating data, the participant will use the same algorithm as the initiator to calculate the participating ciphertext corresponding to each participating data, and finally obtain M participating ciphertexts. The participant compares the N initiating ciphertexts with the M participating ciphertexts one by one. If there are initiating ciphertexts and participating ciphertexts with equal values, the initiating ciphertext is determined as the intersection data, and the number of intersection data is less than or equal to N. After all comparisons are completed, the participant returns the determined intersection data to the requester.
[0044] The embodiment of the present invention realizes privacy intersection by using a calculation process based on the same principle as the SM2 key negotiation algorithm. The process is simple and the number of interactions is small. The calculation of the ciphertext can directly use the existing SM2 algorithm, which reduces the difficulty of engineering implementation, improves the efficiency of intersection, and also meets the requirements of security compliance. In addition, compared with other asymmetric algorithms, such as the RSA algorithm, the SM2 algorithm or the ECC algorithm can use a shorter key to achieve higher security, with a smaller amount of calculation, faster processing speed, less storage space and transmission bandwidth, and avoid the vulnerability of the RSA algorithm and security risks such as "pre-set backdoors", ensuring the autonomous control of the key link of the cryptographic algorithm and ensuring the security and reliability of the information security infrastructure.
[0045] Optionally, the SM2 key exchange algorithm determines the initiation ciphertext of the initiation data according to the initiation-specific public key and the initiation-specific private key, including:
[0046] Determine the initiating dedicated private key as a temporary private key of the SM2 key exchange algorithm;
[0047] Determine the initiating private public key as a temporary public key of the SM2 key exchange algorithm;
[0048] Based on the SM2 key exchange algorithm, the initiation ciphertext of the initiation data is calculated according to the temporary private key and the temporary public key.
[0049] Specifically, the temporary private key in the existing SM2 key exchange algorithm is normally a random number, and the temporary public key is the product of the random number and the base point of the elliptic curve. The random number of the present invention is limited to the fingerprint of the initiating data, that is, the initiating proprietary private key is designated as the temporary private key of the SM2 key exchange algorithm, the initiating proprietary public key is designated as the temporary public key of the SM2 key exchange algorithm, and the temporary public key is not exchanged in the intermediate process. Based on the encryption process disclosed by the SM2 key exchange algorithm, the initiating ciphertext corresponding to the initiating data can be calculated using the temporary private key and the temporary public key. Since the SM2 key exchange algorithm is publicly commercialized, the specific encryption process will not be repeated in the present invention.
[0050] Figure 2A This is a flowchart of a privacy intersection method provided by another embodiment of the present invention. This embodiment is optimized and improved on the basis of the above embodiment. Figure 2A As shown, the method includes:
[0051] S210, sharing elliptic curve parameters with the participants, and determining the initiator's private key and the initiator's public key; sending the initiator's public key to the participants, to instruct the participants to return the participant's public key to the initiator according to the initiator's public key.
[0052] Specifically, Figure 2BAs shown in the figure, the initiator and the participant will first share the elliptic curve parameters (such as the SM2 curve) and the fingerprint extraction algorithm. Then each generates its own public and private keys (A, a) and (B, b), and exchanges public keys with each other. A and a are the initiator's public key and the initiator's private key respectively, and B and b are the participant's public key and the participant's private key respectively.
[0053] S220, determining the fingerprint of the initiation data as the initiation-specific private key; and determining the product of the initiation-specific private key and the elliptic curve base point as the initiation-specific public key of the initiation data.
[0054] Specifically, the initiator has N initiation data, namely: Ma1, Ma2, ..., MaN.
[0055] For each initiating data Mai, the initiator extracts its fingerprint xi as its corresponding initiating private key through a fingerprint extraction algorithm, for example, xi = HASH(Mai) mod n (i = 1,2,…,N), where n is the order of the elliptic curve. HASH here can also use a secure hash function or some irreversible one-way functions, such as SM3 or PBKDF2.
[0056] For each initiating private key xi, calculate its corresponding initiating public key Xi, Xi = xi*G, G is the base point of the elliptic curve, and finally obtain N key pairs (Xi, xi).
[0057] S230, obtaining the initiation first coordinate of the initiation specific public key on the elliptic curve; determining the initiation ciphertext of the initiation data according to the initiation specific public key, the initiation specific private key, the initiation first coordinate, the elliptic curve cofactor, the participant public key and the participant private key.
[0058] Among them, the public key of the elliptic curve is a point on the elliptic curve, which is usually expressed as two numbers using affine coordinates. For example, the first coordinate of the point P (r, s) is r, that is, P' = r.
[0059] Specifically, for each initiated data Mai, the initiator calculates:
[0060] Sai = xi + Xi'* a
[0061] Ki = h*Sai(Xi + Xi'*B)
[0062] Wherein, h is the cofactor of the elliptic curve, Xi' is the first coordinate of the initiator's dedicated public key on the elliptic curve, a is the initiator's private key, and B is the participant's public key.
[0063] Ki is used as the initiation ciphertext corresponding to the initiation data Mai, and finally N initiation ciphertexts are obtained, namely K1, K2, ..., KN.
[0064] Optionally, the initiating ciphertext is determined by the following formula:
[0065] Sai = xi + Xi'* a ,i∈[1,N]
[0066] Ki = h*Sai(Xi + Xi'*B)
[0067] Among them, xi is the initiator's private key, Xi is the initiator's public key, Xi' is the initiator's first coordinate, a is the initiator's private key, B is the participant's public key, h is the elliptic curve cofactor, Ki is the initiator's ciphertext, N
[0068] The total number of initiated data owned by the initiator.
[0069] Optionally, the process of the participating party determining the participating ciphertext is as follows:
[0070] Determine the fingerprint of the participation data as the participation-specific private key;
[0071] Determine the product of the participation-specific private key and the elliptic curve base point as the participation-specific public key of the participation data;
[0072] Obtaining the first coordinate of the participating private public key on the elliptic curve;
[0073] The participation ciphertext of the participation data is determined according to the participant-specific public key, the participant-specific private key, the participant first coordinate, the elliptic curve cofactor, the initiator's public key and the participant's private key.
[0074] Specifically, the participant has M participation data, namely: Mb1, Mb2, ..., MbM.
[0075] For each participating data Mbj, the participant extracts its fingerprint yi as the initiating proprietary private key through the fingerprint extraction algorithm, for example, yj = HASH(Mbj) mod n (j = 1,2,…,M), n is the order of the elliptic curve, and HASH here can also use a secure hash function or some irreversible one-way functions, such as SM3 or PBKDF2.
[0076] For each participant-specific private key yj, calculate its corresponding participant-specific public key Yj, Yj= yj*G, G is the base point of the elliptic curve, and finally obtain M key pairs (Yj, yj).
[0077] For each participating data Mbj, the participating party calculates:
[0078] Sbj = yj + Yj'* b;
[0079] Zj = h*Sbj(Yj + Yj'*A)
[0080] Among them, h is the cofactor of the elliptic curve, Yj' is the first coordinate of the participant's dedicated public key on the elliptic curve, b is the participant's private key, and A is the requester's public key.
[0081] Take Zj as the participating ciphertext corresponding to the participating data Mbj, and finally get M initiating ciphertexts, namely Z1, Z2, ..., ZM.
[0082] S240: Send the initiating ciphertext to the participants in the privacy intersection request, so as to instruct the participants to determine the intersection data of this privacy intersection request according to the initiating ciphertext and the participating ciphertext of the participating data, and return the intersection data to the initiator.
[0083] The embodiment of the present invention implements the PSI protocol through the ECC algorithm, which, on the one hand, avoids the security risks such as the vulnerability and "pre-set backdoor" of the RSA algorithm, and on the other hand, ensures the autonomy and controllability of the key link of the cryptographic algorithm, thereby ensuring the security and reliability of the information security infrastructure.
[0084] Figure 3 FIG. 1 is a schematic diagram of a privacy requesting device provided by another embodiment of the present invention. Figure 3 As shown, the device comprises:
[0085] A key determination module 310, configured to determine an initiation-specific public key and an initiation-specific private key of the initiation data according to a fingerprint of the initiation data and an elliptic curve base point;
[0086] A ciphertext determination module 320, configured to determine the initiation ciphertext of the initiation data according to the initiation-specific public key and the initiation-specific private key based on a preset elliptic encryption algorithm or an SM2 key exchange algorithm;
[0087] The intersection determination module 330 is used to send the initiating ciphertext to the participants of the privacy intersection request, to instruct the participants to determine the intersection data of this privacy intersection request according to the initiating ciphertext and the participating ciphertext of the participating data, and return the intersection data to the initiator.
[0088] The privacy intersection device provided in the embodiment of the present invention can execute the privacy intersection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0089] Optionally, the key determination module 310 includes:
[0090] A private key determination unit, configured to determine the fingerprint of the initiation data as an initiation-specific private key;
[0091] The public key determination unit is used to determine the product of the initiation-specific private key and the elliptic curve base point as the initiation-specific public key of the initiation data.
[0092] Optionally, the ciphertext determination module 320 includes:
[0093] A coordinate determination unit, used to obtain the first coordinate of the initiation of the initiation private public key on the elliptic curve;
[0094] The ciphertext determination unit is used to determine the initiation ciphertext of the initiation data according to the initiation-specific public key, the initiation-specific private key, the initiation first coordinate, the elliptic curve cofactor, the participant public key and the participant private key.
[0095] Optionally, the initiating ciphertext is determined by the following formula:
[0096] Sai = xi + Xi'* a ,i∈[1,N]
[0097] Ki = h*Sai(Xi + Xi'*B)
[0098] Among them, xi is the initiator's private key, Xi is the initiator's public key, Xi' is the initiator's first coordinate, a is the initiator's private key, B is the participant's public key, h is the elliptic curve cofactor, Ki is the initiator's ciphertext, N
[0099] The total number of initiated data owned by the initiator.
[0100] Optionally, the process of the participating party determining the participating ciphertext is as follows:
[0101] Determine the fingerprint of the participation data as the participation-specific private key;
[0102] Determine the product of the participation-specific private key and the elliptic curve base point as the participation-specific public key of the participation data;
[0103] Obtaining the first coordinate of the participating private public key on the elliptic curve;
[0104] The participation ciphertext of the participation data is determined according to the participant-specific public key, the participant-specific private key, the participant first coordinate, the elliptic curve cofactor, the initiator's public key and the participant's private key.
[0105] Optionally, the device further comprises:
[0106] A parameter sharing module, used to share elliptic curve parameters with the participants and determine the initiator's private key and the initiator's public key;
[0107] The key sharing module is used to send the initiator's public key to the participant, and to instruct the participant to return the participant's public key to the initiator based on the initiator's public key.
[0108] Optionally, the ciphertext determination module 320 includes:
[0109] A temporary private key determination unit, configured to determine the initiating dedicated private key as a temporary private key of an SM2 key exchange algorithm;
[0110] A temporary public key determination unit, configured to determine the initiating private public key as a temporary public key of an SM2 key exchange algorithm;
[0111] A ciphertext calculation unit, used to calculate the initiation ciphertext of the initiation data according to the temporary private key and the temporary public key based on the SM2 key exchange algorithm
[0112] The privacy intersection device further described can also execute the privacy intersection method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0113] Figure 4 A schematic diagram of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0114] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0115] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0116] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 executes the various methods and processes described above, such as the privacy intersection method.
[0117] In some embodiments, the privacy intersection method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the privacy intersection method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to perform the privacy intersection method in any other appropriate manner (e.g., by means of firmware).
[0118] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0119] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0120] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0121] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0122] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0123] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0124] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0125] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A privacy intersection method, characterized in that: Applied to the initiator of privacy intersection, the method includes: Share elliptic curve parameters with the participants and determine the initiator's private key and the initiator's public key; Sending the initiator's public key to the participant to instruct the participant to return the participant's public key to the initiator according to the initiator's public key; Determine the initiation-specific public key and the initiation-specific private key of the initiation data according to the fingerprint of the initiation data and the elliptic curve base point; wherein the initiation data, the initiation-specific public key and the initiation-specific private key correspond to each other one by one; when there are N initiation data, there are N pairs of the determined initiation-specific public key and the initiation-specific private key; Based on a preset elliptic encryption algorithm or an SM2 key exchange algorithm, determining the initiation ciphertext of the initiation data according to the initiation-specific public key and the initiation-specific private key; Sending the initiating ciphertext to the participants of the privacy intersection request, to instruct the participants to determine the intersection data of this privacy intersection request according to the initiating ciphertext and the participating ciphertext of the participating data, and returning the intersection data to the initiator; Wherein, determining the initiation-specific public key and the initiation-specific private key of the initiation data according to the fingerprint and the elliptic curve base point of the initiation data includes: For each initiation data, determining the fingerprint of the initiation data as the initiation-specific private key of the initiation data; Determine the product of the initiation-specific private key and the elliptic curve base point as the initiation-specific public key of the initiation data; Wherein, the method of determining the initiation ciphertext of the initiation data based on the initiation-specific public key and the initiation-specific private key based on a preset elliptic encryption algorithm includes: Obtaining the first coordinate of the initiating private public key on the elliptic curve; The initiation ciphertext of the initiation data is determined according to the initiation-specific public key, the initiation-specific private key, the initiation first coordinate, the elliptic curve cofactor, the participant public key and the participant private key.
2. The method according to claim 1, characterized in that The initiating ciphertext is determined by the following formula: Sai = xi + Xi'* a ,i∈[1,N] Ki = h*Sai(Xi + Xi'*B) Among them, xi is the initiator's private key, Xi is the initiator's public key, Xi' is the initiator's first coordinate, a is the initiator's private key, B is the participant's public key, h is the elliptic curve cofactor, Ki is the initiator's ciphertext, N The total number of initiated data owned by the initiator.
3. The method according to claim 1, characterized in that: The process for the participants to determine the participating ciphertext is as follows: Determine the fingerprint of the participation data as the participation-specific private key; Determine the product of the participation-specific private key and the elliptic curve base point as the participation-specific public key of the participation data; Obtaining the first coordinate of the participating private public key on the elliptic curve; The participation ciphertext of the participation data is determined according to the participant-specific public key, the participant-specific private key, the participant first coordinate, the elliptic curve cofactor, the initiator's public key and the participant's private key.
4. The method according to claim 1, characterized in that: The SM2 key exchange algorithm determines the initiation ciphertext of the initiation data according to the initiation-specific public key and the initiation-specific private key, including: Determine the initiating dedicated private key as a temporary private key of the SM2 key exchange algorithm; Determine the initiating private public key as a temporary public key of the SM2 key exchange algorithm; Based on the SM2 key exchange algorithm, the initiation ciphertext of the initiation data is calculated according to the temporary private key and the temporary public key.
5. A privacy-seeking device, characterized in that: Deployed at the initiator of the privacy request, the device includes: A parameter sharing module, used to share elliptic curve parameters with the participants and determine the initiator's private key and the initiator's public key; A key sharing module, used for sending the initiator's public key to the participant, and for instructing the participant to return the participant's public key to the initiator according to the initiator's public key; A key determination module, used to determine the initiation-specific public key and the initiation-specific private key of the initiation data according to the fingerprint of the initiation data and the elliptic curve base point; wherein the initiation data, the initiation-specific public key and the initiation-specific private key correspond to each other one by one; when there are N initiation data, there are N pairs of the determined initiation-specific public key and the initiation-specific private key; A ciphertext determination module, configured to determine the initiation ciphertext of the initiation data according to the initiation-specific public key and the initiation-specific private key based on a preset elliptic encryption algorithm or an SM2 key exchange algorithm; An intersection determination module, used to send the initiating ciphertext to the participants of the privacy intersection request, to instruct the participants to determine the intersection data of this privacy intersection request according to the initiating ciphertext and the participating ciphertext of the participating data, and to return the intersection data to the initiator; Wherein, the key determination module includes: A private key determination unit, configured to determine, for each initiation data, a fingerprint of the initiation data as an initiation-specific private key of the initiation data; a public key determination unit, configured to determine the product of the initiation-specific private key and an elliptic curve base point as the initiation-specific public key of the initiation data; Wherein, the ciphertext determination module includes: A coordinate determination unit, used to obtain the first coordinate of the initiation of the initiation private public key on the elliptic curve; The ciphertext determination unit is used to determine the initiation ciphertext of the initiation data according to the initiation-specific public key, the initiation-specific private key, the initiation first coordinate, the elliptic curve cofactor, the participant public key and the participant private key.
6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the privacy intersection method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the privacy intersection method described in any one of claims 1 to 4 when executed.
Citation Information
Patent Citations
Privacy calculation method and device based on cloud, electronic equipment and readable medium
CN117978361A
