Open itachiliu opened 3 years ago
Hello,
According to Victor Schoup's paper (tcrsa is an implementation of that paper), you need an N composed by two large primes (P and Q), and each prime must satisfy the constraint that its value minus one and then halved is also prime (Pr and Qr in the code).
If you do not satisfy the constraint, you are not following the construction from the paper, and then you are exposed to the risk that your secret key could be insecure (I am not completely fluent on the topic, but I assume the probability of choosing a generator of a small subgroup for Z_m is considerably higher if Pr and Qr are not primes). In any case, I recommend you to check the paper and the construction of the cryptosystem to understand better why Pr and Qr should be primes.
Hello,
According to Victor Schoup's paper (tcrsa is an implementation of that paper), you need an N composed by two large primes (P and Q), and each prime must satisfy the constraint that its value minus one and then halved is also prime (Pr and Qr in the code).
If you do not satisfy the constraint, you are not following the construction from the paper, and then you are exposed to the risk that your secret key could be insecure (I am not completely fluent on the topic, but I assume the probability of choosing a generator of a small subgroup for Z_m is considerably higher if Pr and Qr are not primes). In any case, I recommend you to check the paper and the construction of the cryptosystem to understand better why Pr and Qr should be primes.
Thanks for your relay. I will read this paper.
The key parameters of RSA algorithm are P,Q and E, you create key by function
func NewKey(bitSize int, k, l uint16, args *KeyMetaArgs) (shares KeyShareList, meta *KeyMeta, err error)
. Then I assign values to theargs.P
andargs.Q
, recompile and run. The error occured: cannot create RRSig: pkcs11: 0xC0: CKR_SIGNATURE_INVALID. Retrying... I check this problem. I found that your main parameters are P, Q, E, Pr and Qr.They have relationship as follow:*1. P = 2 Pr +1
the question is the relationship between P and Pr(Q and Qr) is necessary? Can I break the relationship? If the answer is no,can you explain the effect of Pr and Qr (about threshold signature).
this is your code. My code as follows: