A non-transitory computer-readable medium storing instructions for executing a control method of a system for providing results of homomorphic encryption operations to a consumer, wherein the method includes:
- generating, by a producer device, a secret key;
- generating, by the producer device, an encryption key and a set of operation keys from the secret key;
- obtaining, by the producer device, a homomorphic ciphertext by encrypting plaintext data, and transmitting the homomorphic ciphertext and the set of operation keys to a processor device;
- obtaining, by the producer device, a plurality of divided keys from the secret key, and allocating the plurality of divided keys to a plurality of decryptor devices, respectively;
- transmitting, by the producer device, the encryption key to a consumer device;
- encrypting, by the consumer device, input data and transmitting the encrypted input data to the processor device;
- performing, by the processor device, a homomorphic encryption operation by using the homomorphic ciphertext and the encrypted input data;
- transmitting, by the processor device, an operation result ciphertext of the homomorphic encryption operation to the plurality of decryptor devices;
- obtaining, by the plurality of decryptor devices, a decrypted result value from the operation result ciphertext by using the plurality of divided keys;
- and
- transmitting, by the plurality of decryptor devices, the obtained result value to the consumer device.