mirror of
https://github.com/SwingbyProtocol/tss-lib.git
synced 2026-01-10 06:18:03 -05:00
ecdsa/keygen: ensure paillier modulus == paillierModulusLen
This commit is contained in:
@@ -49,7 +49,7 @@ func (round *round2) Start() *tss.Error {
|
||||
r1msg.UnmarshalAuthEcdsaPK(),
|
||||
r1msg.UnmarshalAuthPaillierSignature()
|
||||
|
||||
if paillierPKj.N.BitLen() < paillierModulusLen-12 {
|
||||
if paillierPKj.N.BitLen() < paillierModulusLen {
|
||||
return round.WrapError(errors.New("the Paillier PK bit length is too small. It may have been"+
|
||||
" maliciously set by the other party"), msg.GetFrom())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user