When running examples in SEAL (v3.6), I can print out polynomial coefficients of secret_key
, public_key
data using support functions
ofstream sk;
sk.open(filename, ios::binary);
for (uint64_t i = 0; i < poly_modulus_degree; i++)
{
sk << secret_key.data()[i] << endl;
}
sk.close();
with the coefficient data layout follow moduli is same with Simple Encrypted Arithmetic Library (SEAL) and the seal::Ciphertext variable.
Output coefficients 60 bits as examples:
348362126124274227
287021082413421529
790977662641979136
532895062119300067
...
But I can not understand the forms of relin_keys
and how to use its class's support methods to print relin_keys
data in forms of polynomial coefficients?
Thank for your help.