The invention discloses an efficient and safe two-party computing
system and method based on cooperation, and the
system comprises: a function-independent preprocessing module which is used for pre-generating verifiable random bit sharing shares and a
label pair set of an input line, which are needed by safe computing, for two communication parties; a function correlation preprocessing module, wherein participants serve as
confusion parties respectively, and verifiable
confusion circuit sharing shares are generated for the first half circuit and the second half circuit respectively; an input preprocessing module, wherein a calculation side obtains a
label set corresponding to a true value masking value form of each input line of the circuit; a circuit analysis module, wherein participants serve as calculation parties in sequence,
confusion circuits of a front half circuit and a rear half circuit are recovered and analyzed respectively, and the
correctness of circuit calculation is verified; and an output module, wherein the two communication parties obtain the corresponding masking values from the output line labels and recover the output true values. According to the
system, circuit calculation
correctness and input privacy can be ensured,
communication complexity is low, both parties share calculation pressure, safety calculation efficiency is high, and malicious opponents can be resisted.