This application discloses a
ciphertext processing method and
system, relating to the field of encrypted privacy computing technology. The method includes: a
client quantizing the vector to be matched, directly encoding the coefficients, and encrypting and uploading the query
ciphertext; a
server constructing a self-isomorphic base
ciphertext and recombining it to obtain a dimension-wise query ciphertext, which is then subjected to homomorphic multiplication and addition inner product operations with the template ciphertext to obtain an encrypted
score block; a returned ciphertext block is obtained by superimposing a channel-aligned random
mask, and the masked
score share is obtained through decryption by the
authentication / decision side; a security threshold comparison is performed by combining complementary shares, and the result is output. In this scheme, the
client only uploads a single ciphertext, and the
server performs dimensional splitting, eliminating the need for multi-
packet transmission and significantly reducing communication overhead; homomorphic inner product matching is achieved through ciphertext computation links, reducing redundant computations and effectively reducing homomorphic computation losses; and the leakage of
plaintext similarity information is shielded through random
mask encryption and collaborative
verification of dual-end
score shares, enhancing
privacy protection capabilities.