SEAL icon indicating copy to clipboard operation
SEAL copied to clipboard

How to use an array to build a Ciphertext?

Open cipeizheng opened this issue 4 months ago • 0 comments

I am trying to use the GPU etc. to compute Ciphertext. I have used for_each_n() function and iterators to extract Dynarray's elements ( I think they are coefficients of ciphertext polynomials) in Ciphertext and computed them. But I am confusing with how to use the results (In my case they are vector<uint64_t>) to build a Ciphertext object.

I tried copy() function, but it works in a weird way: If I copy an extracted data to its original Ciphertext, it works well in decryption and decode, but in another case I get wrong results. So is there a way to use an array to build a Ciphertext? Do I have to use Deserialization?

cipeizheng avatar Oct 23 '24 14:10 cipeizheng