pq-crystals / dilithium

Other
374 stars 136 forks source link

Is it possible to change the modulus q in the implementation? #74

Open bahattin56 opened 1 year ago

bahattin56 commented 1 year ago

My question is if it is possible to change the modulus q in the implementation. I have been looking at the code to see the dependencies on q, and it seems that many parameters depend on q. But I can never be sure that I am seeing all dependencies. Some dependencies are semi-hidden. For example, gamma2 is defined as (q-1)/88 in Dilitihium2 implementation, which only makes sense with the current choice of q (since q-1 is divisible by 11 in the current form but if we change q, this will no longer be the case. How would gamma2 be defined in that case?)

Is there a prescription for changing the modulus?

Thanks.