Hi, I was reading through the implementation of the code, and I believe that there is an off by one error in the SizeData method for a TLWE key. As far as I understand, this should be size of Binary times degree of the polynomials (n) times the number of elements of the secret key vector (k). (k+1) would be referring to the TLWE sample size (T_N[X]^k, T_N[X]).
|
size_t SizeData() const override { return sizeof(T) * this->n_ * (this->k_ + 1); } |
Part of this is just to confirm my understanding of the code, as I'm sure this is not so serious and is probably only used in size calculations!
Hi, I was reading through the implementation of the code, and I believe that there is an off by one error in the
SizeDatamethod for a TLWE key. As far as I understand, this should be size of Binary times degree of the polynomials (n) times the number of elements of the secret key vector (k). (k+1) would be referring to the TLWE sample size (T_N[X]^k, T_N[X]).cuFHE/cufhe/include/cufhe_core.h
Line 162 in 1af2f2b
Part of this is just to confirm my understanding of the code, as I'm sure this is not so serious and is probably only used in size calculations!