Open gaojunjie03 opened 3 years ago
Me too, who can answer this question ?
Regarding the second doubt - [x^(p-2)=1/x] mod p according to Fermat's theorem. So, x^(p-2)*x=1 (mod p).
I also want to know how to set these parameters, because I found that these parameters cannot be set arbitrarily. If the values are set incorrectly, it will cause the program to report an error.
I'm not sure how to set these encryption parameters or what their functions are. Is there a document or detailed information about the function and scope of these parameter settings?
and then why is this P-2? Is it (P-2)% p? = = > a ^ - 1 If I want a ^ 2, a ^ 3... How to set it?![image](https://user-images.githubusercontent.com/30582212/104258966-71cfe680-54bb-11eb-91e0-0ece3750668b.png)