I'm looking into Shamir's Secret Sharing algorithm and it's clear to me how it works but I don't understand the exact reason why we need to find a prime number and do modulo arithmetic using that prime.
On Wikipedia, it says that if you don't use modulo arithmetic, an attacker could get some information on the value without having enough shares.
In Joy of Cryptography, it seems to justify the need of modulo arithmetic by saying that the polynomial coefficients need to be uniformly distributed in Z which is not feasible so instead we use Z_p where a uniform distribution is achievable.
On other websites (and here), I saw some people saying that the modulo was simply needed so that values would not get too big.
In short, I couldn't find one definitive reason why the modular arithmetic is truly needed. Of course, it could be a combination of all the reasons mentioned above but it is strange to me to see all these sources giving a different justification without mentioning the other reasons. So could you help me figure out why this is really needed?
mod
keyword was wrong and I should have looked for finite field instead. Thanks a lot! – Migwel Dec 12 '21 at 17:35