Skip to content

Typo in definition of TLWE key #17

Description

@asraa

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions