WO2020258373A1 - 一种基于同态加密的百万富翁问题解决方法 - Google Patents

一种基于同态加密的百万富翁问题解决方法 Download PDF

Info

Publication number
WO2020258373A1
WO2020258373A1 PCT/CN2019/095167 CN2019095167W WO2020258373A1 WO 2020258373 A1 WO2020258373 A1 WO 2020258373A1 CN 2019095167 W CN2019095167 W CN 2019095167W WO 2020258373 A1 WO2020258373 A1 WO 2020258373A1
Authority
WO
WIPO (PCT)
Prior art keywords
ciphertext
data party
data
private
party
Prior art date
Application number
PCT/CN2019/095167
Other languages
English (en)
French (fr)
Inventor
吴永东
戴杰玲
赖俊祚
翁健
Original Assignee
暨南大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 暨南大学 filed Critical 暨南大学
Priority to GB2118764.6A priority Critical patent/GB2600038A/en
Publication of WO2020258373A1 publication Critical patent/WO2020258373A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/008Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols involving homomorphic encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/085Secret sharing or secret splitting, e.g. threshold schemes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0863Generation of secret information including derivation or calculation of cryptographic keys or passwords involving passwords or one-time passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/46Secure multiparty computation, e.g. millionaire problem

Definitions

  • the invention relates to the research field of information computing, in particular to a method for solving the millionaire problem based on homomorphic encryption.
  • the problem for millionaires is not to divulge the digital information owned by the two parties and determine which number is greater. This problem can be applied in e-commerce.
  • the bidding comparison needs to ensure security and not leak any information. Supporting such auctions requires a secure comparison protocol. Solving the problem of millionaires has become a research hotspot in cryptography. At present, many scholars have researched and given different solutions. Some of these schemes have some shortcomings, such as a large amount of calculation, large communication overhead, and difficult implementation.
  • Hsiao-Ying Lin and others in the document "An Efficient Solution to The Millionaires’ Problem Based on Homomorphic Encryption” mainly proposed an effective solution to the millionaire problem.
  • This scheme mainly uses 0 coding and 1 coding to transform the millionaire problem into the intersection problem of sets. This scheme is relatively efficient, but there are security problems.
  • the main purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art and provide a solution to the millionaire problem based on homomorphic encryption. Solving the millionaire problem is similar to the problem of judging which number the two parties hold is larger. Because in many application scenarios, users need to use their own data to compare with any party, and during the comparison process, privacy protection is required, and no information about the other party will be learned. Aiming at the shortcomings of the existing solutions to the millionaire problem, the present invention improves on the original solution to improve the security of the solution.
  • T[i][j], where i ⁇ 0,1 ⁇ , 1 ⁇ j ⁇ n, and perform ciphertext according to the binary value of the first data party’s private input x and the position of the corresponding T table Fill, T[x i′ ][j′] E(z), where z ⁇ 0,1 ⁇ , E(z) is the ciphertext for homomorphic encryption of z; r i′ is a randomly selected number, E(ri ′ ) is the ciphertext of homomorphic encryption of r i′ ; 1 ⁇ i′ ⁇ n, 1 ⁇ j′ ⁇ n, Is the opposite value of x i′ to get the filled table:
  • the homomorphic encryption algorithm is one of Paillier encryption algorithm and ElGamal encryption algorithm.
  • the generating of the private key and the public key is specifically:
  • G q is a cyclic group with a valence of prime q
  • g is a generator of G q
  • Z q is composed of the set ⁇ 1,2,...,q-1 ⁇ .
  • h g -a
  • r′ ⁇ ′ is a random number, 1 ⁇ ′ ⁇ n, 1 ⁇ i′ ⁇ n, 1 ⁇ j′ ⁇ n, r′ ⁇ ′ ⁇ Z q , Z q is determined by the set ⁇ 1,2,...,q-1 ⁇ constitute;
  • step S4 is specifically:
  • decryption is specifically as follows:
  • table T[i][j] is a 2*n table.
  • the second data party calculates ⁇ c 1 ,c 2 ,...,c d ⁇ and ⁇ z 1 ,z 2 ,...,z nd ⁇ , and converts ⁇ c 1 ,c 2 ,...,c d ⁇ And ⁇ z 1 ,z 2 ,...,z nd ⁇ two ciphertext sets are combined into a ciphertext set ⁇ c 1 ,c 2 ,...,c d ,z 1 ,z 2 ,...
  • the present invention has the following advantages and beneficial effects:
  • the present invention uses random numbers for calculation to solve the millionaire problem, which is similar to the problem of judging which number the two parties hold is larger. At the same time, the data party will not obtain any information from the other data party based on the decrypted plaintext; In many application scenarios, users need to use their own data to compare with any party, and during the comparison process, privacy protection is required, and no information about the other party is learned at the same time, so that the privacy of both parties is protected; the present invention uses 0 coding and 1 Coding intersection and homomorphic encryption algorithm are combined, the data party calculates the ciphertext locally, and the homomorphic property can support ciphertext addition operation or ciphertext multiplication operation, reducing the calculation cost, and the two data parties only interact once, reducing communication overhead .
  • Fig. 1 is a method flow chart of the method for solving the millionaire problem based on homomorphic encryption according to the present invention.
  • a solution to the millionaire problem based on homomorphic encryption, as shown in Figure 1, includes the following steps:
  • the first data party performs 1 encoding on the data it owns to get the encoding set
  • the second data party performs 0 encoding on the data it owns to get the encoding set
  • the first step is to set G as the key generation process of the homomorphic encryption algorithm, E as the encryption process of the homomorphic encryption algorithm, and D as the decryption process of the homomorphic encryption algorithm;
  • the homomorphic encryption algorithm includes Paillier encryption algorithm and ElGamal Encryption Algorithm;
  • the second step is to generate a private key sk and a public key pk through the key generation process G;
  • G q is a cyclic group with a valence of prime q
  • g is a generator of G q
  • Z q is composed of the set ⁇ 1,2,...,q-1 ⁇ .
  • the third step is to prepare a table T[i][j], the table T[i][j] is a 2*n table, where i ⁇ 0,1 ⁇ , 1 ⁇ j ⁇ n, according to the first
  • T[x i′ ][j′] E(z), where z ⁇ 0,1 ⁇ , E(z) Is the ciphertext of homomorphic encryption of z;
  • r i′ is a randomly selected number, E(ri ′ ) is the ciphertext of homomorphic encryption of r i′ ; 1 ⁇ i′ ⁇ n, 1 ⁇ j′ ⁇ n, Is the opposite value of x i′ to get the filled table:
  • the first data party uses the Paillier encryption algorithm, the first data party performs ciphertext filling according to the binary value x n x n-1 L x 1 of the private input x and the position of the binary bit corresponding to the T table.
  • the first data party uses the ElGamal encryption algorithm
  • the first data party performs ciphertext filling according to the binary value x n x n-1 L x 1 of the private input x and the position of the binary bit corresponding to the T table.
  • h g -a
  • r′ ⁇ ′ is a random number, 1 ⁇ ′ ⁇ n, 1 ⁇ i′ ⁇ n, 1 ⁇ j′ ⁇ n, r′ ⁇ ′ ⁇ Z q , Z q is determined by the set ⁇ 1,2,...,q-1 ⁇ constitute;
  • r i′ and r′′ ⁇ ′ are random numbers, 1 ⁇ ′ ⁇ n, 1 ⁇ i′ ⁇ n, 1 ⁇ j′ ⁇ n, r i′ ⁇ G q , G q is a prime number q Cyclic group
  • the fourth step is specifically:
  • the random ciphertext preparation process is specifically as follows:
  • the second data party calculates ⁇ c 1 ,c 2 ,...,c d ⁇ and ⁇ z 1 ,z 2 ,...,z nd ⁇ , and converts ⁇ c 1 ,c 2 ,...,c d ⁇ And ⁇ z 1 ,z 2 ,...,z nd ⁇ two ciphertext sets are combined into a ciphertext set ⁇ c 1 ,c 2 ,...,c d ,z 1 ,z 2 ,...

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Complex Calculations (AREA)
  • Storage Device Security (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了一种基于同态加密的百万富翁问题解决方法,对第一数据方的数据进行编码得到第一数据方编码集,对第二数据方的数据进行编码得到第二数据方编码集,通过比较第一数据方编码集和第二数据方编码集是否存在相同元素,结合比较协议和同态加密算法,获取两个数据方数据的比较结果,但两个数据方之间不能获取对方数据信息;保证双方数据安全,即提高了安全性。

Description

一种基于同态加密的百万富翁问题解决方法 技术领域
本发明涉及信息计算的研究领域,特别涉及一种基于同态加密的百万富翁问题解决方法。
背景技术
随着电子商务发展,涉及敏感数据的计算通常会在网上进行。人们可以访问数据库获取信息,在没有很多限制下可以随时随地完成商业交易,同时人们对于网络服务的要求是快速且安全。不受信任的网络实体和主机会给网络服务带来很多的挑战和问题。为了防止信息泄漏和保护这些实体和主体的安全性,需要使用各种加密技术。解决这些问题是密码学研究的热点,对电子商务和数据挖掘有非常深远的意义。电子商务应用会涉及判断多个数字的大小。在很多情况下,这些数字包含一些敏感信息,敏感信息一旦被泄露,很可能会使人们面临利益受损,同时考虑减少通信开销,希望不借助第三方来完成这些操作。
百万富翁的问题就是不泄露两个参与方拥有的数字信息的情况,确定哪个数字更大。这一问题可以在电子商务中有应用。在电子商务的拍卖定价过程中,为了参与方不会受到任何利益损失,竞价比较需要保证安全性,不会泄露任何信息。支持这样拍卖需要安全的比较协议。解决百万富翁的问题已经是密码学中研究热点,目前很多学者研究给出不同的解决的方案。其中有些方案会存在一些缺点,比如计算量较大、通信开销比较大、实现较难等。
Hsiao-Ying Lin等人在文献《An Efficient Solution to The Millionaires’Problem Based on Homomorphic Encryption》主要对百万富翁问题提出了一种有效的解决方案。这个方案主要利用0编码与1编码,将百万富翁问题转换为集合的交集问题。这个方案效率比较高,但是存在安全性问题。
发明内容
本发明的主要目的在于克服现有技术的缺点与不足,提供一种基于同态加密的百万富翁问题解决方法,解决百万富翁的问题类似于判断双方持有的数字哪个比较大的问题。由于在很多应用场景下,用户需要用自己的数据与任何一方进行比较,且比较过程中,需要隐私保护,同时不会学习到对方的任何信息。针对现存解决百万富翁问题的方案不足之处,本发明在原方案进行改进,提高 了方案的安全性。
本发明的目的通过以下的技术方案实现:
一种基于同态加密的百万富翁问题解决方法,其特征在于,包括以下步骤:
S1、设定G为同态加密算法的生成密钥过程,E为同态加密算法的加密过程,D为同态加密算法的解密过程;第一数据方有一个私有输入x,将私有输入x转为二进制数,即二进制值,则有x=x nx n-1L x 1,对第一数据方私有输入x的二进制数进行1编码,得到编码集
Figure PCTCN2019095167-appb-000001
S2、通过生成密钥过程G产生私钥sk和公钥pk;
S3、准备表T[i][j],其中,i∈{0,1},1≤j≤n,根据第一数据方私有输入x的二进制值和位数对应T表的位置进行密文填充,T[x i′][j′]=E(z),其中z∈{0,1},E(z)是对z进行同态加密的密文;
Figure PCTCN2019095167-appb-000002
r i′为随机选取的一个数,E(r i′)是对r i′进行同态加密的密文;
Figure PCTCN2019095167-appb-000003
1≤i′≤n,1≤j′≤n,
Figure PCTCN2019095167-appb-000004
是x i′的相反值,得到填充表格:
Figure PCTCN2019095167-appb-000005
再将填充表格发送第二数据方;
S4、第二数据方根据自己的私有输入y,转为二进制数,则有y=y ny n-1L y 1,对第二数据方私有输入的二进制数进行0编码,得到编码集
Figure PCTCN2019095167-appb-000006
Figure PCTCN2019095167-appb-000007
即编码集
Figure PCTCN2019095167-appb-000008
中有d个元素,集合
Figure PCTCN2019095167-appb-000009
中一个元素H k,k∈{1,2,...,d},其中
Figure PCTCN2019095167-appb-000010
根据
Figure PCTCN2019095167-appb-000011
中每一位
Figure PCTCN2019095167-appb-000012
有对应的
Figure PCTCN2019095167-appb-000013
i″≤l≤n,1≤k≤d,随机选取一个数t l,进行计算:
Figure PCTCN2019095167-appb-000014
得到:
Figure PCTCN2019095167-appb-000015
S5、根据H k中每一位
Figure PCTCN2019095167-appb-000016
有对应的
Figure PCTCN2019095167-appb-000017
计算:
Figure PCTCN2019095167-appb-000018
当集合
Figure PCTCN2019095167-appb-000019
的元素有d个,但不够n个,则需要准备n-d个随机密文z j″, z j″=E(u j″),1≤j″≤n-d,所述随机密文z j″是对随机数进行同态加密的密文;
把{c 1,c 2,...,c d}和{z 1,z 2,...,z n-d}两个密文集合组合成一个密文集合,再将组合后密文集合中每个元素进行随机置换位置,得到密文集合{C 1,C 2,...,C n},再把密文集合{C 1,C 2,...,C n}发送给第一数据方;
S6、第一数据方将接收到的集合{C 1,C 2,...,C n}进行同态加密中的解密过程,得到D(C l′)=m l′,1≤l′≤n,当且仅当存在m l′=z(z∈{0,1}),则有x>y,否则x<y。
进一步地,所述同态加密算法为Paillier加密算法和ElGamal加密算法其中一种。
进一步地,所述产生私钥和公钥,具体为:
当第一数据方使用Paillier加密算法,执行生成密钥过程G,选取两个素数p,q,计算N=p·q,随机选择g,
Figure PCTCN2019095167-appb-000020
由集合{1,2,...,N-1}中与N互素的整数构成,同时使得:
gcd(L(g λ(N)mod N 2),N)=1,
定义L(x′)=(x′-1)/N,
则有:公钥为pk=(g,N),私钥为sk=λ(N)=lcm((p-1),(q-1));
当第一数据方使用ElGamal加密算法,执行生成密钥过程G,设
Figure PCTCN2019095167-appb-000021
p和q为素数,G q是价为素数q的循环群,g是G q的生成元,
则有:公钥为:pk=h=g ,私钥为:sk=α∈Z q,Z q由集合{1,2,...,q-1}构成。
进一步地,所述填表具体为:
当第一数据方使用Paillier加密算法,第一数据方根据私有输入x的二进制值x nx n-1L x 1和二进制的位数对应T表的位置进行密文填充,
计算:
Figure PCTCN2019095167-appb-000022
其中,1≤β≤n,1≤i′≤n,1≤j′≤n,r′ β为随机数,
Figure PCTCN2019095167-appb-000023
Figure PCTCN2019095167-appb-000024
由集合{1,2,...,N-1}中与N互素的整数构成,第一数据方的公钥为pk=(g,N);
计算:
Figure PCTCN2019095167-appb-000025
其中,1≤β≤n,1≤i′≤n,1≤j′≤n,r″ β为随机数,
Figure PCTCN2019095167-appb-000026
Figure PCTCN2019095167-appb-000027
由集合{1,2,...,N-1}中与N互素的整数构成,r i′为随时选取的一个数,r i′∈Z N,Z N={0,...,N-1}是关于模加法运算的群;
Figure PCTCN2019095167-appb-000028
1≤i′≤n,
Figure PCTCN2019095167-appb-000029
是x i′的相反值;
得到填充后的表格:
Figure PCTCN2019095167-appb-000030
再将填充表格发送到第二数据方;
当第一数据方使用ElGamal加密算法,第一数据方根据私有输入x的二进制值x nx n-1L x 1和二进制的位数对应T表的位置进行密文填充,
计算:
Figure PCTCN2019095167-appb-000031
其中,h=g -a,r′ β′是随机数,1≤β′≤n,1≤i′≤n,1≤j′≤n,r′ β′∈Z q,Z q由集合{1,2,...,q-1}构成;
计算:
Figure PCTCN2019095167-appb-000032
其中,r i′和r″ β′是随机数,1≤β′≤n,1≤i′≤n,1≤j′≤n,r i′∈G q,G q是价为素数q的循环群;
得到填充后的表格:
Figure PCTCN2019095167-appb-000033
再将填充表格发送到第二数据方。
进一步地,所述步骤S4具体为:
第二数据方接收到T表后,根据自己的私有输入y转为二进制数,则有y=y ny n-1L y 1,对第二数据方私有输入的二进制数进行0编码,得到编码集
Figure PCTCN2019095167-appb-000034
其中
Figure PCTCN2019095167-appb-000035
即编码集
Figure PCTCN2019095167-appb-000036
有d个元素,编码集中一个元素H k,k∈{1,2,...,d},其中
Figure PCTCN2019095167-appb-000037
根据
Figure PCTCN2019095167-appb-000038
中每一位
Figure PCTCN2019095167-appb-000039
有对应的
Figure PCTCN2019095167-appb-000040
i″≤l≤n,1≤k≤d,进行计算,根据加密方法不同,则有以下情况:
当T表中的密文是使用Paillier加密算法加密的,对
Figure PCTCN2019095167-appb-000041
中每一位
Figure PCTCN2019095167-appb-000042
有 对应的
Figure PCTCN2019095167-appb-000043
计算,随机选取一个数t l
Figure PCTCN2019095167-appb-000044
Figure PCTCN2019095167-appb-000045
由集合中与N互素的整数构成,进行计算:
Figure PCTCN2019095167-appb-000046
得到:
Figure PCTCN2019095167-appb-000047
当T表中的密文是使用ElGamal加密算法加密的,对
Figure PCTCN2019095167-appb-000048
中每一位
Figure PCTCN2019095167-appb-000049
有对应的
Figure PCTCN2019095167-appb-000050
计算时,随机选取一个t′ l,t′ l∈Z q,Z q由集合{1,2,...,q-1}构成,进行计算:
Figure PCTCN2019095167-appb-000051
得到:
Figure PCTCN2019095167-appb-000052
其中,i″≤l≤n,1≤k≤d。
进一步地,所述随机密文准备过程具体如下:
第二数据方根据编码集
Figure PCTCN2019095167-appb-000053
中每个元素H k,k∈{1,2,...,d},和H k中每一位
Figure PCTCN2019095167-appb-000054
有对应的
Figure PCTCN2019095167-appb-000055
进行计算:
Figure PCTCN2019095167-appb-000056
其中,i″≤l≤n,1≤k≤d;
当编码集
Figure PCTCN2019095167-appb-000057
的元素有d个,但不够n个,则需要准备n-d个随机密文z j″,其中分两种情况:
当T表中的密文是Paillier加密算法加密的,准备n-d个随机密文z j″,其中
Figure PCTCN2019095167-appb-000058
u j″为随机选取的一个数,u j″∈Z N,Z N={0,...,N-1}是一个关于模N加法运算的群;r″′ j″为一个随机数,
Figure PCTCN2019095167-appb-000059
Figure PCTCN2019095167-appb-000060
由集合{1,2,...,N-1}中与N互素的整数构成;
当T表中的密文是ElGamal加密算法加密的,准备n-d个随机密文z j″,其中
Figure PCTCN2019095167-appb-000061
u j″为随机选取的一个数,u j″∈G q,G q是价为素数q的循环群,r″′ j″为一个随机数,r″′ j″∈Z q,Z q由集合{1,2,...,q-1}构成。
进一步地,所述解密具体如下:
第一数据方将接收到的集合{C 1,C 2,...,C n}中C l′进行同态加密中的解密过程,分两种情况:
当集合{C 1,C 2,...,C n}中的密文是Paillier加密算法加密的,对集合{C 1,C 2,...,C n} 中每个元素C l′进行解密,其计算过程:
Figure PCTCN2019095167-appb-000062
其中λ(N)=lcm((p-1),(q-1)),L(x′)=(x′-1)/N,1≤l′≤n,当且仅当存在m l′=0,则有x>y,说明第一数据方的私有输入x大于第二数据方的私有输入y,否则x<y,说明第一数据方的私有输入x小于第二数据方的私有输入y;
当集合{C 1,C 2,...,C n}中的密文是ElGamal加密算法加密的,对集合{C 1,C 2,...,C n}中每个元素C l′进行解密,其计算过程:
D(C l′)=(C l′,1,C l′,2)=C l′,2·C l′,1 α=m l′
其中,私钥sk=α,当且仅当存在m l′=1,则有x>y,说明第一数据方的私有输入x大于第二数据方的私有输入y,否则x<y,说明第一数据方的私有输入x小于第二数据方的私有输入y。
进一步地,所述表T[i][j]为2*n的表。
进一步地,所述把{c 1,c 2,...,c d}和{z 1,z 2,...,z n-d}组合的具体过程为:
第二数据方计算得到{c 1,c 2,...,c d}和{z 1,z 2,...,z n-d},将{c 1,c 2,...,c d}和{z 1,z 2,...,z n-d}两个密文集合组合成一个密文集合{c 1,c 2,...,c d,z 1,z 2,...,z n-d},再将密文集合{c 1,c 2,...,c d,z 1,z 2,...,z n-d}中每个元素随机置换位置得密文集合{C 1,C 2,...,C n},例
Figure PCTCN2019095167-appb-000063
再把集合{C 1,C 2,...,C n}发送给第一数据方。
本发明与现有技术相比,具有如下优点和有益效果:
本发明采用选取随机数进行计算,解决百万富翁问题,即类似于判断双方持有的数字哪个比较大的问题,同时数据方不会根据解密后的明文得到另外数据方的任何信息;由于在很多应用场景下,用户需要用自己的数据与任何一方进行比较,且比较过程中,需要隐私保护,同时不会学习到对方的任何信息,使得比较双方隐私都得到保护;本发明采用0编码和1编码求交集和同态加密算法结合,数据方本地计算密文,利用同态性质可以支持密文加法运算或密文乘法运算,减少计算代价,同时两个数据方只是交互一次,减少通信开销。
附图说明
图1是本发明所述一种基于同态加密的百万富翁问题解决方法的方法流程图。
具体实施方式
下面结合实施例及附图对本发明作进一步详细的描述,但本发明的实施方 式不限于此。
实施例
一种基于同态加密的百万富翁问题解决方法,如图1所示,包括以下步骤:
第一数据方对拥有的数据进行1编码得到编码集
Figure PCTCN2019095167-appb-000064
第二数据方对拥有的数据进行0编码得到编码集
Figure PCTCN2019095167-appb-000065
通过比较集合中每个元素是否存在相同的元素,就能判断哪个数比较大,解决百万富翁问题,需要运用这个比较协议,同时结合同态加密算法,这样就只知道两个数据的比较结果,而不会知道关于数据任何信息;
第一步、设定G为同态加密算法的生成密钥过程,E为同态加密算法的加密过程,D为同态加密算法的解密过程;所述同态加密算法包含Paillier加密算法和ElGamal加密算法;
第一数据方有一个私有输入x,将私有输入x转为二进制数,即二进制值,则有x=x nx n-1L x 1,对第一数据方私有输入x的二进制数进行1编码,得到编码集
Figure PCTCN2019095167-appb-000066
第二步、通过生成密钥过程G产生私钥sk和公钥pk;
具体如下:
当第一数据方使用Paillier加密算法,执行生成密钥过程G,选取两个素数p,q,计算N=p·q,随机选择g,
Figure PCTCN2019095167-appb-000067
Figure PCTCN2019095167-appb-000068
由集合{1,2,...,N-1}中与N互素的整数构成,同时使得:
gcd(L(g λ(N)mod N 2),N)=1,
定义L(x′)=(x′-1)/N,
则有:公钥为pk=(g,N),私钥为sk=λ(N)=lcm((p-1),(q-1));
当第一数据方使用ElGamal加密算法,执行生成密钥过程G,设
Figure PCTCN2019095167-appb-000069
p和q为素数,G q是价为素数q的循环群,g是G q的生成元,
则有:公钥为:pk=h=g ,私钥为:sk=α∈Z q,Z q由集合{1,2,...,q-1}构成。
第三步、准备表T[i][j],所述表T[i][j]为2*n的表,其中,i∈{0,1},1≤j≤n,根据第一数据方私有输入x的二进制值和位数对应T表的位置进行密文填充,T[x i′][j′]=E(z),其中z∈{0,1},E(z)是对z进行同态加密的密文;
Figure PCTCN2019095167-appb-000070
r i′为随机选取的一个数,E(r i′)是对r i′进行同态加密的密文;
Figure PCTCN2019095167-appb-000071
1≤i′≤n,1≤j′≤n,
Figure PCTCN2019095167-appb-000072
是x i′的相反值,得到填充表格:
Figure PCTCN2019095167-appb-000073
再将填充表格发送第二数据方;
其中,所述填表具体如下:
当第一数据方使用Paillier加密算法,第一数据方根据私有输入x的二进制值x nx n-1L x 1和二进制的位数对应T表的位置进行密文填充,
计算:
Figure PCTCN2019095167-appb-000074
其中,1≤β≤n,1≤i′≤n,1≤j′≤n,r′ β为随机数,
Figure PCTCN2019095167-appb-000075
Figure PCTCN2019095167-appb-000076
由集合{1,2,...,N-1}中与N互素的整数构成,第一数据方的公钥为pk=(g,N);
计算:
Figure PCTCN2019095167-appb-000077
其中,r″ β为随机数,
Figure PCTCN2019095167-appb-000078
Figure PCTCN2019095167-appb-000079
由集合{1,2,...,N-1}中与N互素的整数构成,r i′为随时选取的一个数,r i′∈Z N,Z N={0,...,N-1}是关于模加法运算的群;
Figure PCTCN2019095167-appb-000080
1≤i′≤n,
Figure PCTCN2019095167-appb-000081
是x i′的相反值;
得到填充后的表格:
Figure PCTCN2019095167-appb-000082
再将填充表格发送给第二数据方;
当第一数据方使用ElGamal加密算法,第一数据方根据私有输入x的二进制值x nx n-1L x 1和二进制的位数对应T表的位置进行密文填充,
计算:
Figure PCTCN2019095167-appb-000083
其中,h=g -a,r′ β′是随机数,1≤β′≤n,1≤i′≤n,1≤j′≤n,r′ β′∈Z q,Z q由集合 {1,2,...,q-1}构成;
计算:
Figure PCTCN2019095167-appb-000084
其中,r i′和r″ β′是随机数,1≤β′≤n,1≤i′≤n,1≤j′≤n,r i′∈G q,G q是价为素数q的循环群;
得到填充后的表格:
Figure PCTCN2019095167-appb-000085
再将表格发送给第二数据方。
第四步、具体为:
第二数据方接收到T表后,根据自己的私有输入y转为二进制数,则有y=y ny n-1L y 1,对第二数据方私有输入的二进制数进行0编码,得到编码集
Figure PCTCN2019095167-appb-000086
其中
Figure PCTCN2019095167-appb-000087
即编码集
Figure PCTCN2019095167-appb-000088
有d个元素,编码集中一个元素H k,k∈{1,2,...,d},其中
Figure PCTCN2019095167-appb-000089
根据
Figure PCTCN2019095167-appb-000090
中每一位
Figure PCTCN2019095167-appb-000091
有对应的
Figure PCTCN2019095167-appb-000092
i″≤l≤n,1≤k≤d,进行计算,根据加密方法不同,则有以下情况:
当密文是使用Paillier加密算法加密的,对
Figure PCTCN2019095167-appb-000093
中每一位
Figure PCTCN2019095167-appb-000094
有对应的
Figure PCTCN2019095167-appb-000095
计算,随机选取一个数t l
Figure PCTCN2019095167-appb-000096
Figure PCTCN2019095167-appb-000097
由集合中与N互素的整数构成,进行计算:
Figure PCTCN2019095167-appb-000098
得到:
Figure PCTCN2019095167-appb-000099
当密文是使用ElGamal加密算法加密的,对
Figure PCTCN2019095167-appb-000100
中每一位
Figure PCTCN2019095167-appb-000101
有对应的
Figure PCTCN2019095167-appb-000102
计算时,随机选取一个t′ l,t′ l∈Z q,Z q由集合{1,2,...,q-1}构成,进行计算:
Figure PCTCN2019095167-appb-000103
得到:
Figure PCTCN2019095167-appb-000104
其中,i″≤l≤n,1≤k≤d;
第五步、根据H k每一位
Figure PCTCN2019095167-appb-000105
有对应的
Figure PCTCN2019095167-appb-000106
计算:
Figure PCTCN2019095167-appb-000107
当集合
Figure PCTCN2019095167-appb-000108
的元素有d个,但不够n个,则需要准备n-d个随机密文z j″,z j″=E(u j″),1≤j″≤n-d,所述随机密文z j″是对随机数u j″进行同态加密的密文;
所述随机密文准备过程具体如下:
第二数据方根据编码集
Figure PCTCN2019095167-appb-000109
中每个元素H k,k∈{1,2,...,d},和H k中每一位
Figure PCTCN2019095167-appb-000110
有对应的
Figure PCTCN2019095167-appb-000111
进行计算:
Figure PCTCN2019095167-appb-000112
其中,i″≤l≤n,1≤k≤d;
当编码集
Figure PCTCN2019095167-appb-000113
的元素有d个,但不够n个,则需要准备n-d个随机密文z j″,其中分两种情况:
当表中的密文是Paillier加密算法加密的,准备n-d个随机密文z j″,其中
Figure PCTCN2019095167-appb-000114
u j″为随机选取的一个数,u j″∈Z N,Z N={0,...,N-1}是一个关于模N加法运算的群;r″′ j″为一个随机数,
Figure PCTCN2019095167-appb-000115
Figure PCTCN2019095167-appb-000116
由集合{1,2,...,N-1}中与N互素的整数构成;
当表中的密文是ElGamal加密算法加密的,准备n-d个随机密文z j″,其中
Figure PCTCN2019095167-appb-000117
u j″为随机选取的一个数,u j″∈G q,G q是价为素数q的循环群,r″′ j″为一个随机数,r″′ j″∈Z q,Z q由集合{1,2,...,q-1}构成。
把{c 1,c 2,...,c d}和{z 1,z 2,...,z n-d}两个密文集合组合成一个密文集合,再将组合后密文集合中每个元素进行随机置换位置,得到密文集合{C 1,C 2,...,C n},再把密文集合{C 1,C 2,...,C n}发送给第一数据方;
所述把{c 1,c 2,...,c d}和{z 1,z 2,...,z n-d}组合的具体过程为:
第二数据方计算得到{c 1,c 2,...,c d}和{z 1,z 2,...,z n-d},将{c 1,c 2,...,c d}和{z 1,z 2,...,z n-d}两个密文集合组合成一个密文集合{c 1,c 2,...,c d,z 1,z 2,...,z n-d},再将密文集合{c 1,c 2,...,c d,z 1,z 2,...,z n-d}中每个元素随机置换位置得密文集合{C 1,C 2,...,C n},例
Figure PCTCN2019095167-appb-000118
再把集合{C 1,C 2,...,C n}发送给第一数据方。
第六步、第一数据方将接收到的集合{C 1,C 2,...,C n}进行同态加密中的解密过程,得到D(C l′)=m l′,1≤l′≤n,当且仅当存在m l′=z(z∈{0,1}),则有x>y,否则x<y。
其中,所述解密具体如下:
第一数据方将接收到的集合{C 1,C 2,...,C n}中C i进行同态加密中的解密过程,分两种情况:
当集合{C 1,C 2,...,C n}中的密文是Paillier加密算法加密的,对集合{C 1,C 2,...,C n} 中每个元素C l′进行解密,其计算过程:
Figure PCTCN2019095167-appb-000119
其中λ(N)=lcm((p-1),(q-1)),L(x′)=(x′-1)/N,1≤l′≤n,当且仅当存在m l′=0,则有x>y,说明第一数据方的私有输入x大于第二数据方的私有输入y,否则x<y,说明第一数据方的私有输入x小于第二数据方的私有输入y;
当集合{C 1,C 2,...,C n}中的密文是ElGamal加密算法加密的,对集合{C 1,C 2,...,C n}中每个元素C l′进行解密,其计算过程:
D(C l′)=(C l′,1,C l′,2)=C l′,2·C l′,1 α=m l′
其中,私钥sk=α,1≤l′≤n,当且仅当存在m l′=1,则有x>y,说明第一数据方的私有输入x大于第二数据方的私有输入y,否则x<y,说明第一数据方的私有输入x小于第二数据方的私有输入y。
上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。

Claims (9)

  1. 一种基于同态加密的百万富翁问题解决方法,其特征在于,包括以下步骤:
    S1、设定G为同态加密算法的生成密钥过程,E为同态加密算法的加密过程,D为同态加密算法的解密过程;第一数据方有一个私有输入x,将私有输入x转为二进制数,即二进制值,则有x=x nx n-1L x 1,对第一数据方私有输入x的二进制数进行1编码,得到编码集
    Figure PCTCN2019095167-appb-100001
    S2、通过生成密钥过程G产生私钥sk和公钥pk;
    S3、准备表T[i][j],其中,i∈{0,1},1≤j≤n,根据第一数据方私有输入x的二进制值和位数对应T表的位置进行密文填充,T[x i′][j′]=E(z),其中z∈{0,1},E(z)是对z进行同态加密的密文;
    Figure PCTCN2019095167-appb-100002
    r i′为随机选取的一个数,E(r i)是对r i′进行同态加密的密文;
    Figure PCTCN2019095167-appb-100003
    1≤i′≤n,1≤j′≤n,
    Figure PCTCN2019095167-appb-100004
    是x i′的相反值,得到填充表格:
    {T[x 1][1]=E(z),
    Figure PCTCN2019095167-appb-100005
    L,
    T[x n][n]=E(z),
    Figure PCTCN2019095167-appb-100006
    再将填充表格发送第二数据方;
    S4、第二数据方根据自己的私有输入y,转为二进制数,则有,y=y ny n-1L y 1,对第二数据方私有输入的二进制数进行0编码,得到编码集
    Figure PCTCN2019095167-appb-100007
    即编码集
    Figure PCTCN2019095167-appb-100008
    中有d个元素,集合
    Figure PCTCN2019095167-appb-100009
    中一个元素H k,k∈{1,2,...,d},其中
    Figure PCTCN2019095167-appb-100010
    根据
    Figure PCTCN2019095167-appb-100011
    中每一位
    Figure PCTCN2019095167-appb-100012
    有对应的
    Figure PCTCN2019095167-appb-100013
    i″≤l≤n,1≤k≤d,随机选取一个数t l,进行计算:
    Figure PCTCN2019095167-appb-100014
    得到:
    Figure PCTCN2019095167-appb-100015
    S5、根据H k中每一位
    Figure PCTCN2019095167-appb-100016
    有对应的
    Figure PCTCN2019095167-appb-100017
    计算:
    Figure PCTCN2019095167-appb-100018
    当集合
    Figure PCTCN2019095167-appb-100019
    的元素有d个,但不够n个,则需要准备n-d个随机密文z j″,z j″=E(u j″),1≤j″≤n-d,所述随机密文z j″是对随机数u j″进行同态加密的密文;
    把{c 1,c 2,...,c d}和{z 1,z 2,...,z n-d}两个密文集合组合成一个密文集合,再将组合后密文集合中每个元素进行随机置换位置,得到密文集合{C 1,C 2,...,C n},再把密文集合{C 1,C 2,...,C n}发送给第一数据方;
    S6、第一数据方将接收到的集合{C 1,C 2,...,C n}进行同态加密中的解密过程,得到D(C l′)=m l′,1≤l′≤n,当且仅当存在m l′=z(z∈{0,1}),则有x>y,否则x<y。
  2. 根据权利要求1所述的一种基于同态加密的百万富翁问题解决方法,其特征在于,所述同态加密算法为Paillier加密算法和ElGamal加密算法其中一种。
  3. 根据权利要求2所述的一种基于同态加密的百万富翁问题解决方法,其特征在于,所述产生私钥和公钥,具体为:
    当第一数据方使用Paillier加密算法,执行生成密钥过程G,选取两个素数p,q,计算N=p·q,随机选择g,
    Figure PCTCN2019095167-appb-100020
    由集合{1,2,...,N-1}中与N互素的整数构成,同时使得:
    gcd(L(g λ(N)mod N 2),N)=1,
    定义L(x′)=(x′-1)/N,
    则有:公钥为pk=(g,N),私钥为sk=λ(N)=lcm((p-1),(q-1));
    当第一数据方使用ElGamal加密算法,执行生成密钥过程G,设
    Figure PCTCN2019095167-appb-100021
    p和q为素数,G q是价为素数q的循环群,g是G q的生成元,
    则有:公钥为:pk=h=g ,私钥为:sk=α∈Z q,Z q由集合{1,2,...,q-1}构成。
  4. 根据权利要求2所述的一种基于同态加密的百万富翁问题解决方法,其特征在于,所述填表具体为:
    当第一数据方使用Paillier加密算法,第一数据方根据私有输入x的二进制值x nx n-1L x 1和二进制的位数对应T表的位置进行密文填充,
    计算:
    T[x i′][j′]=E(0)=g 0r βNmod N 2
    其中,1≤β≤n,1≤i′≤n,1≤j′≤n,r′ β为随机数,
    Figure PCTCN2019095167-appb-100022
    由集合{1,2,...,N-1}中与N互素的整数构成,第一数据方的公钥为pk=(g,N);
    计算:
    Figure PCTCN2019095167-appb-100023
    其中,r″ β为随机数,r i′为随机选取的一个数,r i′∈Z N,Z N={0,...,N-1}是关于模加法运算的群;
    Figure PCTCN2019095167-appb-100024
    1≤i′≤n,
    Figure PCTCN2019095167-appb-100025
    是x i′的相反值;
    得到填充后的表格:
    {T[x 1][1]=E(0),
    Figure PCTCN2019095167-appb-100026
    ...,
    T[x n][n]=E(0)
    Figure PCTCN2019095167-appb-100027
    再将填充表格发送给第二数据方;
    当第一数据方使用ElGamal加密算法,第一数据方根据私有输入x的二进制值x nx n-1L x 1和二进制的位数对应T表的位置进行密文填充,
    计算:
    Figure PCTCN2019095167-appb-100028
    其中,h=g -a,r′ β′是随机数,1≤β′≤n,1≤i′≤n,1≤j′≤n,r′ β′∈Z q,Z q由集合{1,2,...,q-1}构成;
    计算:
    Figure PCTCN2019095167-appb-100029
    其中,r i′和r″ β′是随机数,r i′∈G q,G q是价为素数q的循环群,r″ β′∈Z q,Z q由集合{1,2,...,q-1}构成;
    得到填充后的表格:
    {T[x 1][1]=E(1),
    Figure PCTCN2019095167-appb-100030
    ...,
    T[x n][n]=E(1)
    Figure PCTCN2019095167-appb-100031
    再将填充表格发送给第二数据方。
  5. 根据权利要求4所述的一种基于同态加密的百万富翁问题解决方法,其特征在于,所述表T[i][j]为2*n的表。
  6. 根据权利要求2所述的一种基于同态加密的百万富翁问题解决方法,其特征在于,所述步骤S4具体为:
    第二数据方接收到T表后,根据自己的私有输入y转为二进制数,则有y=y ny n-1L y 1,对第二数据方私有输入的二进制数进行0编码,得到编码集
    Figure PCTCN2019095167-appb-100032
    其中
    Figure PCTCN2019095167-appb-100033
    即编码集
    Figure PCTCN2019095167-appb-100034
    有d个元素,编码集中一个元素H k,k∈{1,2,...,d},其中
    Figure PCTCN2019095167-appb-100035
    根据
    Figure PCTCN2019095167-appb-100036
    中每一位
    Figure PCTCN2019095167-appb-100037
    有对应的
    Figure PCTCN2019095167-appb-100038
    i″≤l≤n,1≤k≤d,进行计算,根据加密方法不同,则有以下情况:
    当T表中的密文是使用Paillier加密算法加密的,对
    Figure PCTCN2019095167-appb-100039
    中每一位
    Figure PCTCN2019095167-appb-100040
    有对应的
    Figure PCTCN2019095167-appb-100041
    计算,随机选取一个数t l
    Figure PCTCN2019095167-appb-100042
    由集合中与N互素的整数构成,进行计算:
    Figure PCTCN2019095167-appb-100043
    得到:
    Figure PCTCN2019095167-appb-100044
    当T表中的密文是使用ElGamal加密算法加密的,对
    Figure PCTCN2019095167-appb-100045
    中每一位
    Figure PCTCN2019095167-appb-100046
    有对应的
    Figure PCTCN2019095167-appb-100047
    计算时,随机选取一个t′ l,t′ l∈Z q,Z q由集合{1,2,...,q-1}构成,进行计算:
    Figure PCTCN2019095167-appb-100048
    得到:
    Figure PCTCN2019095167-appb-100049
    其中,i″≤l≤n,1≤k≤d。
  7. 根据权利要求2所述的一种基于同态加密的百万富翁问题解决方法,其特征在于,所述随机密文准备过程具体如下:
    第二数据方根据编码集
    Figure PCTCN2019095167-appb-100050
    中每个元素H k,k∈{1,2,...,d},和H k中每一位
    Figure PCTCN2019095167-appb-100051
    有对应的
    Figure PCTCN2019095167-appb-100052
    进行计算:
    Figure PCTCN2019095167-appb-100053
    其中,i″≤l≤n,1≤k≤d;
    当编码集
    Figure PCTCN2019095167-appb-100054
    的元素有d个,但不够n个,则需要准备n-d个随机密文z j″,其中分两种情况:
    当T表中的密文是Paillier加密算法加密的,准备n-d个随机密文z j″,其中
    Figure PCTCN2019095167-appb-100055
    u j″为随机选取的一个数,u j″∈Z N,Z N={0,...,N-1}是一个关于模N加法运算的群;r″′ j″为一个随机数,
    Figure PCTCN2019095167-appb-100056
    由集合{1,2,...,N-1}中与N互素的整数构成;
    当T表中的密文是ElGamal加密算法加密的,准备n-d个随机密文z j″,其中
    Figure PCTCN2019095167-appb-100057
    u j″为随机选取的一个数,u j″∈G q,G q是价为素数q的循环群,r″′ j″为一个随机数,r″′ j″∈Z q,Z q由集合{1,2,...,q-1}构成。
  8. 根据权利要求1所述的一种基于同态加密的百万富翁问题解决方法,其特征在于,所述把{c 1,c 2,...,c d}和{z 1,z 2,...,z n-d}组合的具体过程为:
    第二数据方计算得到{c 1,c 2,...,c d}和{z 1,z 2,...,z n-d},将{c 1,c 2,...,c d}和{z 1,z 2,...,z n-d}两个密文集合组合成一个密文集合{c 1,c 2,...,c d,z 1,z 2,...,z n-d},再将密文集合{c 1,c 2,...,c d,z 1,z 2,...,z n-d}中每个元素随机置换位置得密文集合{C 1,C 2,...,C n},例{C 1,C 2,...,C n}={c 2,z n-d,...c, n},再把集合{C 1,C 2,...,C n}发送给第一数据方。
  9. 根据权利要求2所述的一种基于同态加密的百万富翁问题解决方法,其特征在于,所述解密具体如下:
    第一数据方将接收到的集合{C 1,C 2,...,C n}中C l′进行同态加密中的解密过程,分两种情况:
    当集合{C 1,C 2,...,C n}中的密文是Paillier加密算法加密的,对集合{C 1,C 2,...,C n}中每个元素C l′进行解密,其计算过程:
    Figure PCTCN2019095167-appb-100058
    其中λ(N)=lcm((p-1),(q-1)),L(x′)=(x′-1)/N,1≤l′≤n,当且仅当存在m l′=0,则有x> y,说明第一数据方的私有输入x大于第二数据方的私有输入y,否则x< y,说明第一数据方的私有输入x小于第二数据方的私有输入y;
    当集合{C 1,C 2,...,C n}中的密文是ElGamal加密算法加密的,对集合{C 1,C 2,...,C n}中每个元素C l′进行解密,其计算过程:
    D(C l′)=(C l′,1,C l′,2)=C l′,2·C l′,1 α=m l′
    其中,私钥sk=α,当且仅当存在m l′=1,则有x>y,说明第一数据方的私有输入x大于第二数据方的私有输入y,否则x<y,说明第一数据方的私有输入x小于第二数据方的私有输入y。
PCT/CN2019/095167 2019-06-24 2019-07-09 一种基于同态加密的百万富翁问题解决方法 WO2020258373A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
GB2118764.6A GB2600038A (en) 2019-06-24 2019-07-09 A Method for Solving a Millionaire Problem Based on Homomorphic Encryption

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910549380.7 2019-06-24
CN201910549380.7A CN110299987B (zh) 2019-06-24 2019-06-24 一种基于同态加密的百万富翁问题解决方法

Publications (1)

Publication Number Publication Date
WO2020258373A1 true WO2020258373A1 (zh) 2020-12-30

Family

ID=68028668

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/095167 WO2020258373A1 (zh) 2019-06-24 2019-07-09 一种基于同态加密的百万富翁问题解决方法

Country Status (3)

Country Link
CN (1) CN110299987B (zh)
GB (1) GB2600038A (zh)
WO (1) WO2020258373A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111046409B (zh) * 2019-12-16 2021-04-13 支付宝(杭州)信息技术有限公司 一种私有数据多方安全计算方法和系统
CN111177796B (zh) * 2019-12-26 2022-03-15 西安电子科技大学 一种基于区块链的可溯源云存储系统的共识机制
CN111277406B (zh) * 2020-01-08 2021-09-21 中山大学 一种基于区块链的安全两方向量优势比较方法
US11538070B2 (en) * 2020-04-13 2022-12-27 Linkplicity Gmbh Blockchain-based system and method for peer-to-peer online advertising auction
CN111885056A (zh) * 2020-07-22 2020-11-03 北京金山云网络技术有限公司 基于区块链的零知识证明方法、装置及电子设备
CN112737772B (zh) * 2020-12-25 2022-10-25 山东师范大学 私有集合交集数据的安全统计方法、终端设备及系统
CN116488919B (zh) * 2023-05-06 2023-12-12 北京和德宇航技术有限公司 一种数据处理方法、通信节点及存储介质
CN116684066B (zh) * 2023-07-06 2023-10-20 北京隐算科技有限公司 一种支持整数运算的同态加密方法、系统及存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970143A (zh) * 2012-12-13 2013-03-13 中国科学技术大学苏州研究院 采用加法同态加密方法进行安全计算双方持有数和的指数的方法
CN103248478A (zh) * 2013-05-08 2013-08-14 天津大学 基于多方安全协议的密封式电子拍卖方案与验证方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601323B (zh) * 2015-02-15 2018-03-09 桂林电子科技大学 基于bdd解决社会主义百万富翁问题的方法
WO2019079353A2 (en) * 2017-10-16 2019-04-25 X-Logos, LLC METHODS AND SYSTEMS FOR ENHANCED HOMOMORPHIC ENCRYPTION SEARCH BASED ON DATA USING GEOMETRIC ALGEBRA

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970143A (zh) * 2012-12-13 2013-03-13 中国科学技术大学苏州研究院 采用加法同态加密方法进行安全计算双方持有数和的指数的方法
CN103248478A (zh) * 2013-05-08 2013-08-14 天津大学 基于多方安全协议的密封式电子拍卖方案与验证方法

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HSIAO, YING LIN ET AL.: "An Efficient Solution to the Millionaires’ Problem Based on Homomorphic Encryption", APPLIED CRYPTOGRAPHY AND NETWORK SECURITY, 10 June 2005 (2005-06-10), DOI: 20200214131014A *
LIU, MENG ET AL.: "Asymmetric Commutative Encryption Scheme Based Efficient Solution to the Millionaires’ Problem", 2018 17TH IEEE INTERNATIONAL CONFERENCE ON TRUST, SECURITY AND PRIVACY IN COMPUTING AND COMMUNICATIONS/ 12TH IEEE INTERNATIONAL CONFERENCE ON BIG DATA SCIENCE AND ENGINEERING, 6 September 2018 (2018-09-06), XP033398768, ISSN: 2324-9013, DOI: 20200214131346A *
ZUO, XIANGJIAN ET AL.: "An efficient homomorphic encryption based solution to millionaires’ problem", JOURNAL OF CHINESE COMPUTER SYSTEMS, vol. 38, no. 3, 31 March 2017 (2017-03-31), DOI: 20200214131605A *

Also Published As

Publication number Publication date
GB2600038A (en) 2022-04-20
CN110299987B (zh) 2022-03-29
CN110299987A (zh) 2019-10-01

Similar Documents

Publication Publication Date Title
WO2020258373A1 (zh) 一种基于同态加密的百万富翁问题解决方法
CN106961336B (zh) 一种基于sm2算法的密钥分量托管方法和系统
CN110266482B (zh) 一种基于区块链的非对称群组密钥协商方法
US7221762B2 (en) Authenticated ID-based cryptosystem with no key escrow
CN110011795B (zh) 基于区块链的对称群组密钥协商方法
CN104301108B (zh) 一种从基于身份环境到无证书环境的签密方法
CN112532613A (zh) 一种基于区块链地址的隐蔽通信方法
KR19980703838A (ko) 암호 키의 컴퓨터-보조식 교환 방법
CN110519226B (zh) 基于非对称密钥池和隐式证书的量子通信服务端保密通信方法和系统
CN109274492B (zh) 自安全的紧耦合秘密共享方法
CN111953479B (zh) 数据处理的方法及装置
CN105610773A (zh) 一种电能表远程抄表的通讯加密方法
CN104468612A (zh) 基于对称加密的保护隐私的属性匹配方法
CN111639345B (zh) 基于同态加密的安全的多方云计算的方法和系统
CN104539610A (zh) 一种提高外包加密数据共享功能的代理重加密方法
CN110855425A (zh) 一种轻量级多方协同sm9密钥生成、密文解密方法与介质
CN113972981A (zh) 一种基于sm2密码算法的高效门限签名方法
CN107124616B (zh) 一种基于同态特性在相同操作域实现交换密码水印的方法
CN106850584B (zh) 一种面向客户/服务器网络的匿名认证方法
CN112580071A (zh) 一种数据处理方法及装置
CN112601221A (zh) 一种基于时间信息的物联网动态ntru接入认证方法
CN115361109B (zh) 一种支持双向代理重加密的同态加密方法
CN110048852A (zh) 基于非对称密钥池的量子通信服务站数字签密方法和系统
US20040105546A1 (en) Geometry-Based Symmetric Cryptosystem Method
CN114697001B (zh) 一种基于区块链的信息加密传输方法、设备及介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19935163

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 202118764

Country of ref document: GB

Kind code of ref document: A

Free format text: PCT FILING DATE = 20190709

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19935163

Country of ref document: EP

Kind code of ref document: A1