Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The data of "precomp.c" #3

Open
ncepuzs opened this issue May 4, 2018 · 2 comments
Open

The data of "precomp.c" #3

ncepuzs opened this issue May 4, 2018 · 2 comments

Comments

@ncepuzs
Copy link

ncepuzs commented May 4, 2018

Hello,
I am interested in the implementation of NTT in NewHope, but I don't understand the meaning of the data in "precomp.c" such as "psis_brv_montgomery". I thought the values in "psis_brv_montgomery" was computated as r^3j*2^18%12289 , where j is in bitrev_table and r=49. But I find i was wrong. Could you tell me how to get the four tables in "precomp.c"? I have been troubled for long time.
Thanks so much!

@tpoeppelmann
Copy link
Owner

Hi,

attached is the script that was used to generate the precomp.c:
ntt_precomputation.zip
Hope that makes it clearer.

Cheers
Thomas

@ncepuzs
Copy link
Author

ncepuzs commented May 7, 2018

@tpoeppelmann Thanks very much! I have understood now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants