The embodiment of the invention relates to the technical field of
data processing, in particular to a model reasoning method, device and equipment based on function
encryption. The user side configures public parameters according to the security parameters and the classification set, generates a
master key according to the public parameters and sends the
master key to the data side and the model side; the model party judges a target function of the user party after receiving the
master key sent by the user party, generates a model key according to the master key and the target function, and sends the model key to the user party; after the data party receives the master key sent by the user party, the demand of the user party is judged, a
ciphertext is generated according to the master key and the demand and sent to the user party, and finally the user party obtains a
classification result in the classification set according to the model key and the
ciphertext. Therefore, the learning model of the model party and the data of the data party are respectively encrypted and respectively sent to the user party, and the model party and the data party only need to provide the
ciphertext and the secret key without participating in the execution process.