Algorithm 1 Iterative Number Theoretic Transform |
Require: A polynomial of degree and n-th primitive of unity |
Ensure: Polynomial |
1: |
2: for i from 2 by to n do |
3: , |
4: for j from 0 by 1 to do |
5: for k from 0 by i to do |
6: |
7: |
8: |
9: |
10: |
11: return a |
Algorithm 1 Iterative Number Theoretic Transform |
Require: A polynomial of degree and n-th primitive of unity |
Ensure: Polynomial |
1: |
2: for i from 2 by to n do |
3: , |
4: for j from 0 by 1 to do |
5: for k from 0 by i to do |
6: |
7: |
8: |
9: |
10: |
11: return a |