A computer program product for encryption comprising a non-transitory computer-readable medium including programmed instructions, the instructions causing a computer to execute:
- acquiring, as a public key, an n-variable symmetric indeterminate equation X (x1, . . . , xn) having, as a coefficient, an element of less than or equal to a constant degree of a univariable polynomial ring Fp[t] on a finite field Fp and being symmetric with respect to at least two variables;
- embedding a plaintext M in coefficients of an n-variable plaintext polynomial m (x1, . . . , xn) having an element of less than or equal to a constant degree of the univariable polynomial ring Fp[t] as a coefficient;
- randomly generating an n-variable polynomial r (x1, . . . , xn) having an element of less than or equal to a constant degree of the univariable polynomial ring Fp[t] as a coefficient, randomly generating an n-variable symmetric polynomial s (x1, . . . , xn) having an element of less than or equal to a constant degree of the univariable polynomial ring Fp[t] as a coefficient and being symmetric with respect to at least two variables, and randomly generating a noise polynomial e (x1, . . . , xn) having an element of less than or equal to a constant degree of the univariable polynomial ring Fp[t] as a coefficient;
- and
- generating a ciphertext c(x1, . . . , xn) by encryption processing of performing an operation including at least one of addition, subtraction, and multiplication of the n-variable polynomial r (x1, . . . , xn), the n-variable symmetric polynomial s (x1, . . . , xn), the noise polynomial e (x1, . . . , xn), and the n-variable symmetric indeterminate equation X (x1, . . . , xn) on the n-variable plaintext polynomial m (x1, . . . , xn).