concrete-core
concrete-core copied to clipboard
Creating an LweCiphertextVector64 from a set of LweCiphertext64 objects
I see that it is possible to create an LweCiphertextVector64
directly through encryption, but is there a way to create an LweCiphertextVector64
from a variable of type Vec<LweCiphertext64>
? For instance, I would like to do something like:
let mut ct_vec : Vec<LweCiphertext64> = vec![];
ct_vec.push(h_input_ciphertext.clone());
ct_vec.push(h_input_ciphertext_2.clone());
let out_ct : LweCiphertextVector64 = default_engine.create_lwe_ciphertext_vector_from(&ct_vec, lwe_dim.to_lwe_size()).unwrap();
cc: @jimouris