(path)
| 87 | testcase.set_coeff_modulus([sealapi.Modulus(1023), sealapi.Modulus(234)]) |
| 88 | |
| 89 | def save_load(path): |
| 90 | testcase.save(path) |
| 91 | |
| 92 | saved = sealapi.EncryptionParameters(scheme) |
| 93 | saved.load(path) |
| 94 | assert saved.poly_modulus_degree() == 32768 |
| 95 | assert saved.coeff_modulus()[0].value() == 1023 |
| 96 | |
| 97 | tmp_file(save_load) |
| 98 |