Open Vishalkulkarni45 opened 4 months ago
The reason is that to speed up polynomial multiplication we use Number Theoretic Transform (NTT) under the hood. And NTT only works with prime fields. As you correctly say, qis could only be co-prime and not necessarily primes. But for optimization reason we choose them to be prime as well (and enforce this constraint through the library API too)
@enricobottazzi I was testing the
test_valid_public_key_decryption()
ofTestBFVWithCRT
class with qi = [ 27424203952895201, 27424203952895203] , n = 4096 and t = 65537 intests/test_bfv.py
file , getting error asIf i am not wrong the qis should be co-prime and not necessary prime , am i supplying the wrong inputs?