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

add unit test for prime power modulus #11

Merged
merged 2 commits into from
Feb 11, 2025

Conversation

jacksonwalters
Copy link
Collaborator

the most general modulus possible such that the multiplicative group is cyclic is p^k or 2*p^k. in this case, we can now compute the NTT. this provides a unit test for this behavior.

note that n, the polynomial size, must be a power of 2. since \phi(p^k) = p^k(p-1), this means we need p-1 to contain sufficiently many powers of 2.

the most general modulus possible such that the multiplicative group is cyclic is p^k or 2*p^k. in this case, we can now compute the NTT. this provides a unit test for this behavior. note that n, the polynomial size, must be a power of 2. since \phi(p^k) = p^k(p-1), this means we need p-1 to contain sufficiently many powers of 2.
@jacksonwalters jacksonwalters merged commit 598798d into main Feb 11, 2025
1 check passed
@jacksonwalters jacksonwalters deleted the use_euler_totient_function branch February 11, 2025 20:38
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

Successfully merging this pull request may close these issues.

1 participant